@if (! empty($schoolLogo)) @endif

{{ $schoolName }}

@if (! empty($schoolMotto))
{{ $schoolMotto }}
@endif
@if ($schoolAddress) {{ $schoolAddress }} @endif @if ($schoolPhone) · {{ $schoolPhone }} @endif @if ($schoolEmail) · {{ $schoolEmail }} @endif

{{ $docTitle }}

{{ $invoiceNumber }}
Received from{{ $recipientName }} For{{ $purposeLabel }}
Issued{{ $issuedAt }} Status{{ $status }}
@foreach ($items as $item) @endforeach @if ($amountDue > 0) @endif
Description Amount
{{ $item['name'] }} ₦{{ number_format($item['amount'], 2) }}
Total ₦{{ number_format($totalAmount, 2) }}
Amount paid ₦{{ number_format($amountPaid, 2) }}
Balance due ₦{{ number_format($amountDue, 2) }}
@if (count($payments) > 0)

Payment history

@foreach ($payments as $p) @endforeach
{{ $p['paid_at'] ?? '—' }} {{ strtoupper($p['method']) }} {{ $p['reference'] ?? '—' }} ₦{{ number_format($p['amount'], 2) }}
@endif @if ($status === 'paid')
@endif