@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 Outlet
{{ ++$index }} {{ $mutation->created_at }} {{ $mutation->type }} {{ $mutation->amount }} {{ $mutation->outlet->name }}
Total
Pendapatan {{ (new App\Services\MutationService)->totalIncomeAsString($mutations) }}
Pengeluran {{ (new App\Services\MutationService)->totalExpenseAsString($mutations) }}
Jumlah {{ (new App\Services\MutationService)->totalAmount($mutations) }}