@extends('admin.layout.layout') @section('content')
Dashboard
@if (Session::has('error_message')) @endif
Total Students
@if($totalStudents) {{ $totalStudents }} @else 0 @endif
Inactive Students
@if($inactiveStudents) {{ $inactiveStudents }} @else 0 @endif
Active Students
@if($activeStudents) {{ $activeStudents }} @else 0 @endif
New Admissions
@if($newAdmissions) {{ $newAdmissions }} @else 0 @endif
@if (Session::has('error_message')) @endif
Total Staff
@if($totalEmployees) {{ $totalEmployees }} @else 0 @endif
Inactive Staff
@if($inactiveEmployees) {{ $inactiveEmployees }} @else 0 @endif
Active Staff
@if($activeEmployees) {{ $activeEmployees }} @else 0 @endif
New Hires
@if($newHires) {{ $newHires }} @else 0 @endif
@if (Session::has('error_message')) @endif
Total Teachers
@if($totalTeachers) {{ $totalTeachers }} @else 0 @endif
Total Classes
@if($totalClasses) {{ $totalClasses }} @else 0 @endif
Total Fees Collected
@if(0) @else @endif
Pending Fees
@if(0) @else @endif
Students by Class
@if ($studentsByClasses->isNotEmpty()) @foreach($studentsByClasses as $studentsByClass) @endforeach @endif
Class Students
{{ $studentsByClass->class }}
{{ $studentsByClass->quantity }}
{{ $studentsByGenderMale }}
Male Students
{{ $studentsByGenderFemale }}
Female Students
{{ $employeesByGenderMale }}
Male Staff
{{ $employeesByGenderFemale }}
Female Staff
@endsection