@push('css') @endpush
Customer Payment Reports

{{-- id="datatable-buttons"--}}
{{-- @if($contact_id != "")--}} {{-- {{dd($customer_payments)}}--}} {{-- @endif--}} @php $i=0;$sum=0; @endphp @foreach ($customerPayments as $customer_payment) @php $sum+=$customer_payment->total_amount; @endphp @endforeach
SL Date Customer Payment Method Amount
{{++$i}} -> {{$customer_payment->id}} {{$customer_payment->date}} {{$customer_payment->Contact->first_name}} {{$customer_payment->Contact->last_name}} {{$customer_payment->PaymentMethod->name}} {{$customer_payment->total_amount}}
Total
{{$sum}}
@push('scripts') @endpush