@php $total=0; @endphp @foreach ($payments as $date=>$ps) {{-- {{$date}} --}} @php $days_total=0; @endphp @foreach ($ps as $payment) @php $total=$total+$payment->amount; $days_total=$days_total+$payment->amount; @endphp {{$payment->created_at->format('d-M-Y')}}
{{$payment->created_at->format('h:i:s A')}} {{$payment->pppUser['name']}}
{{$payment->pppUser['comments']}} {{$payment->amount}} {{$payment->user->first_name}} {{$payment->user->last_name}} @endforeach
Tk. {{number_format($days_total,2)}}
@endforeach Total Collection of this month : {{$total}}