'IP Address', 'username' => 'Username', 'password' => 'Password']; $vmRows = ''; foreach ($vmFields as $field => $label) { if (!empty($this->data[$field])) { $vmRows .= EmailTemplateShell::row($label, e($this->data[$field])); } } return [ 'order_num' => $this->data['order_num'] ?? 'N/A', 'created_at' => $this->data['created_at'] ?? now()->format('d/m/Y H:i:s'), 'customer_name' => $this->data['customer_name'] ?? 'N/A', 'customer_email' => $this->data['customer_email'] ?? 'N/A', 'client_ip_row' => !empty($this->data['client_ip']) ? EmailTemplateShell::row('IP đặt hàng', e($this->data['client_ip'])) : '', 'product_name' => $this->data['product_name'] ?? 'N/A', 'product_type' => $this->data['product_type'] ?? 'N/A', 'billing_cycle' => $this->data['billing_cycle'] ?? 'N/A', 'total_formatted' => number_format((float) ($this->data['total'] ?? 0), 0, ',', '.') . ' VNĐ', 'vm_block' => $vmRows ? EmailTemplateShell::heading('Thông tin dịch vụ Cloud VPS') . EmailTemplateShell::infoTable([], $vmRows) : '', 'company_name' => $this->data['company_name'] ?? 'Portal Admin', ]; } }