Cetak Invoice Gabungan @php $listTagihan = ""; foreach($invoices as $inv) { $nopol = $inv->order->plat_number ?? '-'; $listTagihan .= "- " . $inv->invoice_number . " (" . $nopol . "): Rp " . number_format($inv->amount, 0, ',', '.') . "\n"; } $pesanWa = "Halo *" . $user->name . "*, \n\nBerikut rincian *Invoice Gabungan* Bams GPS Tracker:\n\n" . $listTagihan . "\n" . "*TOTAL AKHIR: Rp " . number_format($total, 0, ',', '.') . "*\n\n" . "Pembayaran BCA: *6115169975* a/n Bambang Hermanto.\n\n" . "Terima kasih."; $phone = preg_replace('/[^0-9]/', '', $user->phone ?? $user->orders->first()->customer_phone); $urlWa = "https://wa.me/" . $phone . "?text=" . urlencode($pesanWa); @endphp Kirim Semua ke WhatsApp

Bams GPS Tracker

Jln. Gunung Agung Barat No. 177A
(Belakang Bengkel Dewa Motor/Bunda Grosir)
Denpasar - Bali | 08113668377

INVOICE GABUNGAN

Tanggal Cetak: {{ now()->format('d M Y') }}

Ditagihkan Kepada:

{{ $user->name }}

{{ $address ?? $user->address ?? '-' }}

Telp: {{ $user->phone ?? $user->orders->first()->customer_phone ?? '-' }}

@foreach($invoices as $invoice) @endforeach
No. Invoice Rincian Unit & Layanan Jatuh Tempo Jumlah
{{ $invoice->invoice_number }} @if($invoice->type == 'gps') Pemasangan Unit Baru @else Perpanjangan Paket ({{ $invoice->order->payment_period ?? 'Berkala' }}) @endif Unit: {{ $invoice->order->stockGps->type_produk ?? 'Universal GPS' }} IMEI: ****{{ substr($invoice->order->stockGps->imei ?? '0000', -4) }}
Kendaraan/No.Polisi: {{ $invoice->order->plat_number ?? '-' }}
{{ \Carbon\Carbon::parse($invoice->due_date)->format('d/m/Y') }} Rp {{ number_format($invoice->amount, 0, ',', '.') }}
TOTAL KESELURUHAN

Rp {{ number_format($total, 0, ',', '.') }}

Informasi Pembayaran:

BCA: 6115169975
a/n Bambang Hermanto

*Harap lampirkan bukti transfer untuk mempercepat proses aktivasi.

Denpasar, {{ now()->format('d M Y') }}

Hormat Kami,

Bams GPS Tracker

( {{ auth()->user()->name ?? 'Administrator' }} )