@extends('layouts.adminlte')
@section('title', 'Dashboard Super Admin')
@section('content_header')
{{-- CUSTOM HEADER: Sudah menggunakan Indigo, hanya penyesuaian sedikit --}}
@php
$stats = [
['color' => 'indigo', 'icon' => 'fa-user-graduate', 'label' => 'Total Siswa', 'value' => $totalStudents, 'route' => route('students.index')],
['color' => 'cyan', 'icon' => 'fa-chalkboard', 'label' => 'Total Kelas', 'value' => $totalClasses, 'route' => route('classes.index')],
['color' => 'emerald','icon' => 'fa-check-circle', 'label' => 'Hadir Hari Ini', 'value' => $attendancePercentage . '%', 'route' => route('report.index')],
['color' => 'rose', 'icon' => 'fa-users', 'label' => 'Total User', 'value' => $totalUsers, 'route' => route('admin.users.index')],
];
// Handle Pending Users Alert
if($pendingUsers > 0) {
$stats[3] = ['color' => 'orange', 'icon' => 'fa-user-clock', 'label' => 'Menunggu Approval', 'value' => $pendingUsers, 'route' => route('admin.users.index', ['tab' => 'pending'])];
}
@endphp
@foreach($stats as $index => $stat)
{{-- Decorative Blur --}}
{{ $stat['label'] }}
{{ $stat['value'] }}
@endforeach
{{-- MAIN CONTENT GRID (Timeline & Info) --}}
{{-- ACTIVITY TIMELINE (2 Columns) --}}
{{-- SIDEBAR: SYSTEM & QUICK ACTIONS --}}
{{-- System Status Card --}}
System Health
Environment
Laravel v{{ app()->version() }}
PHP {{ $phpVersion }}
{{-- Quick Actions --}}
@stop
@section('js')
{{-- SweetAlert JS dan Logika Session Flash (TIDAK DIUBAH) --}}
@stop