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

Dean Dashboard

{{ $department->name }}

Department Students

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

Across all programs

Faculty Members

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

Teaching staff

Active Programs

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

Degree programs

Total Courses

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

Course offerings

Students by Program

@forelse($studentsByProgram as $program)
{{ $program->name }} ({{ $program->code }})
{{ $program->students_count }} students
@php $percentage = $stats['department_students'] > 0 ? ($program->students_count / $stats['department_students']) * 100 : 0; @endphp
@empty

No programs found

@endforelse

Student Performance Overview

@if(isset($studentPerformance)) @foreach($studentPerformance as $level => $performance)

Level {{ $level }}

Average GPA: {{ number_format($performance['avg_gpa'] ?? 0, 2) }}

{{ $performance['count'] ?? 0 }}

Students

@endforeach @else

Performance data not available

@endif

Faculty Members

View All →
@forelse($facultyMembers->take(5) as $faculty)
{{ strtoupper(substr($faculty->user->name, 0, 1)) }}

{{ $faculty->user->name }}

{{ str_replace('_', ' ', $faculty->position) }}

@empty

No faculty members

@endforelse

Resource Overview

Active Venues {{ $resourceStats['venues'] ?? 0 }}
Scheduled Classes {{ $resourceStats['classes'] ?? 0 }}
Learning Modules {{ $resourceStats['modules'] ?? 0 }}
Manage Resources →

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

Recent Activity

@forelse($departmentActivity->take(5) as $activity)
{{ $activity->user ? strtoupper(substr($activity->user->name, 0, 1)) : 'S' }}

{{ $activity->description }}

{{ $activity->created_at->diffForHumans() }}

@empty

No recent activity

@endforelse

Department Management

@endsection