@extends('layouts.parent') @section('title', 'Parent Portal Dashboard - Kidscholl') @section('styles') @endsection @section('content')

Welcome back, {{ $parent->name }}!

Here is your daily tracking overview, circulars feed, and progress metrics for your child.

@if($student->photo) Student Avatar @else
{{ substr($student->name, 0, 1) }}
@endif

{{ $student->name }}

ID: {{ $student->roll_number }}
Class {{ $student->schoolClass->name }}
Section {{ $student->section->name }}
Branch {{ $student->branch->name }}
Term Academic Progress 75%

*{{ $student->roll_number }}*
Account Details
Total Notifications

{{ $totalNotifications }}

Unread Circulars

{{ $unreadMessages }}

Pending Surveys

{{ $pendingSurveysCount }}

Recent Announcements
View Feed
@forelse($recentNotifications as $log) @php $isUnread = ($log->status != 'Read'); @endphp
@if($isUnread) @endif
{{ $log->notification->category }} {{ $log->notification->created_at->diffForHumans() }}
{{ $log->notification->title }}

{{ Str::limit($log->notification->description, 180) }}

@if($isUnread) Mark as Read @else Opened & Read @endif
@if($log->notification->attachment_path) Circular PDF @endif
@empty

No circular notifications received for your child yet.

@endforelse
Upcoming Activities
Exam Schedules
@forelse($upcomingEvents as $evt) @php $dateObj = \Carbon\Carbon::parse($evt->event_date); @endphp
{{ $dateObj->format('M') }}
{{ $dateObj->format('d') }}
{{ $evt->title }}
{{ $evt->location ?? 'Main Campus' }}
@empty

No upcoming activities or holidays listed.

@endforelse
Results & Report Cards
All Reports
@forelse($recentResults as $res)
{{ $res->title }}
{{ \Carbon\Carbon::parse($res->upload_date)->format('d M Y') }}
@if($res->file_path) @else No File @endif
@empty

No exam results or report cards published yet.

@endforelse
@endsection @section('scripts') @endsection