@extends('layouts.app')
@section('admin_title', 'Super Admin Dashboard')
@section('content')
Master Platform Control
Welcome, {{ session('superadmin_name', 'Super Admin') }}
Manage universities, onboard colleges with instant Normal Admin credentials, organize Curriculum & Skill-Based courses, and monitor 7-day student engagement.
@foreach([
['label' => 'Universities', 'val' => $stats['universities'], 'sub' => 'Registered universities', 'icon' => 'fa-university', 'accent' => '#38bdf8', 'bg' => 'rgba(56,189,248,0.14)', 'border' => 'rgba(56,189,248,0.32)', 'route' => route('superadmin.university.index')],
['label' => 'Colleges', 'val' => $stats['colleges'], 'sub' => 'Onboarded campuses & admins', 'icon' => 'fa-school', 'accent' => '#fb923c', 'bg' => 'rgba(251,146,60,0.14)', 'border' => 'rgba(251,146,60,0.32)', 'route' => route('superadmin.college.index')],
['label' => 'Curriculum Courses', 'val' => $stats['curriculum_courses'], 'sub' => 'University-affiliated tracks', 'icon' => 'fa-graduation-cap', 'accent' => '#2dd4bf', 'bg' => 'rgba(45,212,191,0.14)', 'border' => 'rgba(45,212,191,0.32)', 'route' => route('superadmin.courses.index', ['type' => 'curriculum'])],
['label' => 'Skill-Based Courses', 'val' => $stats['skill_courses'], 'sub' => 'Independent industry tracks', 'icon' => 'fa-bolt', 'accent' => '#a78bfa', 'bg' => 'rgba(167,139,250,0.14)', 'border' => 'rgba(167,139,250,0.32)', 'route' => route('superadmin.courses.index', ['type' => 'skill'])],
['label' => 'Total Students', 'val' => $stats['students'], 'sub' => 'Across all colleges', 'icon' => 'fa-user-graduate', 'accent' => '#fb7185', 'bg' => 'rgba(251,113,133,0.14)', 'border' => 'rgba(251,113,133,0.32)', 'route' => route('superadmin.analytics.students')],
['label' => 'Active Students (7d)', 'val' => $stats['active_students_7d'], 'sub' => 'Logged in within last 7 days', 'icon' => 'fa-chart-line', 'accent' => '#4ade80', 'bg' => 'rgba(74,222,128,0.14)', 'border' => 'rgba(74,222,128,0.32)', 'route' => route('superadmin.analytics.students')],
] as $card)
{{ number_format((int) $card['val']) }}
{{ $card['label'] }}
{{ $card['sub'] }}
@endforeach
{{-- Quick Upload: Playground Study Material (Google Drive URL) --}}