@extends('layouts.dashboard') @section('title', 'Vice-Chancellor Dashboard') @section('page-content')

Executive Dashboard

Institutional Performance & Strategic Overview

@if($currentYear) {{ $currentYear->name }} @endif @if($currentSemester) {{ $currentSemester->name }} @endif

Total Students

{{ number_format($stats['total_students']) }}

{{ number_format($stats['active_students']) }} Active

Faculty & Staff

{{ number_format($stats['total_staff']) }}

{{ number_format($stats['active_staff']) }} Active

Programs

{{ number_format($stats['total_programs']) }}

{{ number_format($stats['total_departments']) }} Departments

Pending Applications

{{ number_format($stats['pending_applications']) }}

Requires Review

Student Distribution by Level

@foreach($studentsByLevel as $level => $count) @php $percentage = $stats['active_students'] > 0 ? ($count / $stats['active_students'] * 100) : 0; $colors = [ 100 => ['bg' => 'bg-blue-500', 'light' => 'bg-blue-100', 'text' => 'text-blue-600'], 200 => ['bg' => 'bg-green-500', 'light' => 'bg-green-100', 'text' => 'text-green-600'], 300 => ['bg' => 'bg-purple-500', 'light' => 'bg-purple-100', 'text' => 'text-purple-600'], 400 => ['bg' => 'bg-orange-500', 'light' => 'bg-orange-100', 'text' => 'text-orange-600'], ]; $color = $colors[$level] ?? ['bg' => 'bg-gray-500', 'light' => 'bg-gray-100', 'text' => 'text-gray-600']; @endphp
Level {{ $level }}
{{ number_format($count) }} ({{ number_format($percentage, 1) }}%)
@endforeach

Student Status Distribution

@foreach($studentStatus as $status => $count) @php $percentage = $stats['total_students'] > 0 ? ($count / $stats['total_students'] * 100) : 0; $statusColors = [ 'active' => ['bg' => 'bg-green-500', 'light' => 'bg-green-100', 'text' => 'text-green-600', 'label' => 'Active'], 'suspended' => ['bg' => 'bg-yellow-500', 'light' => 'bg-yellow-100', 'text' => 'text-yellow-600', 'label' => 'Suspended'], 'graduated' => ['bg' => 'bg-blue-500', 'light' => 'bg-blue-100', 'text' => 'text-blue-600', 'label' => 'Graduated'], 'withdrawn' => ['bg' => 'bg-red-500', 'light' => 'bg-red-100', 'text' => 'text-red-600', 'label' => 'Withdrawn'], ]; $statusColor = $statusColors[$status] ?? ['bg' => 'bg-gray-500', 'light' => 'bg-gray-100', 'text' => 'text-gray-600', 'label' => ucfirst($status)]; @endphp
{{ $statusColor['label'] }}
{{ number_format($count) }} ({{ number_format($percentage, 1) }}%)
@endforeach

Departmental Overview

View All →
@forelse($topDepartments as $dept)

{{ $dept->name }}

{{ $dept->code }}

{{ $dept->students_count ?? 0 }}

Students

{{ $dept->programs_count ?? 0 }}

Programs

@empty

No department data available

@endforelse

Timetable Overview

Total Classes Scheduled

{{ number_format($timetableStats['total_classes'] ?? 0) }}

Active Venues

{{ number_format($timetableStats['total_venues'] ?? 0) }}

Total Courses

{{ number_format($stats['total_courses'] ?? 0) }}

Recent Applications

View All →
@forelse($recentApplications as $application)

{{ $application->first_name }} {{ $application->last_name }}

{{ $application->program->name ?? 'N/A' }}

@php $statusColors = [ 'submitted' => 'bg-blue-100 text-blue-800', 'under_review' => 'bg-yellow-100 text-yellow-800', 'approved' => 'bg-green-100 text-green-800', 'rejected' => 'bg-red-100 text-red-800', ]; $statusColor = $statusColors[$application->status] ?? 'bg-gray-100 text-gray-800'; @endphp {{ ucfirst(str_replace('_', ' ', $application->status)) }}
@empty

No recent applications

@endforelse
@endsection