@foreach ($summary as $line) @endforeach
Laporan Ringkasan Penerimaan dan Pengeluaran
Periode {{ period_format($start->year, $start->month) }} - {{ period_format($end->year, $end->month) }}

Periode Saldo Awal Penerimaan Pengeluaran Mutasi Saldo Akhir
{{ period_format($line->year, $line->month) }} {{ currency_format($line->opening_balance) }} {{ currency_format($line->income) }} {{ currency_format($line->expense) }} {{ currency_format($line->mutation) }} {{ currency_format($line->closing_balance) }}
Saldo Awal Periode {{ currency_format($summary->first()->opening_balance ?? 0) }}
Total Penerimaan {{ currency_format($summary->sum('income')) }}
Total Pengeluaran {{ currency_format($summary->sum('expense')) }}
Total Mutasi {{ currency_format($summary->sum('mutation')) }}
Saldo Akhir Periode {{ currency_format($summary->last()->closing_balance ?? 0) }}