@php $total=0; @endphp @foreach ($payments as $payment) @php $total=$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 Total Collection of this month : {{$total}}