123 Education Street, Tech City
Email: billing@schoolerp.com | Phone: +91 98765 43210
#RCP-{{ $payment->id }}
Date: {{ \Carbon\Carbon::parse($payment->payment_date)->format('M d, Y') }}
PAID{{ $school->name }}
{{ $school->address ?? 'Address not available' }}
Email: {{ $school->email }}
Phone: {{ $school->phone ?? 'N/A' }}
Invoice #: {{ $payment->invoice_number }}
Payment Method: {{ ucfirst(str_replace('_', ' ', $payment->payment_method)) }}
@if($payment->transaction_id)Transaction ID: {{ $payment->transaction_id }}
@endifReceived By: {{ $payment->receivedBy->name ?? 'Admin' }}
| Description | Amount |
|---|---|
| Invoice Amount | ₹{{ number_format($payment->invoice_amount, 2) }} |
| {{ $payment->previous_balance > 0 ? 'Previous Balance (Due)' : 'Previous Balance (Advance)' }} | {{ $payment->previous_balance > 0 ? '+' : '' }}₹{{ number_format(abs($payment->previous_balance), 2) }} |
| Total Payable | ₹{{ number_format($payment->total_payable, 2) }} |
| Amount Paid | ₹{{ number_format($payment->amount_paid, 2) }} |
| {{ $payment->balance_remaining > 0 ? 'Balance Due' : 'Advance Credit' }} | ₹{{ number_format(abs($payment->balance_remaining), 2) }} |
Notes: {{ $payment->notes }}
| Total Invoice Amount: | ₹{{ number_format($invoice->total_amount, 2) }} |
| Total Paid: | ₹{{ number_format($payments->sum('amount_paid'), 2) }} |
| Balance Due: | ₹{{ number_format($remaining, 2) }} |
| FULLY PAID | |