@extends('layouts.admin') @section('title', 'Student Registration Dashboard') @push('scripts') @vite('resources/js/pages/registration-dashboard.js') @endpush @section('content') @php $byStatus = $stats['by_student_status'] ?? []; $statusLabels = []; $statusValues = []; foreach ($byStatus as $status => $count) { $enum = \App\Enums\StudentStatus::tryFrom($status); $statusLabels[] = $enum?->label() ?? ucfirst(str_replace('_', ' ', (string) $status)); $statusValues[] = (int) $count; } $byReg = $stats['by_registration_status'] ?? []; $workflowLabels = []; $workflowValues = []; foreach ($byReg as $status => $count) { $enum = \App\Enums\RegistrationWorkflowStatus::tryFrom($status); $workflowLabels[] = $enum?->label() ?? ucfirst(str_replace('_', ' ', (string) $status)); $workflowValues[] = (int) $count; } @endphp
Students, semester registrations, and online requests.
Semester registrations: {{ $stats['semester_registrations'] ?? 0 }}