service->server_name; $frontend = MailGlobals::frontendUrl(); return [ 'client_name' => $this->customer->fullname ?? '', 'product_name' => $this->service->product?->name ?? 'Dịch vụ', 'server_name_suffix' => $serverName !== '' ? ' (' . e($serverName) . ')' : '', 'expires_at' => $this->service->expires_at?->format('d/m/Y') ?? 'N/A', 'invoice_number' => $this->invoice->invoice_number, 'outstanding' => number_format(InvoicePaymentService::outstanding($this->invoice), 0, ',', '.'), 'balance_formatted' => number_format((int) $this->customer->total, 0, ',', '.'), 'topup_url' => $frontend . '/nap-tien', 'invoice_url' => $frontend . $this->invoice->clientPath(), ]; } }