   <!-- BEGIN: Main Menu-->
   <div class="main-menu menu-fixed menu-light menu-accordion menu-shadow" data-scroll-to-active="true">
       <div class="navbar-header">
           <ul class="nav navbar-nav flex-row">
               <li class="nav-item me-auto">
                   <a class="navbar-brand" href="#">
                       <span>
                              <img  src="/portal/public/FormatFactorylogo_Sama.png" alt="sama" height="45" width="170">
                       </span>
                   </a></li>
               <li class="nav-item nav-toggle"><a class="nav-link modern-nav-toggle pe-0" data-bs-toggle="collapse"><i class="d-block d-xl-none text-primary toggle-icon font-medium-4" data-feather="x"></i><i class="d-none d-xl-block collapse-toggle-icon font-medium-4  text-primary" data-feather="disc" data-ticon="disc"></i></a></li>
           </ul>
       </div>
       <div class="shadow-bottom"></div>
       <div class="main-menu-content">
           <ul class="navigation navigation-main " id="main-menu-navigation" data-menu="menu-navigation">
               @if(Auth::guard('admin')->user()->can('manageAny', App\Models\User::class) || Auth::guard('admin')->user()->can('manageAny', App\Models\Parents::class))
               <li class=" nav-item font-tajawal">
                   <a class="d-flex align-items-center" href="">
                       <i class="fas fa-users-cog"></i>
                       <span class="menu-title text-truncate" data-i18n="Dashboards">
                           {{ trans("general.Users and Accounts") }}
                       </span>
                       <!-- <span class="badge badge-light-warning rounded-pill ms-auto me-1">
                           2
                        </span> -->
                   </a>
                   <ul class="menu-content">

                       @can('manageAny', App\Models\User::class)
                       <li class="{{ (Request::is('admin/users')  || Request::is('admin/users/*')? 'active' : '') }}">
                           <a class="d-flex align-items-center" href="{{route('admin.users')}}">
                               <i data-feather="circle"></i>
                               <span class="menu-item text-truncate" data-i18n="Analytics">
                                   {{ trans("general.Admins") }}
                               </span>
                           </a>
                       </li>
                       @endcan
                       <!-- 
                       <li class="{{ (Request::is('admin/headmasters')  || Request::is('admin/headmasters/*')? 'active' : '') }}">
                           <a class="d-flex align-items-center" href="{{route('admin.headmasters')}}">
                               <i data-feather="circle"></i>
                               <span class="menu-item text-truncate" data-i18n="Analytics">
                                   {{ trans("general.headmasters") }}
                               </span>
                           </a>
                       </li>

                       <li class="{{ (Request::is('admin/guidanceCounselors')  || Request::is('admin/guidanceCounselors/*')? 'active' : '') }}">
                           <a class="d-flex align-items-center" href="{{route('admin.guidanceCounselors')}}">
                               <i data-feather="circle"></i>
                               <span class="menu-item text-truncate" data-i18n="Analytics">
                                   {{ trans("general.guidance_counselors") }}
                               </span>
                           </a>
                       </li> -->
                       @can('manageAny', App\Models\Parents::class)
                       <li class="{{ (Request::is('admin/parents') || Request::is('admin/parents/*') ? 'active' : '') }}">
                           <a class="d-flex align-items-center" href="{{route('admin.parents')}}">
                               <i data-feather="circle"></i>
                               <span class="menu-item text-truncate" data-i18n="eCommerce">
                                   {{ trans("general.Parents") }}
                               </span>
                           </a>
                       </li>
                       @endcan

                   </ul>
               </li>
               @endif

               @can('manageAny', App\Models\Role::class)
               <!-- <li class=" nav-item">
                   <a class="d-flex align-items-center" href="#">
                       <i data-feather="shield"></i>
                       <span class="menu-title text-truncate" data-i18n="Roles &amp; Permission">
                           {{ trans("general.Roles") }} &amp; {{ trans("general.Permission") }}
                       </span>
                   </a>
                   <ul class="menu-content">
                       <li class="{{ (Request::is('admin/roles') || Request::is('admin/roles/*') ? 'active' : '') }}">
                           <a class="d-flex align-items-center" href="{{route('admin.roles')}}">
                               <i data-feather="circle"></i>
                               <span class="menu-item text-truncate" data-i18n="Roles">
                                   {{ trans("general.Roles") }}
                               </span>
                           </a>
                       </li>
                   </ul>
               </li> -->
               @endcan

               @if(Auth::guard('admin')->user()->can('manageAny', App\Models\Level::class) || Auth::guard('admin')->user()->can('manageAny', App\Models\Division::class))

               <li class=" nav-item">
                   <a class="d-flex align-items-center" href="#">
                       <i class="fas fa-layer-group"></i>
                       <span class="menu-title text-truncate" data-i18n="Roles &amp; Permission">
                           {{ trans("general.schools_structure") }}
                       </span>
                   </a>
                   <ul class="menu-content">
                       <!-- @ can('manageAny', App\Models\Stage::class)
                       <li class=" nav-item {{ (Request::is('admin/stages') || Request::is('admin/stages/*') ? 'active' : '') }}">
                           <a class="d-flex align-items-center" href="{{route('admin.stages')}}">
                               <i data-feather="circle"></i>
                               <span class="menu-title text-truncate">{{trans('general.stages')}}</span>
                           </a>
                       </li>
                       @ endcan -->
                       @can('manageAny', App\Models\Level::class)
                       <li class=" nav-item {{ (Request::is('admin/levels') || Request::is('admin/levels/*') ? 'active' : '') }}">
                           <a class="d-flex align-items-center" href="{{route('admin.levels')}}">
                               <i data-feather="circle"></i>
                               <span class="menu-title text-truncate">{{trans('general.levels')}}</span>
                           </a>
                       </li>
                       @endcan
                       @can('manageAny', App\Models\Division::class)
                       <li class=" nav-item {{ (Request::is('admin/divisions') || Request::is('admin/divisions/*') ? 'active' : '') }}">
                           <a class="d-flex align-items-center" href="{{route('admin.divisions')}}">
                               <i data-feather="circle"></i>
                               <span class="menu-title text-truncate">{{trans('general.divisions')}}</span>
                           </a>
                       </li>
                       @endcan

                   </ul>
               </li>
               @endif

               @if(Auth::guard('admin')->user()->can('manageAny', App\Models\StudyMaterial::class) || Auth::guard('admin')->user()->can('manageAny', App\Models\Worksheet::class)
               || Auth::guard('admin')->user()->can('manageAny', App\Models\SemesterExam::class) || Auth::guard('admin')->user()->can('manageAny', App\Models\WeeklyProgram::class))

               <li class=" nav-item">
                   <a class="d-flex align-items-center" href="#">
                       <i class="fas fa-book"></i>
                       <span class="menu-title text-truncate" data-i18n="Roles &amp; Permission">
                           {{ trans("general.curriculum") }}
                       </span>
                   </a>
                   <ul class="menu-content">
                      @can('manageAny', App\Models\StudyMaterial::class)   
                       @if(Auth::guard('admin')->user()->can('manageAny', App\Models\StudyMaterial::class))
                       <li class=" nav-item {{ (Request::is('admin/studyMaterials') || Request::is('admin/studyMaterials/*') ? 'active' : '') }}">
                           <a class="d-flex align-items-center" href="{{route('admin.studyMaterials')}}">
                               <i data-feather="circle"></i>
                               <span class="menu-title text-truncate">{{trans('general.studyMaterials')}}</span>
                           </a>
                       </li> @endcan
                       @endif
                       @can('manageAny', App\Models\Worksheet::class)
                       <li class=" nav-item {{ (Request::is('admin/worksheets') || Request::is('admin/worksheets/*') ? 'active' : '') }}">
                           <a class="d-flex align-items-center" href="{{route('admin.worksheets')}}">
                               <i data-feather="circle"></i>
                               <span class="menu-title text-truncate">{{trans('general.worksheets')}}</span>
                           </a>
                       </li>
                       @endcan
                       @can('manageAny', App\Models\SemesterExam::class)
                       <li class=" nav-item {{ (Request::is('admin/exams') || Request::is('admin/exams/*') ? 'active' : '') }}">
                           <a class="d-flex align-items-center" href="{{route('admin.exams')}}">
                               <i data-feather="circle"></i>
                               <span class="menu-title text-truncate">{{trans('general.exams')}}</span>
                           </a>
                       </li>
                       <li class=" nav-item {{ (Request::is('admin/exam/programs') || Request::is('admin/exam/programs/*') ? 'active' : '') }}">
                           <a class="d-flex align-items-center" href="{{route('admin.exams.programs')}}">
                               <i data-feather="circle"></i>
                               <span class="menu-title text-truncate">{{trans('general.exams_programs')}}</span>
                           </a>
                       </li>
                       @endcan
                       @can('manageAny', App\Models\WeeklyProgram::class)
                       <li class=" nav-item {{ (Request::is('admin/weeklyPrograms') || Request::is('admin/weeklyPrograms/*') ? 'active' : '') }}">
                           <a class="d-flex align-items-center" href="{{route('admin.weeklyPrograms')}}">
                               <i data-feather="circle"></i>
                               <span class="menu-title text-truncate">{{trans('general.weeklyPrograms')}}</span>
                           </a>
                       </li>
                       @endcan
                   </ul>
               </li>
               @endif
              
               @can('manageAny', App\Models\Student::class)
               <li class=" nav-item {{ (Request::is('admin/students') || Request::is('admin/students/*') ? 'active' : '') }}">
                   <a class="d-flex align-items-center" href="{{route('admin.students')}}">
                       <i class="fas fa-users"></i>
                       <span class="menu-title text-truncate">{{trans('general.students')}}</span>
                   </a>
               </li>@endcan
               
                @if(Auth::guard('admin')->user()->can('manageAny', App\Models\StudentFinancialRecord::class))
                @can('manageAny', App\Models\StudentFinancialRecord::class)
               <li class=" nav-item {{ (Request::is('admin/financials/students') || Request::is('admin/financials/students/*') || Request::is('admin/financials/student/*') ? 'active' : '') }}">
                   <a class="d-flex align-items-center" href="{{route('admin.financial.students')}}">
                       <i class="fas fa-dollar-sign"></i>
                       <span class="menu-title text-truncate">{{trans('general.students_financials')}}</span>
                   </a>
               </li>
               @endcan
               @endif
               <!-- <li class=" nav-item {{ (Request::is('admin/absence') || Request::is('admin/absence/*') ? 'active' : '') }}">
                   <a class="d-flex align-items-center" href="route('admin.absence')}}">
                   <i class="far fa-clipboard"></i>
                       <span class="menu-title text-truncate">{{trans('general.absence')}}</span>
                   </a>
               </li> -->
               @can('manageAny', App\Models\StudentNote::class)
               
               <li class=" nav-item {{ (Request::is('admin/notes') || Request::is('admin/notes/*') ? 'active' : '') }}">
                   <a class="d-flex align-items-center" href="{{route('admin.notes')}}">
                       <i class="far fa-sticky-note"></i>
                       <span class="menu-title text-truncate">{{trans('general.notes')}}</span>
                   </a>
               </li>
               @endcan
               @can('manageAny', App\Models\Announcement::class)
               <li class=" nav-item {{ (Request::is('admin/announcements') || Request::is('admin/announcements/*') ? 'active' : '') }}">
                   <a class="d-flex align-items-center" href="{{route('admin.announcements')}}">
                       <i class="fas fa-bullhorn"></i>
                       <span class="menu-title text-truncate">{{trans('general.announcements')}}</span>
                   </a>
               </li>
               @endcan
               @can('manageAny', App\Models\Settings::class)
               <li class=" nav-item {{ (Request::is('admin/settings') || Request::is('admin/settings/*') ? 'active' : '') }}">
                   <a class="d-flex align-items-center" href="{{route('admin.settings')}}">
                       <i class="fas fa-cogs"></i>
                       <span class="menu-title text-truncate">{{trans('general.settings')}}</span>
                   </a>
               </li>
               @endcan
               @can('manageAny', App\Models\Transportation::class)
               <li class=" nav-item {{ (Request::is('admin/transportations') || Request::is('admin/transportations/*') ? 'active' : '') }}">
                   <a class="d-flex align-items-center" href="{{route('admin.transportations')}}">
                       <i class="fas fa-bus-alt"></i>
                       <span class="menu-title text-truncate">{{trans('general.transportations')}}</span>
                   </a>
               </li>
               @endcan

               @can('manageAny', App\Models\StudentNote::class)
               @can('manageAny', App\Models\Worksheet::class)
               @can('manageAny', App\Models\SemesterExam::class)
               <li class=" nav-item">
                <a class="d-flex align-items-center" href="{{route('todayEvents')}}">
                    <i class="fa fa-calendar" aria-hidden="true"></i>
                    <span class="menu-title text-truncate ">أحداث اليوم</span>
                </a>
                </li>
                @endcan
                @endcan
                @endcan
               @can('manageAny', App\Models\Role::class)
               <!-- <li class="navigation-header ">
                   <span>
                       Title                               ,'manageAny'=> App\Models\Worksheet::class,'manageAny'=> App\Models\StudentNote::class
                   </span>
                   <i data-feather="more-horizontal"></i>
               </li> -->
               @endcan
               <!-- 
               @can('manageAny', App\Models\Semester::class)
               <li class=" nav-item {{ (Request::is('admin/semesters') || Request::is('admin/semesters/*') ? 'active' : '') }}">
                   <a class="d-flex align-items-center" href="{{route('admin.semesters')}}">
                       <i data-feather='layers'></i>
                       <span class="menu-title text-truncate">{{trans('general.semesters')}}</span>
                   </a>
               </li>
               @endcan
               @can('manageAny', App\Models\AcademicYear::class)
               <li class=" nav-item {{ (Request::is('admin/years/academic') || Request::is('admin/years/academic/*') ? 'active' : '') }}">
                   <a class="d-flex align-items-center" href="{{route('admin.academicYears')}}">
                       <i data-feather='layers'></i>
                       <span class="menu-title text-truncate">{{trans('general.academic_years')}}</span>
                   </a>
               </li>
               @endcan
               -->
           </ul>
       </div>
   </div>
   <!-- END: Main Menu--> 