@if (!empty($r['error']))
{{ $r['error'] }}
@else
Payment Receipt
Receipt #{{ $r['payment_id'] }} · {{ $r['payment_date'] }}
Student
{{ $r['student']['name'] ?: '—' }}
Paid By
{{ $r['paid_by']['name'] }}
Amount
${{ number_format($r['amount'], 2) }}
Method
{{ $r['payment_method']['display'] }}
Transaction #
{{ $r['transaction_id'] ?? '—' }}
Source
{{ $r['source'] ?? '—' }}
@if ($r['recorded_by'])
Recorded By
{{ $r['recorded_by'] }}
@endif
Invoice Allocations
Invoice #
Due Date
Amount
@forelse ($r['allocations'] as $a)
{{ $a['invoice_number'] ?? ('#' . $a['invoice_id']) }}
{{ $a['due_date'] ?? '—' }}
${{ number_format($a['amount'], 2) }}
@empty
No allocations recorded.
@endforelse
Total ${{ number_format($r['amount'], 2) }}
@if (!empty($r['notes']))
Notes
{{ $r['notes'] }}
@endif
Print / Save as PDF
@endif