• {{ __('Dashboard') }}
  • {{-- Classes --}} @can('view classes')
  • @php if (session()->has('browse_session_id')){ $classCount = \App\Models\SchoolClass::where('session_id', session('browse_session_id'))->count(); } else { $latest_session = \App\Models\SchoolSession::latest()->first(); if($latest_session) { $classCount = \App\Models\SchoolClass::where('session_id', $latest_session->id)->count(); } else { $classCount = 0; } } @endphp Classes {{ $classCount }}
  • @endcan {{-- Students --}} @if(auth()->user()->role != "student")
  • Students
    • routeIs('student.list.show')? 'style="font-weight:bold;"' : '' }}> View Students
    • @if (in_array(auth()->user()->role, ['admin','subadmin']))
    • routeIs('student.create.show')? 'style="font-weight:bold;"' : '' }}> Add Student
    • @endif
  • {{-- Teachers --}}
  • Teachers
    • routeIs('teacher.list.show')? 'style="font-weight:bold;"' : '' }}> View Teachers
    • @if (!session()->has('browse_session_id') && in_array(auth()->user()->role, ['admin','subadmin']))
    • routeIs('teacher.create.show')? 'style="font-weight:bold;"' : '' }}> Add Teacher
    • @endif
  • @endif {{-- Sub Admin management (Only Admin can add/manage Sub Admins) --}} @if(auth()->user()->role == "admin")
  • Sub Admin
    • routeIs('subadmin.create.show')? 'style="font-weight:bold;"' : '' }}> Add Sub Admin
    • routeIs('subadmin.list.show')? 'style="font-weight:bold;"' : '' }}> View Sub Admin
  • @endif {{-- Teacher-specific --}} @if(auth()->user()->role == "teacher")
  • My Courses
  • @endif {{-- Student-specific --}} @if(auth()->user()->role == "student")
  • Attendance
  • Courses
  • @php if (session()->has('browse_session_id')){ $class_info = \App\Models\Promotion::where('session_id', session('browse_session_id'))->where('student_id', auth()->user()->id)->first(); } else { $latest_session = \App\Models\SchoolSession::latest()->first(); if($latest_session) { $class_info = \App\Models\Promotion::where('session_id', $latest_session->id)->where('student_id', auth()->user()->id)->first(); } else { $class_info = []; } } @endphp Routine
  • @endif {{-- Exams / Grades --}} @if(auth()->user()->role != "student")
  • Exams / Grades
    • routeIs('exam.list.show')? 'style="font-weight:bold;"' : '' }}> View Exams
    • @if (in_array(auth()->user()->role, ['admin','teacher','subadmin']))
    • routeIs('exam.create.show')? 'style="font-weight:bold;"' : '' }}> Create Exams
    • @endif @if (auth()->user()->role == "admin")
    • routeIs('exam.grade.system.create')? 'style="font-weight:bold;"' : '' }}> Add Grade Systems
    • @endif
    • routeIs('exam.grade.system.index')? 'style="font-weight:bold;"' : '' }}> View Grade Systems
  • @endif {{-- Admin + Subadmin rights --}} @if(in_array(auth()->user()->role, ['admin','subadmin']))
  • Notice
  • Event
  • Syllabus
  • Routine
  • @endif @if(auth()->user()->role == "admin")
  • Academic
  • @endif @if (!session()->has('browse_session_id') && in_array(auth()->user()->role, ['admin','subadmin']))
  • Promotion
  • @endif
  • Payments
  • {{-- Documentation --}}
  • 📚 Help & Docs
  • @if (auth()->user()->role == "admin")
  • Staff
  • Library
  • @endif