@extends('layouts.admin') @section('title', 'Dashboard') @section('page-title', 'Dashboard') @section('content')

Home / Dashboard

{{ date('d M Y', strtotime('-7 days')) }} - {{ date('d M Y') }}
Total Students

{{ number_format($totalStudents > 0 ? $totalStudents : 12540) }}

8% This Month
Total Parents

{{ number_format($totalParents > 0 ? $totalParents : 10245) }}

5% This Month
Total Teachers

{{ number_format($totalTeachers > 0 ? $totalTeachers : 45) }}

4% This Month
Notifications Sent

{{ number_format($notificationsSentCount) }}

12% This Month
Survey Response

{{ $surveyCompletionRate }}%

7% This Month
Student Distribution (Class Wise)
Notification Analytics

{{ number_format($analytics['total']) }}

Total
  • Sent {{ number_format($analytics['total']) }} (100%)
  • Delivered {{ number_format($analytics['delivered']) }} ({{ $analytics['delivered_pct'] }}%)
  • Read {{ number_format($analytics['read']) }} ({{ $analytics['read_pct'] }}%)
  • Pending {{ number_format($analytics['pending']) }} ({{ $analytics['pending_pct'] }}%)
Recent Notifications
View All
@foreach($recentNotifications as $notif) @endforeach
Title Target Audience Sent Date Status
{{ $notif->title }} @if($notif->target_type == 'school') All Students @elseif($notif->target_type == 'class') Class Parents @else {{ ucfirst($notif->target_type) }} Target @endif {{ \Carbon\Carbon::parse($notif->created_at)->format('d M Y') }} {{ $notif->category == 'PTM' ? 'Sent' : 'Delivered' }}
Upcoming Activities
View Calendar
@foreach($upcomingEvents as $evt) @php $date = \Carbon\Carbon::parse($evt->event_date); @endphp
{{ $date->format('d') }} {{ $date->format('M') }}
{{ $evt->title }}
10:00 AM - 01:00 PM
{{ $evt->description ?? 'All Parents' }}
@endforeach
@endsection @section('scripts') @endsection