@foreach ($mutations->chunk(100) as $chunk)
@foreach ($chunk as $index => $mutation)
| {{ ++$index }} |
{{ $mutation->created_at }} |
{{ $mutation->type }} |
{{ $mutation->amount }} |
{{ $mutation->outlet->name }} |
@endforeach
@endforeach
| Total |
| Pendapatan |
{{ (new App\Services\MutationService)->totalIncomeAsString($mutations) }} |
| Pengeluran |
{{ (new App\Services\MutationService)->totalExpenseAsString($mutations) }} |
| Jumlah |
{{ (new App\Services\MutationService)->totalAmount($mutations) }} |