@extends('layouts.admin') @section('title', 'Dashboard') @section('header-title', 'Dashboard') @section('content')
Total Institutes
{{ $stats['total_institutes'] }}
{{ $stats['pending_institutes'] }} pending approval
Total Students
{{ $stats['total_students'] }}
{{ $stats['active_students'] }} active
Active Exams
{{ $stats['total_exams'] }}
{{ $stats['active_exams'] }} currently active
Examination Centers
{{ $stats['total_centers'] }}
Total Users
{{ $stats['total_users'] }}
Answer Sheets
{{ $stats['total_answer_sheets'] }}
{{ $stats['pending_answers'] }} pending AI review
Results Published
{{ $stats['published_results'] }}
Total Results
{{ $stats['total_results'] }}

Recent Students

@forelse($recentStudents as $student)

{{ $student->name }}

{{ $student->roll_number }}

{{ ucfirst($student->status) }}
@empty

No students registered yet.

@endforelse

Recent Results

@forelse($recentResults as $result)

{{ $result->student->name ?? 'N/A' }}

{{ $result->subject->name ?? 'N/A' }} - {{ $result->grade ?? 'N/A' }}

{{ ucfirst($result->status) }}
@empty

No results available yet.

@endforelse

Students by Registration Type

@forelse($studentsByRegistrationType as $type => $count)
{{ str_replace('_', ' ', $type) }} {{ $count }}
@empty

No data available.

@endforelse

Results by Grade

@forelse($resultsByGrade as $grade => $count)
Grade {{ $grade }} {{ $count }}
@empty

No results available.

@endforelse
@endsection