| Bulan | @for ($tahun = $tahun_dari; $tahun <= $tahun_sampai; $tahun++){{ $tahun }} | @endfor
|---|---|
| {{ $row['bulan'] }} | @for ($tahun = $tahun_dari; $tahun <= $tahun_sampai; $tahun++) @php $value = isset($row[$tahun]) ? $row[$tahun] : 0; $totalProyek[$tahun] += $value; $grandTotalAllProyek[$tahun] += $value; @endphp{{ 'Rp ' . number_format($value, 0, ',', '.') }} | @endfor
| Total | @for ($tahun = $tahun_dari; $tahun <= $tahun_sampai; $tahun++){{ 'Rp ' . number_format($totalProyek[$tahun], 0, ',', '.') }} | @endfor
| Total | @for ($tahun = $tahun_dari; $tahun <= $tahun_sampai; $tahun++){{ $tahun }} | @endfor
|---|---|
| Rp | @for ($tahun = $tahun_dari; $tahun <= $tahun_sampai; $tahun++){{ 'Rp ' . number_format($grandTotalAllProyek[$tahun], 0, ',', '.') }} | @endfor
| Bulan | @for ($tahun = $tahun_dari; $tahun <= $tahun_sampai; $tahun++){{ $tahun }} | @endfor
|---|---|
| {{ $row['bulan'] }} | @for ($tahun = $tahun_dari; $tahun <= $tahun_sampai; $tahun++) @php $value = isset($row[$tahun]) ? $row[$tahun] : 0; $grandTotal[$tahun] += $value; @endphp{{ 'Rp ' . number_format($value, 0, ',', '.') }} | @endfor
| Total | @for ($tahun = $tahun_dari; $tahun <= $tahun_sampai; $tahun++){{ 'Rp ' . number_format($grandTotal[$tahun], 0, ',', '.') }} | @endfor