@vite ('resources/css/app.css')
SMKN 2 RUPAT
Sistem Absensi
@auth @php $active = "bg-white/80 text-sky-800 shadow-md border border-sky-300 dark:bg-slate-800 dark:text-slate-200 dark:border-slate-700"; $default = "text-slate-600 hover:bg-slate-50 dark:text-slate-400 dark:hover:bg-slate-800 hover:text-slate-900 dark:hover:text-slate-200"; $activeRole = session( 'active_role', auth()->user()->roles[0] ?? null ); @endphp
Menu Navigasi
@if ($activeRole === 'admin')
Users
Guru
Kelas
Mapel
Jadwal
Siswa
@endif @if ($activeRole === 'guru')
Dashboard
Absensi Siswa
Surat Masuk
@endif @if ($activeRole === 'wali_kelas')
Rekap Wali
@endif @if ($activeRole === 'guru_bk')
Rekap BK
@endif @if ($activeRole === 'kepala_sekolah')
Laporan
@endif @if ($activeRole === 'orang_tua')
Dashboard
Monitoring
Surat Izin
@endif @endauth
@auth
TEMA MODE
{{ auth()->user()->username }}
{{ Str::headline($activeRole) }}
Role Aktif
@if (count(auth()->user()->roles ?? []) > 1)
Ganti Role
@endif
@csrf
Logout
@endauth
@if (session('success'))
{{ session('success') }}
@endif @yield ('content')