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

{{ $schoolName }}

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

{{ $docTitle }}

{{ $windowLabel }} · issued {{ $issuedAt }}
Student{{ $student['name'] }} Reg No.{{ $student['admission_number'] }}
Class{{ $student['klass'] ?? '—' }} Email{{ $student['email'] ?? '—' }}
@forelse ($sections as $s)

{{ $s['term'] }} @if ($s['session']) · {{ $s['session'] }} @endif

@foreach ($s['items'] as $i) @endforeach
Fee Type Original Discount Scholarship Due Paid Balance Status
{{ $i['fee_name'] }} {{ $i['fee_type'] ?? '—' }} ₦{{ number_format($i['original_amount'], 2) }} @if ($i['discount_amount'] > 0) −₦{{ number_format($i['discount_amount'], 2) }} @else — @endif @if ($i['scholarship_amount'] > 0) −₦{{ number_format($i['scholarship_amount'], 2) }} @else — @endif ₦{{ number_format($i['amount_due'], 2) }} ₦{{ number_format($i['amount_paid'], 2) }} ₦{{ number_format($i['balance'], 2) }} {{ $i['status'] }}
Term due: ₦{{ number_format($s['total_due'], 2) }} Paid: ₦{{ number_format($s['total_paid'], 2) }} Balance: ₦{{ number_format($s['total_balance'], 2) }}
@empty

No billed items in this window.

@endforelse
Grand total due₦{{ number_format($grand_total_due, 2) }}
Paid₦{{ number_format($grand_total_paid, 2) }}
Outstanding₦{{ number_format($grand_total_balance, 2) }}