@extends('pdf._base') @section('title', 'Statement of account — '.$user->name) @section('body') @include('pdf._letterhead', ['title' => 'STATEMENT', 'number' => $user->student_code, 'subtitle' => 'Statement of account · '.now()->format('d M Y')])
Account holder
{{ $user->name }}
{{ $user->email }}@if($user->phone) · {{ $user->phone }}@endif @if($user->student_code)
Student ID {{ $user->student_code }}@endif
@if($totals['overdue'] > 0)@endif
Total billed{{ money2($totals['billed']) }}
Total paid{{ money2($totals['paid']) }}
Balance outstanding{{ money2($totals['balance']) }}
Overdue{{ money2($totals['overdue']) }}
Transactions
@php($bal = 0) @foreach($lines as $n => $l) @php($bal += $l['debit'] - $l['credit']) @endforeach @if(empty($lines))@endif
DateReferenceDescriptionChargesPaymentsBalance
{{ $l['date']->format('d M Y') }}{{ $l['ref'] }}{{ $l['desc'] }}{{ $l['debit'] ? money2($l['debit']) : '' }}{{ $l['credit'] ? money2($l['credit']) : '' }}{{ money2($bal) }}
No transactions yet.
@foreach($plans as $plan)
Upcoming installments · {{ $plan->code }}
@foreach($plan->installments->filter(fn ($i) => $i->outstanding() > 0)->values() as $n => $x) @endforeach
InstallmentDue dateOutstandingStatus
{{ $x->label }}{{ $x->due_date->format('d M Y') }}{{ money2($x->outstanding()) }}{{ $x->statusLabel() }}
@endforeach
Please report any discrepancy within 7 days to {{ $brand['email'] }}. Payments made after {{ now()->format('d M Y, h:i A') }} are not reflected in this statement.
@include('pdf._footer') @endsection