   <!-- 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">
               <?php 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">
                           <?php echo e(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">

                       <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('manageAny', App\Models\User::class)): ?>
                       <li class="<?php echo e((Request::is('admin/users')  || Request::is('admin/users/*')? 'active' : '')); ?>">
                           <a class="d-flex align-items-center" href="<?php echo e(route('admin.users')); ?>">
                               <i data-feather="circle"></i>
                               <span class="menu-item text-truncate" data-i18n="Analytics">
                                   <?php echo e(trans("general.Admins")); ?>

                               </span>
                           </a>
                       </li>
                       <?php endif; ?>
                       <!-- 
                       <li class="<?php echo e((Request::is('admin/headmasters')  || Request::is('admin/headmasters/*')? 'active' : '')); ?>">
                           <a class="d-flex align-items-center" href="<?php echo e(route('admin.headmasters')); ?>">
                               <i data-feather="circle"></i>
                               <span class="menu-item text-truncate" data-i18n="Analytics">
                                   <?php echo e(trans("general.headmasters")); ?>

                               </span>
                           </a>
                       </li>

                       <li class="<?php echo e((Request::is('admin/guidanceCounselors')  || Request::is('admin/guidanceCounselors/*')? 'active' : '')); ?>">
                           <a class="d-flex align-items-center" href="<?php echo e(route('admin.guidanceCounselors')); ?>">
                               <i data-feather="circle"></i>
                               <span class="menu-item text-truncate" data-i18n="Analytics">
                                   <?php echo e(trans("general.guidance_counselors")); ?>

                               </span>
                           </a>
                       </li> -->
                       <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('manageAny', App\Models\Parents::class)): ?>
                       <li class="<?php echo e((Request::is('admin/parents') || Request::is('admin/parents/*') ? 'active' : '')); ?>">
                           <a class="d-flex align-items-center" href="<?php echo e(route('admin.parents')); ?>">
                               <i data-feather="circle"></i>
                               <span class="menu-item text-truncate" data-i18n="eCommerce">
                                   <?php echo e(trans("general.Parents")); ?>

                               </span>
                           </a>
                       </li>
                       <?php endif; ?>

                   </ul>
               </li>
               <?php endif; ?>

               <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('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">
                           <?php echo e(trans("general.Roles")); ?> &amp; <?php echo e(trans("general.Permission")); ?>

                       </span>
                   </a>
                   <ul class="menu-content">
                       <li class="<?php echo e((Request::is('admin/roles') || Request::is('admin/roles/*') ? 'active' : '')); ?>">
                           <a class="d-flex align-items-center" href="<?php echo e(route('admin.roles')); ?>">
                               <i data-feather="circle"></i>
                               <span class="menu-item text-truncate" data-i18n="Roles">
                                   <?php echo e(trans("general.Roles")); ?>

                               </span>
                           </a>
                       </li>
                   </ul>
               </li> -->
               <?php endif; ?>

               <?php 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">
                           <?php echo e(trans("general.schools_structure")); ?>

                       </span>
                   </a>
                   <ul class="menu-content">
                       <!-- @ can('manageAny', App\Models\Stage::class)
                       <li class=" nav-item <?php echo e((Request::is('admin/stages') || Request::is('admin/stages/*') ? 'active' : '')); ?>">
                           <a class="d-flex align-items-center" href="<?php echo e(route('admin.stages')); ?>">
                               <i data-feather="circle"></i>
                               <span class="menu-title text-truncate"><?php echo e(trans('general.stages')); ?></span>
                           </a>
                       </li>
                       @ endcan -->
                       <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('manageAny', App\Models\Level::class)): ?>
                       <li class=" nav-item <?php echo e((Request::is('admin/levels') || Request::is('admin/levels/*') ? 'active' : '')); ?>">
                           <a class="d-flex align-items-center" href="<?php echo e(route('admin.levels')); ?>">
                               <i data-feather="circle"></i>
                               <span class="menu-title text-truncate"><?php echo e(trans('general.levels')); ?></span>
                           </a>
                       </li>
                       <?php endif; ?>
                       <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('manageAny', App\Models\Division::class)): ?>
                       <li class=" nav-item <?php echo e((Request::is('admin/divisions') || Request::is('admin/divisions/*') ? 'active' : '')); ?>">
                           <a class="d-flex align-items-center" href="<?php echo e(route('admin.divisions')); ?>">
                               <i data-feather="circle"></i>
                               <span class="menu-title text-truncate"><?php echo e(trans('general.divisions')); ?></span>
                           </a>
                       </li>
                       <?php endif; ?>

                   </ul>
               </li>
               <?php endif; ?>

               <?php 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">
                           <?php echo e(trans("general.curriculum")); ?>

                       </span>
                   </a>
                   <ul class="menu-content">
                      <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('manageAny', App\Models\StudyMaterial::class)): ?>   
                       <?php if(Auth::guard('admin')->user()->can('manageAny', App\Models\StudyMaterial::class)): ?>
                       <li class=" nav-item <?php echo e((Request::is('admin/studyMaterials') || Request::is('admin/studyMaterials/*') ? 'active' : '')); ?>">
                           <a class="d-flex align-items-center" href="<?php echo e(route('admin.studyMaterials')); ?>">
                               <i data-feather="circle"></i>
                               <span class="menu-title text-truncate"><?php echo e(trans('general.studyMaterials')); ?></span>
                           </a>
                       </li> <?php endif; ?>
                       <?php endif; ?>
                       <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('manageAny', App\Models\Worksheet::class)): ?>
                       <li class=" nav-item <?php echo e((Request::is('admin/worksheets') || Request::is('admin/worksheets/*') ? 'active' : '')); ?>">
                           <a class="d-flex align-items-center" href="<?php echo e(route('admin.worksheets')); ?>">
                               <i data-feather="circle"></i>
                               <span class="menu-title text-truncate"><?php echo e(trans('general.worksheets')); ?></span>
                           </a>
                       </li>
                       <?php endif; ?>
                       <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('manageAny', App\Models\SemesterExam::class)): ?>
                       <li class=" nav-item <?php echo e((Request::is('admin/exams') || Request::is('admin/exams/*') ? 'active' : '')); ?>">
                           <a class="d-flex align-items-center" href="<?php echo e(route('admin.exams')); ?>">
                               <i data-feather="circle"></i>
                               <span class="menu-title text-truncate"><?php echo e(trans('general.exams')); ?></span>
                           </a>
                       </li>
                       <li class=" nav-item <?php echo e((Request::is('admin/exam/programs') || Request::is('admin/exam/programs/*') ? 'active' : '')); ?>">
                           <a class="d-flex align-items-center" href="<?php echo e(route('admin.exams.programs')); ?>">
                               <i data-feather="circle"></i>
                               <span class="menu-title text-truncate"><?php echo e(trans('general.exams_programs')); ?></span>
                           </a>
                       </li>
                       <?php endif; ?>
                       <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('manageAny', App\Models\WeeklyProgram::class)): ?>
                       <li class=" nav-item <?php echo e((Request::is('admin/weeklyPrograms') || Request::is('admin/weeklyPrograms/*') ? 'active' : '')); ?>">
                           <a class="d-flex align-items-center" href="<?php echo e(route('admin.weeklyPrograms')); ?>">
                               <i data-feather="circle"></i>
                               <span class="menu-title text-truncate"><?php echo e(trans('general.weeklyPrograms')); ?></span>
                           </a>
                       </li>
                       <?php endif; ?>
                   </ul>
               </li>
               <?php endif; ?>
              
               <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('manageAny', App\Models\Student::class)): ?>
               <li class=" nav-item <?php echo e((Request::is('admin/students') || Request::is('admin/students/*') ? 'active' : '')); ?>">
                   <a class="d-flex align-items-center" href="<?php echo e(route('admin.students')); ?>">
                       <i class="fas fa-users"></i>
                       <span class="menu-title text-truncate"><?php echo e(trans('general.students')); ?></span>
                   </a>
               </li><?php endif; ?>
               
                <?php if(Auth::guard('admin')->user()->can('manageAny', App\Models\StudentFinancialRecord::class)): ?>
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('manageAny', App\Models\StudentFinancialRecord::class)): ?>
               <li class=" nav-item <?php echo e((Request::is('admin/financials/students') || Request::is('admin/financials/students/*') || Request::is('admin/financials/student/*') ? 'active' : '')); ?>">
                   <a class="d-flex align-items-center" href="<?php echo e(route('admin.financial.students')); ?>">
                       <i class="fas fa-dollar-sign"></i>
                       <span class="menu-title text-truncate"><?php echo e(trans('general.students_financials')); ?></span>
                   </a>
               </li>
               <?php endif; ?>
               <?php endif; ?>
               <!-- <li class=" nav-item <?php echo e((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"><?php echo e(trans('general.absence')); ?></span>
                   </a>
               </li> -->
               <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('manageAny', App\Models\StudentNote::class)): ?>
               
               <li class=" nav-item <?php echo e((Request::is('admin/notes') || Request::is('admin/notes/*') ? 'active' : '')); ?>">
                   <a class="d-flex align-items-center" href="<?php echo e(route('admin.notes')); ?>">
                       <i class="far fa-sticky-note"></i>
                       <span class="menu-title text-truncate"><?php echo e(trans('general.notes')); ?></span>
                   </a>
               </li>
               <?php endif; ?>
               <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('manageAny', App\Models\Announcement::class)): ?>
               <li class=" nav-item <?php echo e((Request::is('admin/announcements') || Request::is('admin/announcements/*') ? 'active' : '')); ?>">
                   <a class="d-flex align-items-center" href="<?php echo e(route('admin.announcements')); ?>">
                       <i class="fas fa-bullhorn"></i>
                       <span class="menu-title text-truncate"><?php echo e(trans('general.announcements')); ?></span>
                   </a>
               </li>
               <?php endif; ?>
               <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('manageAny', App\Models\Settings::class)): ?>
               <li class=" nav-item <?php echo e((Request::is('admin/settings') || Request::is('admin/settings/*') ? 'active' : '')); ?>">
                   <a class="d-flex align-items-center" href="<?php echo e(route('admin.settings')); ?>">
                       <i class="fas fa-cogs"></i>
                       <span class="menu-title text-truncate"><?php echo e(trans('general.settings')); ?></span>
                   </a>
               </li>
               <?php endif; ?>
               <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('manageAny', App\Models\Transportation::class)): ?>
               <li class=" nav-item <?php echo e((Request::is('admin/transportations') || Request::is('admin/transportations/*') ? 'active' : '')); ?>">
                   <a class="d-flex align-items-center" href="<?php echo e(route('admin.transportations')); ?>">
                       <i class="fas fa-bus-alt"></i>
                       <span class="menu-title text-truncate"><?php echo e(trans('general.transportations')); ?></span>
                   </a>
               </li>
               <?php endif; ?>

               <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('manageAny', App\Models\StudentNote::class)): ?>
               <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('manageAny', App\Models\Worksheet::class)): ?>
               <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('manageAny', App\Models\SemesterExam::class)): ?>
               <li class=" nav-item">
                <a class="d-flex align-items-center" href="<?php echo e(route('todayEvents')); ?>">
                    <i class="fa fa-calendar" aria-hidden="true"></i>
                    <span class="menu-title text-truncate ">أحداث اليوم</span>
                </a>
                </li>
                <?php endif; ?>
                <?php endif; ?>
                <?php endif; ?>
               <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('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> -->
               <?php endif; ?>
               <!-- 
               <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('manageAny', App\Models\Semester::class)): ?>
               <li class=" nav-item <?php echo e((Request::is('admin/semesters') || Request::is('admin/semesters/*') ? 'active' : '')); ?>">
                   <a class="d-flex align-items-center" href="<?php echo e(route('admin.semesters')); ?>">
                       <i data-feather='layers'></i>
                       <span class="menu-title text-truncate"><?php echo e(trans('general.semesters')); ?></span>
                   </a>
               </li>
               <?php endif; ?>
               <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('manageAny', App\Models\AcademicYear::class)): ?>
               <li class=" nav-item <?php echo e((Request::is('admin/years/academic') || Request::is('admin/years/academic/*') ? 'active' : '')); ?>">
                   <a class="d-flex align-items-center" href="<?php echo e(route('admin.academicYears')); ?>">
                       <i data-feather='layers'></i>
                       <span class="menu-title text-truncate"><?php echo e(trans('general.academic_years')); ?></span>
                   </a>
               </li>
               <?php endif; ?>
               -->
           </ul>
       </div>
   </div>
   <!-- END: Main Menu--> <?php /**PATH C:\Users\nobalaa-dev\Desktop\New folde2r\portal\resources\views/admin/layouts/sidebar.blade.php ENDPATH**/ ?>