@foreach ($transactions->chunk(100) as $chunk) @foreach ($chunk as $index => $transaction) @endforeach @endforeach
Laporan Transaksi
Periode {{ $transactions->first()['createdAt'] }} - {{ $transactions->last()['createdAt'] }}
# Tanggal Jumlah Transaksi Total Nilai
{{ ++$index }} {{ $transaction['createdAt'] }} {{ $transaction['totalTransaction'] }} {{ (new App\Services\CurrencyFormatService)->setRupiahFormat($transaction['totalPrice'], true) }}
Total
Transaksi / Nilai {{ $transactions->sum('totalTransaction') }} {{ (new App\Services\CurrencyFormatService)->setRupiahFormat($transactions->sum('totalPrice'), true) }}