@extends('layouts.app') @section('title', 'Parent Dashboard') @section('page-title', 'My Children') @section('content')
{{-- Children Selector & Summary --}} @foreach($children as $child)
{{ strtoupper(substr($child->name, 0, 1)) }}

{{ $child->name }}

{{ $child->studentProfile?->class_?->full_name ?? 'N/A' }} | {{ $child->studentProfile?->admission_number }}

Recent Marks

@forelse($child->marks->take(3) as $mark)

{{ $mark->exam->subject->name ?? '' }}: {{ $mark->marks_obtained }}/{{ $mark->exam->total_marks }}

@empty

No marks yet

@endforelse
@endforeach {{-- Announcements --}}

Announcements

@forelse($announcements as $a)

{{ $a->title }}

{{ Str::limit($a->content, 120) }}

@empty

No announcements.

@endforelse
@endsection