data = $data; } /** * Get the message envelope. */ public function envelope(): Envelope { return new Envelope( subject: '✅ Thanh toán thành công - Đơn hàng #' . ($this->data['order_num'] ?? 'N/A'), ); } /** * Get the message content definition. */ public function content(): Content { return new Content( view: 'emails.customer.order-payment-success', with: [ 'customerName' => $this->data['customer_name'] ?? 'Khách hàng', 'orderId' => $this->data['order_id'] ?? 'N/A', 'orderNum' => $this->data['order_num'] ?? 'N/A', 'amount' => $this->data['amount'] ?? 0, 'vmResults' => $this->data['vm_results'] ?? [], 'addonsSummary' => $this->data['addons_summary'] ?? [], 'supportEmail' => config('mail.support_email', 'support@example.com'), 'supportPhone' => config('mail.support_phone', '1900-xxxx'), ], ); } /** * Get the attachments for the message. * * @return array */ public function attachments(): array { return []; } }