data['os_name'] ?? ''; return new Envelope( subject: "VPS của bạn đã sẵn sàng" . ($osName ? " — {$osName}" : ''), ); } public function content(): Content { return new Content( view: 'emails.customer.send-info-vps', with: [ 'companyName' => $this->data['company_name'] ?? '', 'companyLogo' => $this->data['company_logo'] ?? '', 'clientName' => $this->data['client_name'] ?? '', 'productName' => $this->data['product_name'] ?? '', 'productBilling' => $this->data['product_billing'] ?? '', 'productPrice' => $this->data['product_price'] ?? '', 'serviceHost' => $this->data['service_host'] ?? '', 'serviceUsername' => $this->data['service_username'] ?? '', 'servicePort' => $this->data['service_port'] ?? '', 'servicePassword' => $this->data['service_password'] ?? '', 'osName' => $this->data['os_name'] ?? '', 'serviceDueExp' => $this->data['service_due_exp'] ?? '', ], ); } public function attachments(): array { if ($this->invoicePdf !== null && $this->invoicePdfFileName !== null) { return [ Attachment::fromData(fn () => $this->invoicePdf, $this->invoicePdfFileName) ->withMime('application/pdf'), ]; } return []; } }