@extends('admin.layout') @section('content')

Dashboard

Total Users

{{ $stats['total_users'] }}

Total Tests

{{ $stats['total_tests'] }}

Total Subjects

{{ $stats['total_subjects'] }}

Research Papers

{{ $stats['total_research_papers'] }}

Active Sessions

{{ $stats['active_sessions'] }}

Completed Sessions

{{ $stats['completed_sessions'] }}

Recent Users

@foreach($recentUsers as $user)

{{ $user->full_name }}

{{ $user->email }}

{{ ucfirst($user->role) }}
@endforeach

Recent Test Sessions

@foreach($recentSessions as $session)

{{ $session->user->full_name }}

{{ $session->test->title ?? 'N/A' }}

{{ ucfirst(str_replace('_', ' ', $session->status)) }}
@if($session->total_score)

Score: {{ $session->total_score }}

@endif
@endforeach
@endsection