<!-- partial:../../partials/_sidebar.html -->
<nav class="sidebar sidebar-offcanvas" id="sidebar">
    <ul class="nav">
        
        <li class="nav-item">
            <a href="<?php echo e(url('/dashboard')); ?>" class="nav-link">
                <span class="menu-title"><?php echo e(__('dashboard')); ?></span>
                <i class="fa fa-home menu-icon"></i>
            </a>
        </li>
        
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['medium-create','section-create','subject-create','class-create','subject-create','promote-student-create','transfer-student-create'])): ?>
            <li class="nav-item">
                <a class="nav-link" data-toggle="collapse" href="#academics-menu" aria-expanded="false" aria-controls="academics-menu">
                    <span class="menu-title"><?php echo e(__('academics')); ?></span> <i class="fa fa-university menu-icon"></i>
                </a>
                <div class="collapse" id="academics-menu">
                    <ul class="nav flex-column sub-menu">
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('medium-create')): ?>
                            <li class="nav-item"><a href="<?php echo e(route('mediums.index')); ?>" class="nav-link"> <?php echo e(__('medium')); ?> </a></li>
                        <?php endif; ?>

                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('section-create')): ?>
                            <li class="nav-item"><a href="<?php echo e(route('section.index')); ?>" class="nav-link"> <?php echo e(__('section')); ?> </a></li>
                        <?php endif; ?>

                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('subject-create')): ?>
                            <li class="nav-item"><a href="<?php echo e(route('subject.index')); ?>" class="nav-link"> <?php echo e(__('subject')); ?> </a></li>
                        <?php endif; ?>

                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('semester-create')): ?>
                            <li class="nav-item"><a href="<?php echo e(route('semester.index')); ?>" class="nav-link"> <?php echo e(__('Semester')); ?> </a></li>
                        <?php endif; ?>

                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('stream-create')): ?>
                            <li class="nav-item"><a class="nav-link" href="<?php echo e(route('stream.index')); ?>"> <?php echo e(__('Stream')); ?> </a></li>
                        <?php endif; ?>

                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('shift-create')): ?>
                            <li class="nav-item"><a class="nav-link" href="<?php echo e(route('shift.index')); ?>"> <?php echo e(__('Shift')); ?> </a></li>
                        <?php endif; ?>

                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('class-create')): ?>
                            <li class="nav-item"><a href="<?php echo e(route('class.index')); ?>" class="nav-link"> <?php echo e(__('Class')); ?> </a></li>
                            <li class="nav-item"><a href="<?php echo e(route('class.subject.index')); ?>" class="nav-link"> <?php echo e(__('Class Subject')); ?> </a></li>
                        <?php endif; ?>


                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('class-section-create')): ?>
                            <li class="nav-item"><a href="<?php echo e(route('class-section.index')); ?>" class="nav-link"><?php echo e(__('Class Section & Teachers')); ?> </a></li>
                        <?php endif; ?>

                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any('promote-student-create','transfer-student-create')): ?>
                            <li class="nav-item"><a href="<?php echo e(route('promote-student.index')); ?>" class="nav-link"><?php echo e(__('Transfer & Promote Students')); ?></a></li>
                        <?php endif; ?>

                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('student-create')): ?>
                            <li class="nav-item"><a href="<?php echo e(route('students.roll-number.index')); ?>" class="nav-link"><?php echo e(__('assign')); ?> <?php echo e(__('roll_no')); ?></a></li>
                        <?php endif; ?>
                    </ul>
                </div>
            </li>
        <?php endif; ?>


        
        <?php if(\Spatie\Permission\PermissionServiceProvider::bladeMethodWrapper('hasRole', 'Teacher')): ?>
        <li class="nav-item">
            <a class="nav-link" href="<?php echo e(route('class-section.index')); ?>">
                <span class="menu-title"> <?php echo e(__('Class Section')); ?> </span><i class="fa fa-university menu-icon"></i>
            </a>
        </li>
        <?php endif; ?>

        
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['student-create', 'student-list', 'student-reset-password', 'class-teacher','form-fields-list', 'form-fields-create', 'form-fields-edit', 'form-fields-delete','guardian-create'])): ?>
            <li class="nav-item">
                <a class="nav-link" data-toggle="collapse" href="#student-menu" aria-expanded="false" aria-controls="academics-menu">
                    <span class="menu-title"><?php echo e(__('students')); ?></span>
                    <i class="fa fa-graduation-cap menu-icon"></i>
                </a>
                <div class="collapse" id="student-menu">
                    <ul class="nav flex-column sub-menu">
                        
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['form-fields-list', 'form-fields-create', 'form-fields-edit', 'form-fields-delete'])): ?>
                            <li class="nav-item">
                                <a href="<?php echo e(route('form-fields.index')); ?>" class="nav-link"><?php echo e(__('admission_form_fields')); ?></i></a>
                            </li>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('student-create')): ?>
                            <li class="nav-item"><a href="<?php echo e(route('students.create')); ?>" class="nav-link"><?php echo e(__('student_admission')); ?></a></li>
                        <?php endif; ?>

                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['student-list', 'class-teacher'])): ?>
                            <li class="nav-item"><a href="<?php echo e(route('students.index')); ?>" class="nav-link"><?php echo e(__('student_details')); ?></a></li>
                        <?php endif; ?>

                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('student-reset-password')): ?>
                            <li class="nav-item"><a href="<?php echo e(route('students.reset-password.index')); ?>" class="nav-link"><?php echo e(__('students') . ' ' . __('reset_password')); ?></a></li>
                        <?php endif; ?>
                        <?php if(Auth::user()->hasRole('School Admin')): ?>
                            <li class="nav-item"><a href="<?php echo e(route('students.create-bulk-data')); ?>" class="nav-link"><?php echo e(__('add_bulk_data')); ?></a></li>
                        <?php endif; ?>

                        
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('guardian-create')): ?>
                            <li class="nav-item">
                                <a href="<?php echo e(route('guardian.index')); ?>" class="nav-link"> <?php echo e(__('Guardian')); ?> </a>
                            </li>
                        <?php endif; ?>
                    </ul>
                </div>
            </li>
        <?php endif; ?>

        
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('teacher-create')): ?>
            <li class="nav-item">
                <a href="<?php echo e(route('teachers.index')); ?>" class="nav-link">
                    <span class="menu-title"><?php echo e(__('teacher')); ?></span> <i class="fa fa-user menu-icon"></i>
                </a>
            </li>
        <?php endif; ?>



        
        <?php if(Auth::user()->hasRole('Teacher')): ?>
            <li class="nav-item">
                <a href="<?php echo e(route('timetable.teacher.show', Auth::user()->id)); ?>" class="nav-link" data-access="false"> <span class="menu-title"><?php echo e(__('timetable')); ?></span> <i class="fa fa-calendar menu-icon"></i> </a>
            </li>
        <?php else: ?>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['timetable-create', 'timetable-list'])): ?>
                <li class="nav-item">
                    <a class="nav-link" data-toggle="collapse" href="#timetable-menu" aria-expanded="false" aria-controls="timetable-menu" data-access="false"> <span class="menu-title"><?php echo e(__('timetable')); ?></span>
                        <i class="fa fa-calendar menu-icon"></i>
                    </a>

                    <div class="collapse" id="timetable-menu">
                        <ul class="nav flex-column sub-menu">
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('timetable-create')): ?>
                                <li class="nav-item">
                                    <a href="<?php echo e(route('timetable.index')); ?>" class="nav-link" data-name="<?php echo e(Auth::user()->getRoleNames()[0]); ?>" data-access="false"><?php echo e(__('create_timetable')); ?> </a>
                                </li>
                            <?php endif; ?>

                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('timetable-list')): ?>
                                <li class="nav-item">
                                    <a href="<?php echo e(route('timetable.teacher.index')); ?>" class="nav-link" data-name="<?php echo e(Auth::user()->getRoleNames()[0]); ?>" data-access="false">
                                        <?php echo e(__('teacher_timetable')); ?>

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

        
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['holiday-create', 'holiday-list'])): ?>
            <li class="nav-item">
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('holiday-list')): ?>
                    <a href="<?php echo e(route('holiday.index')); ?>" class="nav-link" data-name="<?php echo e(Auth::user()->getRoleNames()[0]); ?>" data-access="false">
                        <span class="menu-title"><?php echo e(__('holiday_list')); ?></span> <i class="fa fa-calendar-check-o menu-icon"></i>
                    </a>
                <?php endif; ?>
            </li>
        <?php endif; ?>
        
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['lesson-list', 'lesson-create', 'lesson-edit', 'lesson-delete', 'topic-list', 'topic-create',
            'topic-edit', 'topic-delete'])): ?>
            <li class="nav-item">
                <a class="nav-link" data-toggle="collapse" href="#subject-lesson-menu" aria-expanded="false" aria-controls="subject-lesson-menu" data-access="false">
                    <span class="menu-title"><?php echo e(__('subject_lesson')); ?></span> <i class="fa fa-book menu-icon"></i>
                </a>
                <div class="collapse" id="subject-lesson-menu">
                    <ul class="nav flex-column sub-menu">
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['lesson-list', 'lesson-create', 'lesson-edit', 'lesson-delete'])): ?>
                            <li class="nav-item">
                                <a href="<?php echo e(url('lesson')); ?>" class="nav-link" data-name="<?php echo e(Auth::user()->getRoleNames()[0]); ?>" data-access="false"> <?php echo e(__('create_lesson')); ?></a>
                            </li>
                        <?php endif; ?>

                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['topic-list', 'topic-create', 'topic-edit', 'topic-delete'])): ?>
                            <li class="nav-item">
                                <a href="<?php echo e(url('lesson-topic')); ?>" class="nav-link" data-name="<?php echo e(Auth::user()->getRoleNames()[0]); ?>" data-access="false"> <?php echo e(__('create_topic')); ?></a>
                            </li>
                        <?php endif; ?>
                    </ul>
                </div>
            </li>
        <?php endif; ?>

        
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['assignment-create', 'assignment-submission'])): ?>
            <li class="nav-item">
                <a class="nav-link" data-toggle="collapse" href="#student-assignment-menu" aria-expanded="false"
                   aria-controls="student-assignment-menu" data-access="false"> <span
                        class="menu-title"><?php echo e(__('student_assignment')); ?></span> <i class="fa fa-tasks menu-icon"></i>
                </a>
                <div class="collapse" id="student-assignment-menu">
                    <ul class="nav flex-column sub-menu">
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('assignment-create')): ?>
                            <li class="nav-item">
                                <a href="<?php echo e(route('assignment.index')); ?>" class="nav-link" data-name="<?php echo e(Auth::user()->getRoleNames()[0]); ?>" data-access="false">
                                    <?php echo e(__('create_assignment')); ?>

                                </a>
                            </li>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('assignment-submission')): ?>
                            <li class="nav-item">
                                <a href="<?php echo e(route('assignment.submission')); ?>" class="nav-link" data-name="<?php echo e(Auth::user()->getRoleNames()[0]); ?>" data-access="false">
                                    <?php echo e(__('assignment_submission')); ?>

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

        
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('slider-create')): ?>
            <li class="nav-item">
                <a href="<?php echo e(route('sliders.index')); ?>" class="nav-link" data-name="<?php echo e(Auth::user()->getRoleNames()[0]); ?>" data-access="false"> <span
                        class="menu-title"><?php echo e(__('sliders')); ?></span> <i class="fa fa-list menu-icon"></i> </a>
            </li>
        <?php endif; ?>

        
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['class-teacher','attendance-list','attendance-create','attendance-edit','attendance-delete'])): ?>
            <li class="nav-item">
                <a class="nav-link" data-toggle="collapse" href="#attendance-menu" data-access="false" aria-expanded="false"
                   aria-controls="attendance-menu"> <span class="menu-title"><?php echo e(__('attendance')); ?></span> <i
                        class="fa fa-check menu-icon"></i> </a>
                <div class="collapse" id="attendance-menu">
                    <ul class="nav flex-column sub-menu">
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['class-teacher','attendance-create'])): ?>
                            <li class="nav-item">
                                <a href="<?php echo e(route('attendance.index')); ?>" class="nav-link" data-name="<?php echo e(Auth::user()->getRoleNames()[0]); ?>" data-access="false">
                                    <?php echo e(__('add_attendance')); ?>

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

                        
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['class-teacher','attendance-list'])): ?>
                            <li class="nav-item">
                                <a href="<?php echo e(route('attendance.view')); ?>" class="nav-link" data-name="<?php echo e(Auth::user()->getRoleNames()[0]); ?>" data-access="false">
                                    <?php echo e(__('view_attendance')); ?>

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

        
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('announcement-create')): ?>
            <li class="nav-item">
                <a href="<?php echo e(route('announcement.index')); ?>" class="nav-link" data-name="<?php echo e(Auth::user()->getRoleNames()[0]); ?>" data-access="false">
                    <span class="menu-title"><?php echo e(__('announcement')); ?></span>
                    <i class="fa fa-bullhorn menu-icon"></i> </a>
            </li>
        <?php endif; ?>

        
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['exam-create', 'exam-upload-marks', 'grade-create', 'exam-result'])): ?>
            <li class="nav-item">
                <a class="nav-link" data-toggle="collapse" href="#exam-menu" aria-expanded="false"
                   aria-controls="exam-menu" data-access="false">
                    <span class="menu-title"><?php echo e(__('Offline Exam')); ?></span>
                    <i class="fa fa-book menu-icon"></i>
                </a>
                <div class="collapse" id="exam-menu">
                    <ul class="nav flex-column sub-menu">
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('exam-create')): ?>
                            <li class="nav-item">
                                <a href="<?php echo e(route('exams.index')); ?>" class="nav-link" data-name="<?php echo e(Auth::user()->getRoleNames()[0]); ?>" data-access="false"> <?php echo e(__('manage_offline_exam')); ?>

                                </a>
                            </li>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('exam-upload-marks')): ?>
                            <li class="nav-item">
                                <a href="<?php echo e(route('exams.upload-marks')); ?>" class="nav-link" data-name="<?php echo e(Auth::user()->getRoleNames()[0]); ?>" data-access="false">
                                    <?php echo e(__('upload')); ?> <?php echo e(__('Exam Marks')); ?>

                                </a>
                            </li>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('exam-result')): ?>
                            <li class="nav-item">
                                <a href="<?php echo e(route('exams.get-result')); ?>" class="nav-link" data-name="<?php echo e(Auth::user()->getRoleNames()[0]); ?>" data-access="false">
                                    <?php echo e(__('offline_exam_result')); ?>

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

                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('grade-create')): ?>
                            <li class="nav-item">
                                <a href="<?php echo e(route('exam.grade.index')); ?>" class="nav-link" data-name="<?php echo e(Auth::user()->getRoleNames()[0]); ?>" data-access="false">
                                    <?php echo e(__('exam')); ?> <?php echo e(__('grade')); ?>

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

        
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['online-exam-create', 'online-exam-list', 'online-exam-edit', 'online-exam-delete'])): ?>
            <li class="nav-item">
                <a class="nav-link" data-toggle="collapse" href="#online-exam-menu" aria-expanded="false"
                   aria-controls="online-exam-menu" data-access="false">
                    <span class="menu-title"><?php echo e(__('online')); ?> <?php echo e(__('exam')); ?></span>
                    <i class="fa fa-laptop menu-icon"></i>
                </a>
                <div class="collapse" id="online-exam-menu">
                    <ul class="nav flex-column sub-menu">
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('online-exam-list')): ?>
                            <li class="nav-item">

                                <a href="<?php echo e(route('online-exam.index')); ?>" class="nav-link" data-name="<?php echo e(Auth::user()->getRoleNames()[0]); ?>" data-access="false"> <?php echo e(__('manage')); ?>

                                    <?php echo e(__('online')); ?> <?php echo e(__('exam')); ?>

                                </a>
                            </li>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('online-exam-create')): ?>
                            <li class="nav-item">
                                <a href="<?php echo e(route('online-exam-question.index')); ?>" class="nav-link" data-name="<?php echo e(Auth::user()->getRoleNames()[0]); ?>" data-access="false"> <?php echo e(__('manage')); ?>

                                    <?php echo e(__('questions')); ?>

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

        

        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['fees-list', 'fees-type-list', 'fees-classes-list', 'fees-paid'])): ?>
            <li class="nav-item">
                <a class="nav-link" data-toggle="collapse" href="#fees-menu" aria-expanded="false" aria-controls="fees-menu" data-access="false">
                    <span class="menu-title"><?php echo e(__('Fees')); ?></span>
                    <i class="fa fa-dollar menu-icon"></i>
                </a>
                <div class="collapse" id="fees-menu">
                    <ul class="nav flex-column sub-menu">
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('fees-type-list')): ?>
                            <li class="nav-item">
                                <a href="<?php echo e(route('fees-type.index')); ?>" class="nav-link" data-access="false"> <?php echo e(__('Fees Type')); ?>

                                </a>
                            </li>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('fees-list')): ?>
                            <li class="nav-item">
                                <a href="<?php echo e(route('fees.index')); ?>" class="nav-link" data-access="false"> <?php echo e(__('Manage Fees')); ?></a>
                            </li>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('fees-paid')): ?>
                            <li class="nav-item">
                                <a href="<?php echo e(route('fees.paid.index')); ?>" class="nav-link" data-access="false"> <?php echo e(__('Fees Paid')); ?>

                                </a>
                            </li>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('fees-paid')): ?>
                            <li class="nav-item">
                                <a href="<?php echo e(route('fees.transactions.log.index')); ?>" class="nav-link" data-access="false"> <?php echo e(__('Fees Transaction Logs')); ?>

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

        
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['leave-list', 'leave-create', 'leave-edit', 'leave-delete'])): ?>
            <li class="nav-item">
                <a class="nav-link" data-toggle="collapse" href="#staff-leave-menu" data-access="false" aria-expanded="false"
                   aria-controls="staff-leave-menu"> <span class="menu-title"><?php echo e(__('leave')); ?></span> <i
                        class="fa fa-plane menu-icon"></i> </a>
                <div class="collapse" id="staff-leave-menu">
                    <ul class="nav flex-column sub-menu">
                        <li class="nav-item">
                            <a href="<?php echo e(route('leave.index')); ?>" class="nav-link" data-name="<?php echo e(Auth::user()->getRoleNames()[0]); ?>" data-access="false">
                                <?php echo e(__('apply_leave')); ?>

                            </a>
                        </li>

                        <li class="nav-item">
                            <a href="<?php echo e(route('leave.report')); ?>" class="nav-link" data-name="<?php echo e(Auth::user()->getRoleNames()[0]); ?>" data-access="false">
                                <?php echo e(__('leave_report')); ?>

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

        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('approve-leave')): ?>
            <li class="nav-item">
                <a href="<?php echo e(route('leave.request')); ?>" class="nav-link" data-name="<?php echo e(Auth::user()->getRoleNames()[0]); ?>" data-access="false"> <span class="menu-title"><?php echo e(__('staff')); ?> <?php echo e(__('leave')); ?></span> <i class="fa fa-plane menu-icon"></i> </a>
            </li>
        <?php endif; ?>

        
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['schools-list', 'schools-create', 'schools-edit', 'schools-delete'])): ?>
            <li class="nav-item">
                <a href="<?php echo e(route('schools.index')); ?>" class="nav-link"> <span class="menu-title"><?php echo e(__('schools')); ?></span> <i class="fa fa-university menu-icon"></i> </a>
            </li>
        <?php endif; ?>


        
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['package-list', 'package-create', 'package-edit', 'package-delete'])): ?>
            <li class="nav-item">
                <a href="<?php echo e(route('package.index')); ?>" class="nav-link"> <span class="menu-title"><?php echo e(__('package')); ?></span> <i class="fa fa-codepen menu-icon"></i> </a>
            </li>
        <?php endif; ?>
        
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['addons-list', 'addons-create', 'addons-edit', 'addons-delete'])): ?>
            <li class="nav-item">
                <a href="<?php echo e(route('addons.index')); ?>" class="nav-link"> <span class="menu-title"><?php echo e(__('addons')); ?></span> <i class="fa fa-puzzle-piece menu-icon"></i> </a>
            </li>
        <?php endif; ?>

        
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['addons-list', 'addons-create', 'addons-edit', 'addons-delete','package-list', 'package-create', 'package-edit', 'package-delete'])): ?>
            <li class="nav-item">
                <a href="<?php echo e(url('features')); ?>" class="nav-link"> <span class="menu-title"><?php echo e(__('features')); ?></span> <i class="fa fa-list-ul menu-icon"></i> </a>
            </li>
        <?php endif; ?>

        
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('subscription-view')): ?>
            <li class="nav-item">
                <a href="<?php echo e(url('subscriptions/report')); ?>" class="nav-link"> <span class="menu-title"><?php echo e(__('subscription')); ?></span> <i class="fa fa-puzzle-piece menu-icon"></i> </a>
            </li>

            <li class="nav-item">
                <a href="<?php echo e(url('subscriptions/transactions')); ?>" class="nav-link"> <span class="menu-title"><?php echo e(__('subscription_transaction')); ?></span> <i class="fa fa-money menu-icon"></i> </a>
            </li>
        <?php endif; ?>


        
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['expense-category-create', 'expense-category-list','expense-category-edit', 'expense-category-delete','expense-create', 'expense-list','expense-edit', 'expense-delete'])): ?>
            <li class="nav-item">
                <a class="nav-link" data-toggle="collapse" href="#expense-menu" aria-expanded="false" aria-controls="expense-menu" data-access="false"> <span class="menu-title"><?php echo e(__('expense')); ?></span>
                    <i class="fa fa-money menu-icon"></i> </a>
                <div class="collapse" id="expense-menu">
                    <ul class="nav flex-column sub-menu">
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['expense-category-create', 'expense-category-list','expense-category-edit', 'expense-category-delete'])): ?>
                            <li class="nav-item">
                                <a href="<?php echo e(route('expense-category.index')); ?>" class="nav-link" data-name="<?php echo e(Auth::user()->getRoleNames()[0]); ?>" data-access="false"><?php echo e(__('manage_category')); ?> </a>
                            </li>
                        <?php endif; ?>

                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['expense-create', 'expense-list','expense-edit', 'expense-delete'])): ?>
                            <li class="nav-item">
                                <a href="<?php echo e(route('expense.index')); ?>" class="nav-link" data-name="<?php echo e(Auth::user()->getRoleNames()[0]); ?>" data-access="false">
                                    <?php echo e(__('manage_expense')); ?>

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

        
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['payroll-create', 'payroll-list', 'payroll-edit', 'payroll-delete'])): ?>
            <li class="nav-item">
                <a href="<?php echo e(route('payroll.index')); ?>" class="nav-link" data-name="<?php echo e(Auth::user()->getRoleNames()[0]); ?>" data-access="false"> <span
                        class="menu-title"><?php echo e(__('payroll')); ?></span> <i class="fa fa-credit-card-alt menu-icon"></i>
                </a>
            </li>
        <?php endif; ?>

        
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('session-year-create')): ?>
            <li class="nav-item">
                <a href="<?php echo e(route('session-year.index')); ?>" class="nav-link"> <span
                        class="menu-title"><?php echo e(__('Session Years')); ?></span> <i class="fa fa-calendar-o menu-icon"></i>
                </a>
            </li>
        <?php endif; ?>

        <?php if(Auth::user()->school_id): ?>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['role-list', 'role-create', 'role-edit', 'role-delete', 'staff-list', 'staff-create', 'staff-edit','staff-delete'])): ?>
                <li class="nav-item">
                    <a class="nav-link" data-toggle="collapse" href="#staff-management" aria-expanded="false" aria-controls="staff-management-menu" data-access="false">
                        <span class="menu-title"><?php echo e(__('Staff Management')); ?></span>
                        <i class="fa fa-user-secret menu-icon"></i>
                    </a>
                    <div class="collapse" id="staff-management">
                        <ul class="nav flex-column sub-menu">
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['role-list', 'role-create', 'role-edit', 'role-delete'])): ?>
                                <li class="nav-item">
                                    <a href="<?php echo e(route('roles.index')); ?>" class="nav-link" data-name="<?php echo e(Auth::user()->getRoleNames()[0]); ?>" data-access="false"><?php echo e(__('Role & Permission')); ?></a>
                                </li>
                            <?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['staff-list', 'staff-create', 'staff-edit', 'staff-delete'])): ?>
                                <li class="nav-item">
                                    <a href="<?php echo e(route('staff.index')); ?>" class="nav-link" data-name="<?php echo e(Auth::user()->getRoleNames()[0]); ?>" data-access="false"><?php echo e(__('staff')); ?></a>
                                </li>
                            <?php endif; ?>
                        </ul>
                    </div>
                </li>
            <?php endif; ?>
        <?php else: ?>
            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['role-list', 'role-create', 'role-edit', 'role-delete', 'staff-list', 'staff-create', 'staff-edit','staff-delete'])): ?>
                <li class="nav-item">
                    <a class="nav-link" data-toggle="collapse" href="#staff-management" aria-expanded="false" aria-controls="staff-management-menu">
                        <span class="menu-title"><?php echo e(__('Staff Management')); ?></span>
                        <i class="fa fa-user-secret menu-icon"></i>
                    </a>
                    <div class="collapse" id="staff-management">
                        <ul class="nav flex-column sub-menu">
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['role-list', 'role-create', 'role-edit', 'role-delete'])): ?>
                                <li class="nav-item">
                                    <a href="<?php echo e(route('roles.index')); ?>" class="nav-link"><?php echo e(__('Role & Permission')); ?></a>
                                </li>
                            <?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['staff-list', 'staff-create', 'staff-edit', 'staff-delete'])): ?>
                                <li class="nav-item">
                                    <a href="<?php echo e(route('staff.index')); ?>" class="nav-link"><?php echo e(__('Staff')); ?></a>
                                </li>
                            <?php endif; ?>
                        </ul>
                    </div>
                </li>
            <?php endif; ?>
        <?php endif; ?>


        
        <?php if(\Spatie\Permission\PermissionServiceProvider::bladeMethodWrapper('hasRole', 'School Admin')): ?>
        <li class="nav-item">
            <a class="nav-link" data-toggle="collapse" href="#subscription" aria-expanded="false"
               aria-controls="subscription-menu">
                <span class="menu-title"><?php echo e(__('subscription')); ?></span>
                <i class="fa fa-puzzle-piece menu-icon"></i>
            </a>
            <div class="collapse" id="subscription">
                <ul class="nav flex-column sub-menu">
                    <li class="nav-item">
                        <a class="nav-link" href="<?php echo e(route('subscriptions.history')); ?>"><?php echo e(__('subscription')); ?></a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="<?php echo e(route('subscriptions.index')); ?>"><?php echo e(__('plans')); ?></a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="<?php echo e(route('addons.plan')); ?>"><?php echo e(__('addons')); ?></a>
                    </li>
                </ul>
            </div>
        </li>

        
        <li class="nav-item">
            <a href="<?php echo e(url('staff/support')); ?>" class="nav-link">
                <span class="menu-title"><?php echo e(__('support')); ?></span> <i class="fa fa-question menu-icon"></i>
            </a>
        </li>

        <li class="nav-item">
            <a href="<?php echo e(url('features')); ?>" class="nav-link"> <span class="menu-title"><?php echo e(__('features')); ?></span> <i class="fa fa-list-ul menu-icon"></i> </a>
        </li>

        <?php endif; ?>

        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['faqs-create','faqs-list','faqs-edit','faqs-delete'])): ?>
            <li class="nav-item">
                <a href="<?php echo e(route('faqs.index')); ?>" class="nav-link"> <span class="menu-title"><?php echo e(__('faqs')); ?></span> <i class="fa fa-question menu-icon"></i>
                </a>
            </li>
        <?php endif; ?>

        
        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['app-settings', 'language-list', 'school-setting-manage', 'system-setting-manage',
            'fcm-setting-manage', 'email-setting-create', 'privacy-policy', 'contact-us', 'about-us','guidance-create','guidance-list','guidance-edit','guidance-delete'])): ?>
            <li class="nav-item">
                <a class="nav-link" data-toggle="collapse" href="#settings-menu" aria-expanded="false" aria-controls="settings-menu">
                    <span class="menu-title"><?php echo e(__('system_settings')); ?></span> <i class="fa fa-cog menu-icon"></i> </a>
                <div class="collapse" id="settings-menu">
                    <ul class="nav flex-column sub-menu">
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('app-settings')): ?>
                            <li class="nav-item">
                                <a class="nav-link" href="<?php echo e(route('system-settings.app')); ?>"><?php echo e(__('app_settings')); ?></a>
                            </li>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('school-setting-manage')): ?>
                            <li class="nav-item">
                                <a class="nav-link" href="<?php echo e(route('school-settings.index')); ?>"><?php echo e(__('general_settings')); ?></a>
                            </li>

                            <li class="nav-item">
                                <a class="nav-link" href="<?php echo e(route('leave-master.index')); ?>"><?php echo e(__('leave')); ?> <?php echo e(__('settings')); ?></a>
                            </li>
                        <?php endif; ?>

                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('system-setting-manage')): ?>
                            <li class="nav-item">
                                <a class="nav-link" href="<?php echo e(route('system-settings.index')); ?>"><?php echo e(__('general_settings')); ?></a>
                            </li>
                        <?php endif; ?>

                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('subscription-settings')): ?>
                            <li class="nav-item">
                                <a class="nav-link" href="<?php echo e(route('system-settings.subscription-settings')); ?>"><?php echo e(__('subscription_settings')); ?></a>
                            </li>
                        <?php endif; ?>

                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('front-site-setting')): ?>
                            <li class="nav-item">
                                <a class="nav-link" href="<?php echo e(route('system-settings.front-site-settings')); ?>"><?php echo e(__('front_site_settings')); ?></a>
                            </li>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->any(['guidance-create','guidance-list','guidance-edit','guidance-delete'])): ?>
                            <li class="nav-item">
                                <a class="nav-link" href="<?php echo e(route('guidances.index')); ?>"><?php echo e(__('guidance')); ?></a>
                            </li>
                        <?php endif; ?>

                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('language-list')): ?>
                            <li class="nav-item">
                                <a class="nav-link" href="<?php echo e(url('language')); ?>">
                                    <?php echo e(__('language_settings')); ?></a>
                            </li>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('fcm-setting-manage')): ?>
                            <li class="nav-item">
                                <a class="nav-link" href="<?php echo e(route('system-settings.fcm')); ?>"> <?php echo e(__('fcm_key')); ?></a>
                            </li>
                        <?php endif; ?>

                        

                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('school-setting-manage')): ?>
                            <li class="nav-item">
                                <a href="<?php echo e(route('school-settings.online-exam.index')); ?>" class="nav-link" data-name="<?php echo e(Auth::user()->getRoleNames()[0]); ?>" data-access="false">
                                    <?php echo e(__('online_exam_terms_condition')); ?>

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

                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('email-setting-create')): ?>
                            <li class="nav-item">
                                <a class="nav-link" href="<?php echo e(route('system-settings.email.index')); ?>"><?php echo e(__('email_configuration')); ?></a>
                            </li>
                        <?php endif; ?>

                        
                        <?php if(\Spatie\Permission\PermissionServiceProvider::bladeMethodWrapper('hasAnyRole', ['Super Admin','School Admin'])): ?>
                        <li class="nav-item">
                            <a class="nav-link" href="<?php echo e(route('system-settings.payment.index')); ?>"><?php echo e(__('Payment Settings')); ?></a>
                        </li>
                        <?php endif; ?>

                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('privacy-policy')): ?>
                            <li class="nav-item">
                                <a class="nav-link" href="<?php echo e(route('system-settings.privacy-policy')); ?>"><?php echo e(__('privacy_policy')); ?></a>
                            </li>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('contact-us')): ?>
                            <li class="nav-item">
                                <a class="nav-link" href="<?php echo e(route('system-settings.contact-us')); ?>"> <?php echo e(__('contact_us')); ?></a>
                            </li>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('about-us')): ?>
                            <li class="nav-item">
                                <a class="nav-link" href="<?php echo e(route('system-settings.about-us')); ?>"> <?php echo e(__('about_us')); ?>

                                </a>
                            </li>
                        <?php endif; ?>
                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('terms-condition')): ?>
                            <li class="nav-item">
                                <a class="nav-link" href="<?php echo e(route('system-settings.terms-condition')); ?>"><?php echo e(__('terms_condition')); ?></a>
                            </li>
                        <?php endif; ?>

                        <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('school-terms-condition')): ?>
                            <li class="nav-item">
                                <a class="nav-link" href="<?php echo e(route('system-settings.school-terms-condition')); ?>"><?php echo e(__('school_terms_condition')); ?></a>
                            </li>
                        <?php endif; ?>
                    </ul>
                </div>
            </li>
        <?php endif; ?>

        <?php if(Auth::user()->hasRole('Super Admin')): ?>
            <!--<li class="nav-item">-->
            <!--    <a class="nav-link" href="<?php echo e(route('system-update.index')); ?>">-->
            <!--        <span class="menu-title"><?php echo e(__('system_update')); ?></span>-->
            <!--        <i class="fa fa-cloud-download menu-icon"></i>-->
            <!--    </a>-->
            <!--</li>-->
        <?php endif; ?>

    </ul>
</nav>
<?php /**PATH /home/mimeld/mxul.mimeld.com/resources/views/layouts/sidebar.blade.php ENDPATH**/ ?>