Payments

Collect Payment @php $fmt = fn($v) => '₹' . number_format($v ?? 0, 2, '.', ','); @endphp {{-- Stats row --}}

{{ $fmt($stats['thisMonth'] ?? 0) }}

Total Collected (Month)

{{ $fmt($stats['pending'] ?? 0) }}

Pending

{{ $stats['overdue'] ?? 0 }}

Overdue Invoices

{{-- Filter bar --}}
to {{-- Table --}}
@forelse($payments as $p) @php $statusColor = match($p->status) { 'success' => 'bg-green-100 text-green-700', 'pending' => 'bg-yellow-100 text-yellow-700', 'failed' => 'bg-red-100 text-red-700', 'refunded' => 'bg-blue-100 text-blue-700', 'cancelled' => 'bg-gray-100 text-gray-500', default => 'bg-gray-100 text-gray-500', }; $methodColor = match($p->method) { 'cash' => 'bg-green-100 text-green-700', 'card' => 'bg-blue-100 text-blue-700', 'upi' => 'bg-purple-100 text-purple-700', 'netbanking' => 'bg-indigo-100 text-indigo-700', 'wallet' => 'bg-yellow-100 text-yellow-700', default => 'bg-gray-100 text-gray-600', }; $methodLabel = ['upi'=>'UPI','card'=>'Card','netbanking'=>'Net Banking','wallet'=>'Wallet','cash'=>'Cash','cheque'=>'Cheque','mandate'=>'Auto-debit','other'=>'Other']; @endphp @empty @endforelse
Member Invoice Method Amount Status Date Collected By
{{ strtoupper(substr($p->member?->name ?? '?', 0, 1)) }}

{{ $p->member?->name }}

{{ $p->member?->member_id }}

@if($p->invoice) {{ $p->invoice->invoice_number }} @else @endif {{ $methodLabel[$p->method] ?? $p->method }} {{ $fmt($p->amount) }} {{ $p->status }} {{ $p->paid_at ? \Carbon\Carbon::parse($p->paid_at)->format('M j, Y') : '—' }} {{ $p->collectedBy?->name ?? 'System' }}

No payments found.

{{ $payments->withQueryString()->links() }}