@php use App\Support\ParentChildPresenter; @endphp @extends('layouts.parent') @section('title', 'My Children · '.config('brand.name')) @section('content')
Add child
Linked children

Open a profile to see progress, homework and attendance for that child.

@forelse ($linkedChildren as $child) @php $signInEmail = ParentChildPresenter::signInEmail($child); $relationship = ParentChildPresenter::relationshipLabel($child->pivot->relationship ?? 'guardian'); $activeLessons = (int) ($enrolmentCounts[$child->id] ?? 0); @endphp

{{ $child->full_name }}

{{ $child->classLabel() }} · {{ ParentChildPresenter::courseCountLabel($activeLessons) }} · {{ $relationship }}

@if ($signInEmail) {{ $signInEmail }} @else Sign-in not set yet @endif · View profile

@empty

No children yet. Add a child so they can sign in and learn.

Add child @endforelse @if ($linkedChildren->isNotEmpty()) Add child @endif
@endsection