Laporan Kas Tahunan

Tahun: {{ $tahun }}

@foreach ($bulanList as $bulan) @endforeach @foreach ($table_result as $index => $row) @if ($row['kategori'] !== 'Jumlah') @php $totalPerKategori = 0; @endphp @foreach ($bulanList as $bulan) @php $totalPerKategori += $row[$bulan]; @endphp @endforeach @endif @endforeach @php $grandTotal = 0; @endphp @foreach ($bulanList as $bulan) @php $jumlahBulan = end($table_result)[$bulan]; $grandTotal += $jumlahBulan; @endphp @endforeach @php $jumlahRow = end($table_result); $prevValue = null; @endphp @foreach ($bulanList as $bulan) @php $currentValue = $jumlahRow[$bulan]; if (is_null($prevValue)) { $change = '-'; } else { $change = $prevValue == 0 ? '0' : number_format((($currentValue - $prevValue) / $prevValue) * 100, 2) . '%'; } $prevValue = $currentValue; @endphp @endforeach
No. Kategori Kas{{ $bulan }}Total
{{ $index + 1 }} {{ ucfirst($row['kategori']) }}Rp {{ number_format($row[$bulan], 0, ',', '.') }}Rp {{ number_format($totalPerKategori, 0, ',', '.') }}
JumlahRp {{ number_format($jumlahBulan, 0, ',', '.') }}Rp {{ number_format($grandTotal, 0, ',', '.') }}
Kenaikan / Penurunan (%){{ $change }}—

Terbilang: {{ $terbilang }} RUPIAH