@extends('admin.admin_dashboard') @section('admin')
Filters
Reset
@if($selectedSessionData)
Showing statistics for: {{ $selectedSessionData->name }}
@endif
@php $totalAll = collect($classWiseData)->sum('total'); $totalNew = collect($classWiseData)->sum('new_admissions'); $totalReturning = collect($classWiseData)->sum('returning'); $totalPromoted = collect($classWiseData)->sum('promoted'); @endphp
Total Students

{{ number_format($totalAll) }}

New Admissions

{{ number_format($totalNew) }}

Returning Students

{{ number_format($totalReturning) }}

Promoted Students

{{ number_format($totalPromoted) }}

Class-wise Breakdown
@forelse($classWiseData as $index => $data) @empty @endforelse @if(count($classWiseData) > 0) @endif
# Class Name Total Students New Admissions Returning Students Promoted Students
{{ $index + 1 }} {{ $data['class_name'] }} {{ number_format($data['total']) }} {{ number_format($data['new_admissions']) }} @if($data['total'] > 0)
{{ number_format(($data['new_admissions'] / $data['total']) * 100, 1) }}%
@endif
{{ number_format($data['returning']) }} @if($data['total'] > 0)
{{ number_format(($data['returning'] / $data['total']) * 100, 1) }}%
@endif
{{ number_format($data['promoted']) }} @if($data['total'] > 0)
{{ number_format(($data['promoted'] / $data['total']) * 100, 1) }}%
@endif
No data available for the selected filters
Total: {{ number_format($totalAll) }} {{ number_format($totalNew) }} {{ number_format($totalReturning) }} {{ number_format($totalPromoted) }}
@endsection