@extends('layouts.print') @section('content')
@php $total=0; @endphp @foreach ($payments as $user=>$ps) @php $user_total=0; @endphp @foreach ($ps as $payment) @php $total=$total+$payment->amount; $user_total=$user_total+$payment->amount; @endphp @endforeach @endforeach
Date/Time Received From Amount Received By
{{$user_names[$user]}}
{{$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}}
Tk. {{number_format($user_total,2)}}
Total Collection of this month : Tk. {{number_format($total,2)}}
@endsection