renderFromTemplate('admin_trial_registration_request', $this->vars())['subject'], ); } public function content(): Content { return new Content( htmlString: $this->renderFromTemplate('admin_trial_registration_request', $this->vars())['html'], ); } public function attachments(): array { return []; } private function vars(): array { return [ 'customer_name' => $this->data['customer_name'] ?? 'N/A', 'customer_email' => $this->data['customer_email'] ?? 'N/A', 'customer_phone' => $this->data['customer_phone'] ?? 'N/A', 'cpu' => $this->data['cpu'] ?? '-', 'ram' => $this->data['ram'] ?? '-', 'ssd' => $this->data['ssd'] ?? '-', 'os' => $this->data['os'] ?? '-', 'other_row' => !empty($this->data['other']) ? 'Yêu cầu khác' . e($this->data['other']) . '' : '', 'company_name' => $this->data['company_name'] ?? 'Portal Admin', 'created_at' => $this->data['created_at'] ?? now()->format('d/m/Y H:i:s'), ]; } }