Dicetak: {{ now()->format('d-m-Y H:i') }} | Menampilkan SO berstatus Selesai
| No. | Gudang | Faskes (KSO) | @foreach($bulan as $b){{ $b }} | @endforeachTotal |
|---|---|---|---|---|
| {{ $i }} | {{ $r['nama_gudang'] }} | {{ $r['tipe'] === 'faskes' ? $r['nama_faskes'] : '—' }} | @for($m = 1; $m <= 12; $m++) @php $val = $r['m'.$m] ?? 0; $isFuture = ($tahun == $nowYear && $m > $nowMonth); $cssClass = $isFuture ? 'cell-future' : ($val > 0 ? 'cell-ok' : 'cell-zero'); @endphp{{ $isFuture ? '·' : ($val > 0 ? $val : '0') }} | @endfor{{ $r['total'] }} |
| Grand Total | @php $grandTotal = 0; @endphp @for($m = 1; $m <= 12; $m++) @php $mTotal = array_sum(array_column($rows, 'm'.$m)); $grandTotal += $mTotal; @endphp{{ $mTotal }} | @endfor{{ $grandTotal }} | ||
• Hijau = SO sudah dilakukan • Merah = belum ada SO • Titik (·) = bulan belum berlalu