芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/rentandbuyrealty.com/pennysave/application/app/Models/SupportTicket.php
$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 == 0){ $html = '
'.trans("Open").'
'; } elseif($this->status == 1){ $html = '
'.trans("Answered").'
'; } elseif($this->status == 2){ $html = '
'.trans("Customer Reply").'
'; } elseif($this->status == 3){ $html = '
'.trans("Closed").'
'; } return $html; } public function user() { return $this->belongsTo(User::class); } public function supportMessage(){ return $this->hasMany(SupportMessage::class); } }