Laporan Rekap 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 $totalNilai = 0; $totalReal = 0; @endphp @foreach($rows as $i => $r) @php $totalNilai += $r['total_harga']; $totalReal += $r['nilai_realisasi']; @endphp @endforeach
No. No. PO Supplier Tgl. PO Tgl. Estimasi Item Terima Total Nilai Nilai Realisasi % Real.
{{ $i + 1 }} {{ $r['nomor_po'] }} {{ $r['nama_produsen'] }} {{ $r['tanggal_po'] }} {{ $r['tanggal_estimasi'] }} {{ $r['jumlah_item'] }} {{ $r['jumlah_penerimaan'] }} {{ number_format($r['total_harga'], 0, ',', '.') }} {{ number_format($r['nilai_realisasi'], 0, ',', '.') }} {{ $r['total_harga'] > 0 ? round($r['nilai_realisasi'] / $r['total_harga'] * 100, 1) : 0 }}%
Total {{ number_format($totalNilai, 0, ',', '.') }} {{ number_format($totalReal, 0, ',', '.') }} {{ $totalNilai > 0 ? round($totalReal / $totalNilai * 100, 1) : 0 }}%