{{-- Watermark --}} Watermark

Laporan Penjualan

Periode: {{ $judulPeriode }}
@php $no = 1; $grandTotal = 0; @endphp @foreach ($data as $invoice) @foreach ($invoice['items'] as $item) @php $grandTotal += $item['subtotal']; @endphp @endforeach @endforeach
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, ',', '.') }}