@foreach ($mutations->chunk(100) as $chunk) @foreach ($chunk as $index => $mutation) @endforeach @endforeach
Laporan Mutasi
Periode {{ $mutations->first()->created_at }} - {{ $mutations->last()->created_at }}
# Tanggal Tipe Nilai
{{ ++$index }} {{ $mutation->created_at }} {{ $mutation->type }} {{ $mutation->amount }}
Total
Pendapatan {{ (new App\Services\MutationService())->totalIncomeAsString($mutations) }}
Pengeluran {{ (new App\Services\MutationService())->totalExpenseAsString($mutations) }}
Jumlah {{ (new App\Services\MutationService())->totalAmountAsString($mutations) }}