Periode: {{ $judulPeriode }}
| # | Kode Invoice | Tanggal | Pelanggan | Produk | Kuantitas | Harga Jual | HPP | Subtotal | Laba / Rugi |
|---|---|---|---|---|---|---|---|---|---|
| {{ $no++ }} | {{ $invoice['kode_invoice'] }} | {{ \Carbon\Carbon::parse($invoice['tanggal'])->format('d/m/Y') }} | {{ $invoice['pelanggan']['nama'] ?? '-' }} | {{ $item['product']['nama'] ?? '-' }} | {{ $item['kuantitas'] }} | Rp {{ number_format($item['harga_satuan'], 0, ',', '.') }} | Rp {{ number_format($item['product']['hpp'] ?? 0, 0, ',', '.') }} | Rp {{ number_format($item['subtotal'], 0, ',', '.') }} | Rp {{ number_format($item['laba_rugi'], 0, ',', '.') }} |