@csrf
@if(count($dps_collections) > 0)
DPS Collection List
@php $total = 0; @endphp @foreach($dps_collections as $key =>$dps_collection) @php $total += $dps_collection->amount; @endphp @endforeach
SL. Date Amount
{{ ++$key }} {{ date('d-M-Y g:i A', strtotime($dps_collection->date)) }} {{ number_format($dps_collection->amount) }}
Grand Total {{ number_format($total) }}
@endif