@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 {{ App\Models\Mutation::totalIncomeAsString($mutations) }}
Pengeluran {{ App\Models\Mutation::totalExpenseAsString($mutations) }}
Jumlah {{ App\Models\Mutation::totalAmount($mutations) }}