{{ \App\Helpers\Qs::getSchoolName() }} {{ __('Manage your children and their school transport payments from one place.') }}
{{ __('Welcome, :name', ['name' => Auth::user()->name ?? Auth::user()->username]) }} {{ __('Manage your children’s school transport payments') }}
{{ __('Link Your Child') }} {{ __('Use the form below to associate your child with your account.') }}
@csrf
{{ __('Link Child') }}
@if($children->isEmpty())
{{ __('No children linked yet') }} {{ __('Please use the form above to link your children using their name and registration number.') }}
@else
@foreach($children as $child) @php $lastPayment = $child->payments->sortByDesc('payment_date')->first(); $totalPaid = $child->payments->sum('amount'); @endphp
{{ strtoupper(substr($child->first_name, 0, 1)) }}
{{ $child->name }} {{ __('Class') }} {{ $child->class }} @if($child->destination) · {{ $child->destination }} @endif
{{ __('Reg Number') }} {{ $child->regnum }}
{{ __('Destination') }} {{ $child->destination ?: '—' }}
{{ __('Total Paid') }} {{ number_format($totalPaid) }} RWF
@if($child->balance > 0)
{{ __('Surplus Balance') }} {{ number_format($child->balance) }} RWF
@endif
{{ __('Last Payment') }} @if($lastPayment) {{ $lastPayment->payment_date->format('M d, Y') }} {{ $lastPayment->term }} @else {{ __('None') }} @endif
{{ __('Make Payment') }} @if($child->payments->isNotEmpty()) {{ __('View History') }} @endif
@endforeach
@endif