@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 @forelse ($r['allocations'] as $a) @empty @endforelse
Invoice #Due DateAmount
{{ $a['invoice_number'] ?? ('#' . $a['invoice_id']) }} {{ $a['due_date'] ?? '—' }} ${{ number_format($a['amount'], 2) }}
No allocations recorded.
Total ${{ number_format($r['amount'], 2) }}
@if (!empty($r['notes']))
Notes
{{ $r['notes'] }}
@endif
@endif