School:
{{ $school->name }}
Invoice Number:
{{ $invoice->invoice_number }}
Payment Date:
{{ \Carbon\Carbon::parse($payment->payment_date)->format('d M Y') }}
Payment Method:
{{ ucfirst(str_replace('_', ' ', $payment->payment_method)) }}
@if($payment->transaction_id)
Transaction ID:
{{ $payment->transaction_id }}
@endif
Received By:
{{ $payment->receivedBy ? $payment->receivedBy->name : 'Admin' }}
Amount Paid
₹{{ number_format($payment->amount_paid, 2) }}
Payment Summary
Total Invoice Amount:
₹{{ number_format($invoice->total_amount, 2) }}
Total Paid So Far:
₹{{ number_format($payments->take($counter)->sum('amount_paid'), 2) }}
Balance Remaining:
₹{{ number_format(max(0, $invoice->total_amount - $payments->take($counter)->sum('amount_paid')), 2) }}
Page {{ $counter }} of {{ $payments->count() }}