{{-- Toastr --}} {{-- Select 2 --}} {{-- CDN Grafik --}} @vite(['resources/css/app.css', 'resources/js/app.js'])
@include('layouts.navigation')
@isset($header) @php $roleDescription = ''; if (Auth::check()) { $user = Auth::user(); if ($user->role === 'Admin') { $roleDescription = ''; } elseif ($user->role === 'Wali') { $wali = $user->waliKelas; $kelasDisplay = null; if ($wali) { $periodeAktif = $wali->periodeWaliKelas() ->where('deleted', '0') ->with('kelas') ->orderByDesc('thn_ajaran_awal') ->orderByDesc('thn_ajaran_akhir') ->first(); $kelas = $periodeAktif?->kelas; if ($kelas) { $roman = trim($kelas->nama_kelas_romawi ?? ''); $sub = trim($kelas->nama_kelas_sub ?? ''); $number = trim((string) ($kelas->nama_kelas_nomor ?? '')); $romanDisplay = $roman; if ($sub !== '') { $romanDisplay = trim($romanDisplay . ' ' . $sub); } $numberDisplay = $number; if ($sub !== '') { $numberDisplay .= $sub; } $kelasDisplay = $romanDisplay ?: ($kelas->nama_kelas ?? null); if ($romanDisplay !== '' && $numberDisplay !== '') { $kelasDisplay = trim(($kelasDisplay ?? $romanDisplay) . ' (' . $numberDisplay . ')'); } } } $roleDescription = $kelasDisplay ? 'Wali Kelas ' . $kelasDisplay : 'Wali Kelas'; } else { $roleDescription = ucfirst(strtolower($user->role ?? '')); } } @endphp
{{-- logo_sirp --}} {{--

LP3I Computer Club

--}}
{{-- Dropdown Header --}}
{{-- Modal Logout --}} @endisset
{{ $slot }}
{{-- --}} {{-- Toastr --}} {{-- Select 2 --}} {{-- Flowbite --}} {{-- --}} {{-- notif tambah data berhasil ditambahkan --}} @if (Session::has('successNotif')) @endif @if (Session::has('error')) @endif @stack('js')