Laporan Penjualan

Warkop Cak Imin - Akuntansi SIA

Tanggal Cetak: {{ date('d/m/Y H:i') }}

@foreach($branches as $branch) @php $branchSales = $sales->where('branch', $branch->name); @endphp @if($branchSales->count() > 0)

Cabang: {{ $branch->name }}

@foreach($branchSales as $index => $sale) @endforeach
No Tanggal Produk Jumlah Total Harga
{{ $index + 1 }} {{ \Carbon\Carbon::parse($sale->date)->format('d/m/Y') }} {{ $sale->item }} {{ $sale->quantity }} Rp {{ number_format($sale->total_price, 0, ',', '.') }}
Total Rp {{ number_format($branchSales->sum('total_price'), 0, ',', '.') }}
@endif @endforeach