{{-- ================================================================ FILE: resources/views/layouts/sidebar.blade.php ================================================================ --}} @php $role = auth()->user()->role ?? null; @endphp {{-- ================= ADMIN SIDEBAR ================= --}} @if($role == 'admin') @endif {{-- ================= GURU SIDEBAR ================= --}} @if(auth()->check() && auth()->user()->role == 'guru') @endif {{-- ================= SISWA SIDEBAR ================= --}} @if($role == 'siswa') @endif