@extends('layouts.app') @section('content')

All Payment Received

Back
Reset
@if(request()->hasAny(['customer', 'account_holder', 'bank_name', 'account_name']) || request('from') !== now()->startOfMonth()->format('Y-m-d') || request('to') !== now()->endOfMonth()->format('Y-m-d')) Filtered Summary @else Current Month Summary @endif
Total Payments

@if(request()->hasAny(['customer', 'account_holder', 'bank_name', 'account_name']) || request('from') !== now()->startOfMonth()->format('Y-m-d') || request('to') !== now()->endOfMonth()->format('Y-m-d')) {{ $filteredStats['filtered_payments_count'] }} @else {{ $overallStats['total_payments_count'] }} @endif

Records
Total Amount

@if(request()->hasAny(['customer', 'account_holder', 'bank_name', 'account_name']) || request('from') !== now()->startOfMonth()->format('Y-m-d') || request('to') !== now()->endOfMonth()->format('Y-m-d')) {{ number_format($filteredStats['filtered_total_amount'], 2) }} @else {{ number_format($overallStats['total_amount'], 2) }} @endif

BDT
Payments List
@forelse($payments as $idx => $p) @empty @endforelse @if($payments->count() > 0) @if(request()->hasAny(['customer', 'account_holder', 'bank_name', 'account_name']) || request('from') !== now()->startOfMonth()->format('Y-m-d') || request('to') !== now()->endOfMonth()->format('Y-m-d')) @endif @endif
# Transaction Date Invoice # Customer Account Holder Bank Name Account Name Account Number Amount Received By Actions
{{ $payments->firstItem() + $idx }} {{ optional($p->transaction_date)->format('Y-m-d') }} {{ $p->salesInvoice->invoice_no ?? 'N/A' }} {{ optional($p->salesInvoice->customer)->company_name ?? optional($p->salesInvoice->customer)->name }} {{ optional($p->accountHolderInfo)->name ?? 'N/A' }} {{ optional($p->bankAccountInfo)->bank_name }} {{ optional($p->bankAccountInfo)->account_name }} {{ optional($p->bankAccountInfo)->account_number }} BDT {{ number_format($p->amount, 2) }} {{ $p->received_by }} View Edit
@csrf @method('DELETE')
No payments found.
Total (Current Page): BDT {{ number_format($payments->sum('amount'), 2) }}
Grand Total (All Filtered): BDT {{ number_format($filteredStats['filtered_total_amount'], 2) }}
{{ $payments->withQueryString()->links() }}
@endsection @push('scripts') @endpush