@extends('layouts.portal') @section('title', 'Dashboard') @section('page-header')
{{ $child->initials }}

{{ now()->format('l, j F Y') }}

Hello, {{ $isParent ? auth('school')->user()->name : $child->first_name }}

{{ $child->full_name }} @if($child->class) · {{ $child->class->name }} @endif · {{ $child->admission_no }}

Latest results
@endsection @section('content') {{-- Stat tiles --}}
@if ($can['attendance'] ?? true) @endif @if ($can['results'] ?? true) @endif @if ($can['fees'] ?? true) @endif
{{-- Today's classes --}} @if ($can['timetable'] ?? true)
@if ($todayClasses->isEmpty()) @else
    @foreach ($todayClasses as $entry)
  1. {{ $entry->start_time->format('H:i') }} {{ $entry->subject?->name ?? 'Subject' }} @if ($entry->room) {{ $entry->room }} @endif

    {{ $entry->start_time->format('g:i a') }} - {{ $entry->end_time->format('g:i a') }} @if ($entry->teacher) · {{ $entry->teacher->name }} @endif

  2. @endforeach
@endif
@endif {{-- Announcements --}} @if ($can['announcements'] ?? true)
@forelse ($announcements as $announcement)

{{ $announcement->title }}

{{ Str::limit(strip_tags($announcement->body), 110) }}

{{ $announcement->published_at?->diffForHumans() }}

@empty @endforelse
@endif
{{-- Published report cards quick access --}} @if (($can['results'] ?? true) && $sheets->isNotEmpty())
@endif @endsection