@extends('layouts.app') @section('content')
{{-- HEADER --}}
Panel Admin

Dashboard

{{ strtoupper(substr(auth()->user()->name, 0, 2)) }}
{{ auth()->user()->name }}
{{-- STATISTIK --}} @php $cards = [ ['title' => 'Total Siswa', 'value' => $jumlahSiswa, 'color' => 'primary', 'icon' => 'fa-solid fa-user-graduate'], ['title' => 'Total Guru', 'value' => $jumlahGuru, 'color' => 'success', 'icon' => 'fa-solid fa-chalkboard-teacher'], ['title' => 'Total Kelas', 'value' => $jumlahKelas, 'color' => 'warning', 'icon' => 'fa-solid fa-school'], ['title' => 'Mata Pelajaran', 'value' => $jumlahMapel, 'color' => 'danger', 'icon' => 'fa-solid fa-book'], ]; @endphp
@foreach($cards as $c)
{{ $c['title'] }}
{{ number_format($c['value']) }}
@endforeach
{{-- CHARTS --}}

Visualisasi Data

{{-- CHART SISWA PER KELAS --}}
Siswa per Kelas
Bar chart
{{-- CHART DISTRIBUSI NILAI --}}
Distribusi Nilai
Pie chart
{{-- DATA LISTS --}}

Data Terkini

{{-- SISWA TERBARU --}}
Siswa Terbaru
@forelse($siswaTerbaru as $i => $siswa)
{{ str_pad($loop->iteration, 2, '0', STR_PAD_LEFT) }} {{ $siswa->nama }}
{{ $siswa->kelas->nama ?? '—' }}
@empty
Belum ada data siswa
@endforelse
{{-- NILAI TERTINGGI --}}
Nilai Tertinggi
@forelse($nilaiTertinggi as $n)
{{ str_pad($loop->iteration, 2, '0', STR_PAD_LEFT) }} {{ $n->siswa->nama ?? '—' }}
@php $score = $n->nilai; @endphp {{ $score }}
@empty
Belum ada data nilai
@endforelse
{{-- QUICK ACTIONS --}}
Aksi Cepat
Tambah atau kelola data langsung dari sini
@endsection @push('scripts') @endpush