Laporan Rincian Purchase Order

@if($dari || $sampai) Periode: {{ $dari ?? '—' }} s/d {{ $sampai ?? '—' }}  |  @endif @if($supplier) Supplier: {{ $supplier }}  |  @endif @if($status) Status: {{ $status }}  |  @endif Dicetak: {{ now()->format('d-m-Y H:i') }}

@php $totalSubtotal = 0; $totalReal = 0; @endphp @foreach($rows as $i => $r) @php $totalSubtotal += $r['subtotal']; $totalReal += $r['nilai_realisasi']; @endphp @endforeach
No. No. PO Supplier Tgl. PO Kode Nama Barang Jenis Merek Ukuran Sat. Pesan Terima Harga Subtotal Nilai Real.
{{ $i + 1 }} {{ $r['nomor_po'] }} {{ $r['nama_produsen'] }} {{ $r['tanggal_po'] }} {{ $r['kode_barang'] }} {{ $r['nama_barang'] }} {{ $r['jenis_barang'] }} {{ $r['merek_barang'] }} {{ $r['ukuran'] }} {{ $r['satuan_beli'] }} {{ $r['qty'] }} {{ $r['qty_diterima'] }} {{ number_format($r['harga_beli'], 0, ',', '.') }} {{ number_format($r['subtotal'], 0, ',', '.') }} {{ number_format($r['nilai_realisasi'], 0, ',', '.') }}
Total {{ number_format($totalSubtotal, 0, ',', '.') }} {{ number_format($totalReal, 0, ',', '.') }}