uawdijnntqw1x1x1
IP : 3.144.242.149
Hostname : host45.registrar-servers.com
Kernel : Linux host45.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
jackpotjunglegam
/
public_html
/
80d3f
/
..
/
core
/
..
/
.
/
.
/
core
/
app
/
Models
/
Game.php
/
/
<?php namespace App\Models; use App\Constants\Status; use Illuminate\Database\Eloquent\Casts\Attribute; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; class Game extends Model { use HasFactory; protected $guarded = ['id']; protected $casts = [ 'level' => 'object', 'probable_win' => 'object', ]; public function statusBadge(): Attribute { return new Attribute( get:fn() => $this->badgeData(), ); } public function badgeData() { $html = ''; if ($this->status == Status::ENABLE) { $html = '<span class="badge badge--success">' . trans('Enabled') . '</span>'; } else { $html = '<span class="badge badge--danger">' . trans('Disabled') . '</span>'; } return $html; } public function scopeActive() { return $this->where('status', Status::ENABLE); } }
/home/jackpotjunglegam/public_html/80d3f/../core/../././core/app/Models/Game.php