renderFromTemplate('service_expiry', $this->vars())['subject'], ); } public function content(): Content { return new Content( htmlString: $this->renderFromTemplate('service_expiry', $this->vars())['html'], ); } public function attachments(): array { return []; } private function vars(): array { return [ 'company_name' => $this->data['company_name'] ?? '', 'company_logo' => $this->data['company_logo'] ?? '', 'product_name' => $this->data['product_name'] ?? '', 'service_due_exp' => $this->data['service_due_exp'] ?? '', 'service_remaining' => $this->data['service_remaining'] ?? '', ]; } }