@extends('layouts.app') @section('title', 'Parent Portal') @section('content')

My Children

@forelse($children as $child)
@if($child->passport_path) @else
@endif
{{ $child->full_name }}
{{ $child->classArm->schoolClass->name ?? '—' }} {{ $child->classArm->name ?? '' }}
@php $balance = $child->invoices->sum(fn($i) => $i->balance); @endphp
{{ $balance > 0 ? '₦' . number_format($balance, 2) . ' outstanding' : 'Fees up to date' }}
@empty

No children linked to this account yet. Contact the school registrar.

@endforelse

School Notices

@forelse($notices as $notice)
{{ $notice->title }}
{{ \Illuminate\Support\Str::limit(strip_tags($notice->body), 140) }}
{{ \Illuminate\Support\Carbon::parse($notice->published_at)->format('d M, Y') }}
@empty

No notices posted yet.

@endforelse
@endsection