$this->data['company_name'] ?? config('app.name'), 'payment_type' => $this->data['payment_type'] ?? 'Hóa đơn', 'reference' => $this->data['reference'] ?? 'N/A', 'invoice_number' => $this->data['invoice_number'] ?? 'N/A', 'customer_name' => $this->data['customer_name'] ?? 'N/A', 'customer_email' => $this->data['customer_email'] ?? 'N/A', 'amount_formatted' => number_format((float) ($this->data['amount'] ?? 0), 0, ',', '.') . ' VNĐ', 'outstanding_formatted' => number_format((float) ($this->data['outstanding'] ?? 0), 0, ',', '.') . ' VNĐ', 'payment_status' => ($this->data['outstanding'] ?? 0) > 0 ? 'Thanh toán một phần' : 'Đã thanh toán đủ', 'created_at' => $this->data['created_at'] ?? now()->format('d/m/Y H:i:s'), ]; } }