Payments / Collect
{{-- Razorpay script --}} @if($razorpay_key ?? null) @endif
{{-- Left panel --}}
@if($member) {{-- Member info card --}}
{{ strtoupper(substr($member->name, 0, 1)) }}

{{ $member->name }}

{{ $member->member_id }}

@php $statusClass = match($member->status) { 'active' => 'bg-green-100 text-green-700', 'expiring_soon' => 'bg-yellow-100 text-yellow-700', default => 'bg-red-100 text-red-700', }; @endphp {{ str_replace('_', ' ', $member->status) }}
{{-- Outstanding invoices --}} @if($unpaid_invoices && count($unpaid_invoices))

Outstanding Invoices

@foreach($unpaid_invoices as $inv) @endforeach
@endif {{-- Payment form --}}

Payment Details

@foreach(['cash' => 'Cash', 'card' => 'Card', 'upi' => 'UPI', 'netbanking' => 'Bank Transfer'] as $val => $label) @endforeach
@if($razorpay_key ?? null) @if($invoice ?? null) @endif @endif
@else {{-- Member search --}}

Search Member

searching…

No members found.

Type at least 2 characters to search.

@endif
{{-- Right panel: invoice summary --}}
@if($invoice ?? null)

Invoice Summary

{{ $invoice->invoice_number }}

@foreach($invoice->line_items ?? [] as $item)

{{ $item['description'] ?? '' }}

HSN/SAC: {{ $item['hsn_sac'] ?? '999312' }}

Amount ₹{{ number_format($item['amount'] ?? 0, 2) }}
@endforeach
Subtotal₹{{ number_format($invoice->subtotal, 2) }}
@if($invoice->discount_amount > 0)
Discount-₹{{ number_format($invoice->discount_amount, 2) }}
@endif
Total₹{{ number_format($invoice->total_amount, 2) }}
@if($invoice->amount_paid > 0)
Paid₹{{ number_format($invoice->amount_paid, 2) }}
@endif @if($invoice->amount_due > 0)
Due₹{{ number_format($invoice->amount_due, 2) }}
@endif
@else

Select an invoice to see the breakdown

@endif