@extends('layouts.app') @section('title', 'Customer Payments') @section('breadcrumb') @endsection @section('content')
৳{{ number_format($totalCollected, 0) }}
Collected (filtered)
৳{{ number_format(\App\Models\Customer::sum('current_due'), 0) }}
Total Receivable
@forelse($payments as $pmt) @empty @endforelse
DateCustomerInvoiceAmountMethodAccountReferenceBy
{{ $pmt->payment_date->format('d M Y') }} {{ $pmt->customer->name }} @if($pmt->sale){{ $pmt->sale->invoice_no }} @elseGeneral@endif ৳{{ number_format($pmt->amount, 2) }} {{ ucfirst(str_replace('_',' ',$pmt->payment_method)) }} {{ $pmt->account->name }} {{ $pmt->reference ?? '—' }} {{ $pmt->creator->name }}
No payments found.
@if($payments->hasPages())@endif
@endsection