ticket->description ?? ''); return [ 'ticket_num' => $this->ticket->ticket_num, 'subject_text' => $this->ticket->subject, 'room' => $this->ticket->room ?? 'N/A', 'customer_name' => trim($this->customer->firstname . ' ' . $this->customer->lastname) ?: 'N/A', 'customer_email'=> $this->customer->email, 'description' => mb_substr($description, 0, 500) . (mb_strlen($description) > 500 ? '…' : ''), 'ticket_url' => config('app.frontend_url') . '/tickets/' . $this->ticket->ticket_num, ]; } }