renderFromTemplate('ticket_created', $this->vars())['subject'], ); } public function content(): Content { return new Content( htmlString: $this->renderFromTemplate('ticket_created', $this->vars())['html'], ); } public function attachments(): array { return []; } private function vars(): array { $room = $this->ticket->room ?? null; return [ 'full_name' => trim("{$this->customer->firstname} {$this->customer->lastname}") ?: 'Quý khách', 'ticket_num' => $this->ticket->ticket_num, 'subject' => $this->ticket->subject, 'room_row' => $room ? '