uawdijnntqw1x1x1
IP : 3.147.86.30
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
/
.
/
..
/
..
/
public_html
/
core
/
app
/
Models
/
SupportTicket.php
/
/
<?php namespace App\Models; use App\Constants\Status; use Illuminate\Database\Eloquent\Casts\Attribute; use Illuminate\Database\Eloquent\Model; class SupportTicket extends Model { public function fullname(): Attribute { return new Attribute( get:fn() => $this->name, ); } public function username(): Attribute { return new Attribute( get:fn() => $this->email, ); } public function statusBadge(): Attribute { return new Attribute( get:fn() => $this->badgeData(), ); } public function badgeData() { $html = ''; if ($this->status == Status::TICKET_OPEN) { $html = '<span class="badge badge--success">' . trans("Open") . '</span>'; } elseif ($this->status == Status::TICKET_ANSWER) { $html = '<span class="badge badge--primary">' . trans("Answered") . '</span>'; } elseif ($this->status == Status::TICKET_REPLY) { $html = '<span class="badge badge--warning">' . trans("Customer Reply") . '</span>'; } elseif ($this->status == Status::TICKET_CLOSE) { $html = '<span class="badge badge--secondary">' . trans("Closed") . '</span>'; } return $html; } public function user() { return $this->belongsTo(User::class); } public function supportMessage() { return $this->hasMany(SupportMessage::class); } }
/home/jackpotjunglegam/public_html/80d3f/./../../public_html/core/app/Models/SupportTicket.php