| No | Kode Invoice | Tanggal | Pelanggan | Kode Produk | Produk | Kuantitas | Harga Satuan | Subtotal |
|---|---|---|---|---|---|---|---|---|
| {{ $no++ }} | {{ $invoice['kode_invoice'] }} | {{ \Carbon\Carbon::parse($invoice['tanggal'])->format('d/m/Y') }} | {{ $invoice['pelanggan']['nama'] ?? '-' }} | {{ $item['product']['kode_produk'] ?? '-' }} | {{ $item['product']['nama'] ?? '-' }} | {{ $item['kuantitas'] }} | Rp {{ number_format($item['harga_satuan'], 0, ',', '.') }} | Rp {{ number_format($item['subtotal'], 0, ',', '.') }} |
| Total Penjualan | Rp {{ number_format($grandTotal, 0, ',', '.') }} | |||||||