@extends('layouts.app') @section('content')
{{-- Header --}}

System Control Dashboard

Monitoring academic operations and system health.

AD
Administrator Active
{{-- Primary Stats Grid --}}
{{-- Total Staff --}}
people
people
{{ $staffWithSubjectsCount }}/{{ $staffCount }} Active

{{ $staffCount }}

Total Faculty

{{ $staffUtilization }}%
{{-- Enrolled Students --}}
school
school
{{ $studentsWithAllocations }} Enrolled

{{ $studentCount }}

Total Students

{{ $studentEngagement }}%
{{-- Active Subjects --}}
menu_book
menu_book
{{ $categoryCount }} Categories

{{ $subjectCount }}

Active Subjects

{{ round($averageCreditsPerSubject, 1) }} Avg Credits
{{-- Total Allocations --}}
assignment
assignment
{{ $deptCount }} Departments

{{ $allocationCount }}

Total Allocations

{{ $semesterCount }} Semesters
{{-- Charts Row --}}
{{-- Students by Department Chart --}}

Students by Department

pie_chart
{{-- Subjects by Category Chart --}}

Subjects by Category

donut_small
{{-- Allocation Trend Chart --}}

Allocation Trend

Last 6 months activity

show_chart
{{-- Data Tables Row --}}
{{-- Top Faculty by Subjects --}}

Top Faculty by Subjects

Top 5
@forelse($staffWithSubjects as $staff)
{{ substr($staff->name, 0, 2) }}

{{ $staff->name }}

{{ $staff->email }}

{{ $staff->subjects_count }}

Subjects

@empty
person_off

No faculty data available

@endforelse
{{-- Top Subjects by Allocations --}}

Popular Subjects

Top 5
@forelse($topSubjects as $subject)

{{ $subject->name }}

{{ $subject->code }} • {{ $subject->credits ?? 3 }} Credits

{{ $subject->allocations_count }}

Students

@empty
library_books

No subject data available

@endforelse
{{-- Recent Activity & Quick Actions --}}
{{-- Recent Allocations --}}

Recent Allocations

View All
@forelse($recentAllocations as $allocation)
assignment_turned_in

{{ $allocation->student->name }}

{{ $allocation->subject->name }} • {{ $allocation->staff->name }}

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

@empty
assignment

No recent allocations

@endforelse
{{-- Quick Management --}}
{{-- System Limits Overview --}}

Dynamic System Limits

Configure

Max Subjects/Faculty

{{ $maxSubjectsPerFaculty }}

Max Faculty/Subject

{{ $maxFacultyPerSubject }}

Student Total Credits

{{ $totalCreditLimit }}

Semester Max Credits

{{ $semesterCreditMax }}

{{-- Chart.js CDN --}} @endsection