<script>
   function myFunction() {
     var input, filter, ul, li, a, i;
     input = document.getElementById("mySearch");
     filter = input.value.toUpperCase();
     ul = document.getElementById("myMenu");
     li = ul.getElementsByTagName("li");
     for (i = 0; i < li.length; i++) {
       a = li[i].getElementsByTagName("a")[0];
       if (a.innerHTML.toUpperCase().indexOf(filter) > -1) {
         li[i].style.display = "";
       } else {
         li[i].style.display = "none";
       }
     }
   }
</script>
<nav class="mt-2">
   <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false" id="myMenu">
      <!-- Add icons to the links using the .nav-icon class
         with font-awesome or any other icon font library -->
      <li class="nav-item menu-open">
         <a href="<?php echo admin_url() ?>admin" class="nav-link">
            <i class="nav-icon fas fa-tachometer-alt"></i>
            <p>
               Dashboard
            </p>
         </a>
      </li>
      <?php if(check_user_permission('ebook')): ?>
         <li class="nav-item has-treeview <?php if($this->uri->segment(2) == "ibast"){ echo "menu-open";}?>">
           <a href="#" class="nav-link <?php if($this->uri->segment(2) == "ibast"){ echo "active";}?>">
              <i class="nav-icon fas fa-book"></i>
              <p>
                 I-Bast
                 <i class="fas fa-angle-left right"></i>
              </p>
           </a>
           <ul class="nav nav-treeview">
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>ibast/view_all_page" class="nav-link <?php if($this->uri->segment(3)=="view_all_page"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>View All Page</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>ibast/view_all_details_page" class="nav-link <?php if($this->uri->segment(3)=="view_all_details_page"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>View All Details Page</p>
                 </a>
              </li>
           </ul>
        </li>
        <li class="nav-item has-treeview <?php if($this->uri->segment(2) == "master_class"){ echo "menu-open";}?>">
           <a href="#" class="nav-link <?php if($this->uri->segment(2) == "master_class"){ echo "active";}?>">
              <i class="nav-icon fas fa-book"></i>
              <p>
                 Master Class
                 <i class="fas fa-angle-left right"></i>
              </p>
           </a>
           <ul class="nav nav-treeview">
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>master_class/view_all_page" class="nav-link <?php if($this->uri->segment(3)=="view_all_page"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>View All Page</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>master_class/view_all_slider" class="nav-link <?php if($this->uri->segment(3)=="view_all_slider"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>View All Slider</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>master_class/view_all_course" class="nav-link <?php if($this->uri->segment(3)=="view_all_course"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>View All Course</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>master_class/view_all_programmes" class="nav-link <?php if($this->uri->segment(3)=="view_all_programmes"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>View All Programmes</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>master_class/view_all_reviews" class="nav-link <?php if($this->uri->segment(3)=="view_all_reviews"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>View All Reviews</p>
                 </a>
              </li>
           </ul>
        </li>
        <li class="nav-item has-treeview <?php if($this->uri->segment(2) == "ebook"){ echo "menu-open";}?>">
           <a href="#" class="nav-link <?php if($this->uri->segment(2) == "ebook"){ echo "active";}?>">
              <i class="nav-icon fas fa-book"></i>
              <p>
                 E-Book
                 <i class="fas fa-angle-left right"></i>
              </p>
           </a>
           <ul class="nav nav-treeview">
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>ebook/add_new_ebook" class="nav-link <?php if($this->uri->segment(3)=="add_new_ebook"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Add New E-book</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>ebook/view_all_ebook" class="nav-link <?php if($this->uri->segment(3)=="view_all_ebook"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>View All E-book</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>ebook/page_pass_details" class="nav-link <?php if($this->uri->segment(3)=="page_pass_details"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Page Pass Details</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>ebook/thank_you_page" class="nav-link <?php if($this->uri->segment(3)=="thank_you_page"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Thank You Page</p>
                 </a>
              </li>
           </ul>
        </li>
      <?php endif; ?>
      <?php if(check_user_permission('ebook')): ?>
        <li class="nav-item has-treeview <?php if($this->uri->segment(2) == "event"){ echo "menu-open";}?>">
           <a href="#" class="nav-link <?php if($this->uri->segment(2) == "event"){ echo "active";}?>">
              <i class="nav-icon fas fa-calendar"></i>
              <p>
                 Event
                 <i class="fas fa-angle-left right"></i>
              </p>
           </a>
           <ul class="nav nav-treeview">
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>event/add_new_event" class="nav-link <?php if($this->uri->segment(3)=="add_new_event"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Add New Event</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>event/view_all_event" class="nav-link <?php if($this->uri->segment(3)=="view_all_event"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>View All Event</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>event/all_event_booking" class="nav-link <?php if($this->uri->segment(3)=="all_event_booking"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>View All Event Booking</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>event/section_1" class="nav-link <?php if($this->uri->segment(3)=="section_1"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Section 1</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>event/section_2" class="nav-link <?php if($this->uri->segment(3)=="section_2"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Section 2</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>event/section_3" class="nav-link <?php if($this->uri->segment(3)=="section_3"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Section 3</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>event/section_4" class="nav-link <?php if($this->uri->segment(3)=="section_4"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Section 4</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>event/section_5" class="nav-link <?php if($this->uri->segment(3)=="section_5"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Section 5</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>event/section_6" class="nav-link <?php if($this->uri->segment(3)=="section_6"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Section 6</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>event/section_8" class="nav-link <?php if($this->uri->segment(3)=="section_8"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Section 8</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>event/section_13" class="nav-link <?php if($this->uri->segment(3)=="section_13"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Section 13</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>event/section_14" class="nav-link <?php if($this->uri->segment(3)=="section_14"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Section 14</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>event/section_15" class="nav-link <?php if($this->uri->segment(3)=="section_15"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Section 15</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>event/inquery" class="nav-link <?php if($this->uri->segment(3)=="inquery"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Inquiry</p>
                 </a>
              </li>
           </ul>
        </li>
      <?php endif;?>
      <?php if(check_user_permission('course_category')): ?>
        <li class="nav-item has-treeview <?php if($this->uri->segment(2) == "category"){ echo "menu-open";}?>">
           <a href="#" class="nav-link <?php if($this->uri->segment(2) == "category"){ echo "active";}?>">
              <i class="nav-icon fas fa-file-code-o"></i>
              <p>
                 Course Category 
                 <i class="fas fa-angle-left right"></i>
              </p>
           </a>
           <ul class="nav nav-treeview">
              <li class="nav-item ">
                 <a href="<?php echo base_url() ?>admin/category/add_new_category" class="nav-link <?php if($this->uri->segment(3)=="add_new_category"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Add New Category</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo base_url() ?>admin/category/view_all_category" class="nav-link <?php if($this->uri->segment(3)=="view_all_category"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>View All Category</p>
                 </a>
              </li>
           </ul>
        </li>
      <?php endif;?>
      <?php if(check_user_permission('course')): ?>
        <li class="nav-item has-treeview <?php if($this->uri->segment(2) == "course"){ echo "menu-open";}?>">
           <a href="#" class="nav-link <?php if($this->uri->segment(2) == "course"){ echo "active";}?>">
              <i class="nav-icon fas fa-address-book"></i>
              <p>
                 Course
                 <i class="fas fa-angle-left right"></i>
              </p>
           </a>
           <ul class="nav nav-treeview">
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>course/add_new_course" class="nav-link <?php if($this->uri->segment(3)=="add_new_course"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Add New Course</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>course/view_all_course" class="nav-link <?php if($this->uri->segment(3)=="view_all_course"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>View All Course</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>course/view_bundle_course" class="nav-link <?php if($this->uri->segment(3)=="view_bundle_course"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>View Bundle Course</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>course/all_resource_category" class="nav-link <?php if($this->uri->segment(3)=="all_resource_category"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>All Resource Category</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>course/all_course_resource" class="nav-link <?php if($this->uri->segment(3)=="all_course_resource"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>All Course Resource</p>
                 </a>
              </li>
              <!-- <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>course/course_lession" class="nav-link <?php if($this->uri->segment(3)=="course_lession"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Course Lession</p>
                 </a>
              </li> 
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>course/course_faq" class="nav-link <?php if($this->uri->segment(3)=="course_faq"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Course FAQ</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>course/all_course_inquery" class="nav-link <?php if($this->uri->segment(3)=="all_course_inquery"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>All Course Inquery</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>course/all_download_syllabus" class="nav-link <?php if($this->uri->segment(3)=="all_download_syllabus"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>All Download Syllabus</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>course/live_video_class_application" class="nav-link <?php if($this->uri->segment(3)=="live_video_class_application"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Live Video Class Appli.</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>course/demo_class_application" class="nav-link <?php if($this->uri->segment(3)=="demo_class_application"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Demo Class Appli.</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>course/online_reg_student" class="nav-link <?php if($this->uri->segment(3)=="online_reg_student"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Online Reg. Student</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>course/spin_setting" class="nav-link <?php if($this->uri->segment(3)=="spin_setting"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Spin Setting</p>
                 </a>
              </li> -->
           </ul>
        </li>
      <?php endif;?>
      <?php if(check_user_permission('branch')): ?>
        <li class="nav-item has-treeview <?php if($this->uri->segment(2) == "branch"){ echo "menu-open";}?>">
           <a href="#" class="nav-link <?php if($this->uri->segment(2) == "branch"){ echo "active";}?>">
              <i class="nav-icon fas fa-users"></i>
              <p>
                 Branch
                 <i class="fas fa-angle-left right"></i>
              </p>
           </a>
           <ul class="nav nav-treeview">
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>branch/add_new_branch" class="nav-link <?php if($this->uri->segment(3)=="add_new_branch"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Add New Branch</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>branch/view_all_branch" class="nav-link <?php if($this->uri->segment(3)=="view_all_branch"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>View All Branch</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>branch/batches_shedule" class="nav-link <?php if($this->uri->segment(3)=="batches_shedule"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Batches Shedule</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>branch/view_branch_shedule" class="nav-link <?php if($this->uri->segment(3)=="view_branch_shedule"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>View Batches Shedule</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>branch/students_testimonial" class="nav-link <?php if($this->uri->segment(3)=="students_testimonial"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Students Testimonial</p>
                 </a>
              </li>
           </ul>
        </li>
      <?php endif;?>
      <?php if(check_user_permission('upsell')): ?>
        <li class="nav-item has-treeview <?php if($this->uri->segment(2) == "upsell"){ echo "menu-open";}?>">
           <a href="#" class="nav-link <?php if($this->uri->segment(2) == "upsell"){ echo "active";}?>">
              <i class="nav-icon fas fa-plus"></i>
              <p>
                 Upsell
                 <i class="fas fa-angle-left right"></i>
              </p>
           </a>
           <ul class="nav nav-treeview">
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>upsell/all_upsell_page" class="nav-link <?php if($this->uri->segment(3)=="all_upsell_page"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>All Upsell Page</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>upsell/upsell_page_pass_details" class="nav-link <?php if($this->uri->segment(3)=="upsell_page_pass_details"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Upsell Page Pass</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>upsell/upsell_thank_you_page" class="nav-link <?php if($this->uri->segment(3)=="upsell_thank_you_page"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Upsell Thank You Page</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>upsell/upsell_payment_data" class="nav-link <?php if($this->uri->segment(3)=="upsell_payment_data"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Upsell Pay Data</p>
                 </a>
              </li>
           </ul>
        </li>
      <?php endif;?>
      <?php if(check_user_permission('role_permission')): ?>
        <li class="nav-item ">
           <a href="<?php echo base_url() ?>admin/role_permission" class="nav-link <?php if($this->uri->segment(2)=="role_permission"){echo 'active';}?>">
              <i class="nav-icon fas fa-key"></i>
              <p>
                 Role Permission 
              </p>
           </a>
        </li>
      <?php endif;?>
      <?php if(check_user_permission('lead_management')): ?>
        <li class="nav-item <?php if($this->uri->segment(3) == "lead_management"){ echo "menu-open";}?>">
           <a href="<?php echo admin_url() ?>admin/lead_management" class="nav-link">
              <i class="nav-icon fas fa-tachometer-alt"></i>
              <p>
                 Lead Management
              </p>
           </a>
        </li>
      <?php endif;?>
      <?php if(check_user_permission('contact_request')): ?>
        <li class="nav-item <?php if($this->uri->segment(3) == "contact_request"){ echo "menu-open";}?>">
           <a href="<?php echo admin_url() ?>admin/contact_request" class="nav-link">
              <i class="nav-icon fas fa-tachometer-alt"></i>
              <p>
                 Contact Request
              </p>
           </a>
        </li>
      <?php endif;?>
      <?php if(check_user_permission('trail_class_application')): ?>
        <li class="nav-item <?php if($this->uri->segment(3) == "trail_class_application"){ echo "menu-open";}?>">
           <a href="<?php echo admin_url() ?>admin/trail_class_application" class="nav-link">
              <i class="nav-icon fas fa-tachometer-alt"></i>
              <p>
                 Trail Class Application
              </p>
           </a>
        </li>
      <?php endif;?>
      <?php if(check_user_permission('widget')): ?>
        <li class="nav-item has-treeview <?php if($this->uri->segment(2) == "widget"){ echo "menu-open";}?>">
           <a href="#" class="nav-link <?php if($this->uri->segment(2) == "widget"){ echo "active";}?>">
              <i class="nav-icon fas fa-plus"></i>
              <p>
                 Widget
                 <i class="fas fa-angle-left right"></i>
              </p>
           </a>
           <ul class="nav nav-treeview">
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>widget/add_new_widget" class="nav-link <?php if($this->uri->segment(3)=="add_new_widget"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Add New Widget</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>widget/view_all_widget" class="nav-link <?php if($this->uri->segment(3)=="view_all_widget"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>View All Widget</p>
                 </a>
              </li>
           </ul>
        </li>
      <?php endif;?>
      <?php if(check_user_permission('student_management')): ?>
        <li class="nav-item has-treeview <?php if($this->uri->segment(2) == "student_management"){ echo "menu-open";}?>">
           <a href="#" class="nav-link <?php if($this->uri->segment(2) == "student_management"){ echo "active";}?>">
              <i class="nav-icon fas fa-users"></i>
              <p>
                 Student Management
                 <i class="fas fa-angle-left right"></i>
              </p>
           </a>
           <ul class="nav nav-treeview">
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>student_management/add_new_student" class="nav-link <?php if($this->uri->segment(3)=="add_new_student"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Add New Student</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>student_management/view_all_student" class="nav-link <?php if($this->uri->segment(3)=="view_all_student"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>View All Student</p>
                 </a>
              </li>
           </ul>
        </li>
         <li class="nav-item has-treeview <?php if($this->uri->segment(2) == "buyer_management"){ echo "menu-open";}?>">
           <a href="#" class="nav-link <?php if($this->uri->segment(2) == "buyer_management"){ echo "active";}?>">
              <i class="nav-icon fas fa-users"></i>
              <p>
                 Buyer Management
                 <i class="fas fa-angle-left right"></i>
              </p>
           </a>
           <ul class="nav nav-treeview">
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>buyer_management/add_new_buyer" class="nav-link <?php if($this->uri->segment(3)=="add_new_buyer"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Add New Buyer</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>buyer_management/view_all_buyer" class="nav-link <?php if($this->uri->segment(3)=="view_all_buyer"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>View All Buyer</p>
                 </a>
              </li>
           </ul>
        </li>
      <?php endif;?>
      <?php if(check_user_permission('dba_management')): ?>
        <li class="nav-item has-treeview <?php if($this->uri->segment(2) == "dba_management"){ echo "menu-open";}?>">
           <a href="#" class="nav-link <?php if($this->uri->segment(2) == "dba_management"){ echo "active";}?>">
              <i class="nav-icon fas fa-users"></i>
              <p>
                 DBA Management
                 <i class="fas fa-angle-left right"></i>
              </p>
           </a>
           <ul class="nav nav-treeview">
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>dba_management/add_new_dba" class="nav-link <?php if($this->uri->segment(3)=="add_new_dba"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Add New DBA</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>dba_management/view_all_dba" class="nav-link <?php if($this->uri->segment(3)=="view_all_dba"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>View All DBA</p>
                 </a>
              </li>
           </ul>
        </li>
        
      <?php endif;?>
      <?php if(check_user_permission('emp_management')): ?>
        <li class="nav-item has-treeview <?php if($this->uri->segment(2) == "employee_management"){ echo "menu-open";}?>">
           <a href="#" class="nav-link <?php if($this->uri->segment(2) == "employee_management"){ echo "active";}?>">
              <i class="nav-icon fas fa-users"></i>
              <p>
                 Employee Management
                 <i class="fas fa-angle-left right"></i>
              </p>
           </a>
           <ul class="nav nav-treeview">
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>employee_management/add_new_employee" class="nav-link <?php if($this->uri->segment(3)=="add_new_employee"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Add New Employee</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>employee_management/view_all_employee" class="nav-link <?php if($this->uri->segment(3)=="view_all_employee"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>View All Employee</p>
                 </a>
              </li>
           </ul>
        </li>
      <?php endif;?>
      <?php if(user()->role == "Employee"):?>
         <li class="nav-item has-treeview <?php if($this->uri->segment(2) == "report"){ echo "menu-open";}?>">
           <a href="#" class="nav-link <?php if($this->uri->segment(2) == "report"){ echo "active";}?>">
              <i class="nav-icon fas fa-users"></i>
              <p>
                 Report
                 <i class="fas fa-angle-left right"></i>
              </p>
           </a>
           <ul class="nav nav-treeview">
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>report/view_all_working_hours" class="nav-link <?php if($this->uri->segment(3)=="view_all_working_hours"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Working Hours</p>
                 </a>
              </li>
             
           </ul>
         </li>
      <?php endif; ?>
      <?php if(check_user_permission('blog')): ?>
        <li class="nav-item has-treeview <?php if($this->uri->segment(2) == "blog"){ echo "menu-open";}?>">
           <a href="#" class="nav-link <?php if($this->uri->segment(2) == "blog"){ echo "active";}?>">
              <i class="nav-icon fas fa-blog"></i>
              <p>
                 Blog
                 <i class="fas fa-angle-left right"></i>
              </p>
           </a>
           <ul class="nav nav-treeview">
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>blog/blog_category" class="nav-link <?php if($this->uri->segment(3)=="blog_category"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Blog Category</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>blog/add_new_blog" class="nav-link <?php if($this->uri->segment(3)=="add_new_blog"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Add New Blog</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>blog/view_all_blog" class="nav-link <?php if($this->uri->segment(3)=="view_all_blog"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>View All Blog</p>
                 </a>
              </li>
           </ul>
        </li>
      <?php endif;?>
      <?php if(check_user_permission('lab_page')): ?>
        <li class="nav-item has-treeview <?php if($this->uri->segment(2) == "lab_page"){ echo "menu-open";}?>">
           <a href="#" class="nav-link <?php if($this->uri->segment(2) == "lab_page"){ echo "active";}?>">
              <i class="nav-icon fas fa-file"></i>
              <p>
                 Lab Page
                 <i class="fas fa-angle-left right"></i>
              </p>
           </a>
           <ul class="nav nav-treeview">
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>lab_page/section_1" class="nav-link <?php if($this->uri->segment(3)=="section_1"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Section 1</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>lab_page/section_2" class="nav-link <?php if($this->uri->segment(3)=="section_2"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Section 2</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>lab_page/section_3" class="nav-link <?php if($this->uri->segment(3)=="section_3"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Section 3</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>lab_page/section_4" class="nav-link <?php if($this->uri->segment(3)=="section_4"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Section 4</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>lab_page/section_5" class="nav-link <?php if($this->uri->segment(3)=="section_5"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Section 5</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>lab_page/section_6" class="nav-link <?php if($this->uri->segment(3)=="section_6"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Section 6</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>lab_page/section_7" class="nav-link <?php if($this->uri->segment(3)=="section_7"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Section 7</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>lab_page/section_8" class="nav-link <?php if($this->uri->segment(3)=="section_8"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Section 8</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>lab_page/inquery" class="nav-link <?php if($this->uri->segment(3)=="inquery"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Inquery</p>
                 </a>
              </li>
           </ul>
        </li>
      <?php endif;?>
      <?php if(check_user_permission('video_page')): ?>
        <li class="nav-item has-treeview <?php if($this->uri->segment(2) == "video_page"){ echo "menu-open";}?>">
           <a href="#" class="nav-link <?php if($this->uri->segment(2) == "video_page"){ echo "active";}?>">
              <i class="nav-icon fas fa-file"></i>
              <p>
                 Video Page
                 <i class="fas fa-angle-left right"></i>
              </p>
           </a>
           <ul class="nav nav-treeview">
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>video_page/intro_video" class="nav-link <?php if($this->uri->segment(3)=="intro_video"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Intro Video</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>video_page/qns_category" class="nav-link <?php if($this->uri->segment(3)=="qns_category"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Qns. Category</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>video_page/video" class="nav-link <?php if($this->uri->segment(3)=="video"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Video</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>video_page/registration" class="nav-link <?php if($this->uri->segment(3)=="registration"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Registration</p>
                 </a>
              </li>
           </ul>
        </li>
        <li class="nav-item has-treeview <?php if($this->uri->segment(2) == "live_class_page"){ echo "menu-open";}?>">
           <a href="#" class="nav-link <?php if($this->uri->segment(2) == "live_class_page"){ echo "active";}?>">
              <i class="nav-icon fas fa-file"></i>
              <p>
                 Free Trail Class Page
                 <i class="fas fa-angle-left right"></i>
              </p>
           </a>
           <ul class="nav nav-treeview">
              <!-- <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>live_class_page/section_main" class="nav-link <?php if($this->uri->segment(3)=="section_main"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Section Main</p>
                 </a>
              </li> -->
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>live_class_page/all_pages" class="nav-link <?php if($this->uri->segment(3)=="all_pages"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>All Pages</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>live_class_page/section_1" class="nav-link <?php if($this->uri->segment(3)=="section_1"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Section 1</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>live_class_page/section_2" class="nav-link <?php if($this->uri->segment(3)=="section_2"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Section 2</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>live_class_page/section_3" class="nav-link <?php if($this->uri->segment(3)=="section_3"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Section 3</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>live_class_page/section_4" class="nav-link <?php if($this->uri->segment(3)=="section_4"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Section 4</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>live_class_page/section_5" class="nav-link <?php if($this->uri->segment(3)=="section_5"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Section 5</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>live_class_page/section_6" class="nav-link <?php if($this->uri->segment(3)=="section_6"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Section 6</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>live_class_page/section_8" class="nav-link <?php if($this->uri->segment(3)=="section_8"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Section 8</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>live_class_page/section_13" class="nav-link <?php if($this->uri->segment(3)=="section_13"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Section 13</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>live_class_page/section_14" class="nav-link <?php if($this->uri->segment(3)=="section_14"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Section 14</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>live_class_page/section_15" class="nav-link <?php if($this->uri->segment(3)=="section_15"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Section 15</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>live_class_page/inquery" class="nav-link <?php if($this->uri->segment(3)=="inquery"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Inquiry</p>
                 </a>
              </li>
           </ul>
        </li>
      <?php endif;?>
      <?php if(check_user_permission('contact')): ?>
        <li class="nav-item has-treeview <?php if($this->uri->segment(2) == "contact"){ echo "menu-open";}?>">
           <a href="#" class="nav-link <?php if($this->uri->segment(2) == "contact"){ echo "active";}?>">
              <i class="nav-icon fa fa-cog"></i>
              <p>
                 Contact 
                 <i class="fas fa-angle-left right"></i>
              </p>
           </a>
           <ul class="nav nav-treeview">
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>contact/call_back_request" class="nav-link <?php if($this->uri->segment(3)=="call_back_request"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Call Back Request</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>contact/class_quotation" class="nav-link <?php if($this->uri->segment(3)=="class_quotation"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Class Room Quotation</p>
                 </a>
              </li>
           </ul>
        </li>
      <?php endif;?>
      <?php if(check_user_permission('review')): ?>
        <li class="nav-item has-treeview <?php if($this->uri->segment(2) == "review"){ echo "menu-open";}?>">
           <a href="#" class="nav-link <?php if($this->uri->segment(2) == "review"){ echo "active";}?>">
              <i class="nav-icon fa fa-cog"></i>
              <p>
                 Review Management 
                 <i class="fas fa-angle-left right"></i>
              </p>
           </a>
           <ul class="nav nav-treeview">
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>review/course_review" class="nav-link <?php if($this->uri->segment(3)=="course_review"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Course Review</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>review/branch_review" class="nav-link <?php if($this->uri->segment(3)=="branch_review"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Branch Review</p>
                 </a>
              </li>
           </ul>
        </li>
      <?php endif;?>
      <?php if(check_user_permission('product')): ?>
        <li class="nav-item has-treeview <?php if($this->uri->segment(2) == "product"){ echo "menu-open";}?>">
           <a href="#" class="nav-link <?php if($this->uri->segment(2) == "product"){ echo "active";}?>">
              <i class="nav-icon fa fa-cog"></i>
              <p>
                 Products Management 
                 <i class="fas fa-angle-left right"></i>
              </p>
           </a>
           <ul class="nav nav-treeview">
               <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>product/product_category" class="nav-link <?php if($this->uri->segment(3)=="product_category"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Product Category</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>product/add_new_product" class="nav-link <?php if($this->uri->segment(3)=="add_new_product"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Add New Product</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>product/view_all_product" class="nav-link <?php if($this->uri->segment(3)=="view_all_product"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>View All Product</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>product/product_faq" class="nav-link <?php if($this->uri->segment(3)=="product_faq"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Product FAQ</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>product/product_bonus" class="nav-link <?php if($this->uri->segment(3)=="product_bonus"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Product Bonus</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>product/product_inquery" class="nav-link <?php if($this->uri->segment(3)=="product_inquery"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Product Inquiry</p>
                 </a>
              </li>
           </ul>
        </li>
      <?php endif;?>
      <?php if(check_user_permission('faq')): ?>
         <li class="nav-item has-treeview <?php if($this->uri->segment(2) == "faq"){ echo "menu-open";}?>">
            <a href="#" class="nav-link <?php if($this->uri->segment(2) == "faq"){ echo "active";}?>">
               <i class="nav-icon fa fa-question-circle"></i>
               <p>
                  FAQ's
                  <i class="fas fa-angle-left right"></i>
               </p>
            </a>
            <ul class="nav nav-treeview">
               <li class="nav-item ">
                  <a href="<?php echo admin_url() ?>faq/faq_category" class="nav-link <?php if($this->uri->segment(3)=="faq_category"){echo 'active';}?>">
                     <i class="fa fa-long-arrow-right nav-icon"></i>
                     <p>FAQ's Category</p>
                  </a>
               </li>
               <li class="nav-item ">
                  <a href="<?php echo admin_url() ?>faq/faq_details" class="nav-link <?php if($this->uri->segment(3)=="faq_details"){echo 'active';}?>">
                     <i class="fa fa-long-arrow-right nav-icon"></i>
                     <p>Add / View FAQ</p>
                  </a>
               </li>
            </ul>
         </li>
      <?php endif;?>
      <?php if(user()->role == 'Admin'): ?>
         <li class="nav-item has-treeview <?php if($this->uri->segment(2) == "franchise"){ echo "menu-open";}?>">
           <a href="#" class="nav-link <?php if($this->uri->segment(2) == "franchise"){ echo "active";}?>">
              <i class="nav-icon fas fa-file-code-o"></i>
              <p>
                 Franchise Page
                 <i class="fas fa-angle-left right"></i>
              </p>
           </a>
           <ul class="nav nav-treeview">
               <li class="nav-item ">
                  <a href="<?php echo base_url() ?>admin/franchise/view_franchise_page" class="nav-link <?php if($this->uri->segment(3)=="view_franchise_page"){echo 'active';}?>">
                     <i class="fa fa-long-arrow-right nav-icon"></i>
                     <p>View Franchise Page</p>
                  </a>
               </li>
               <li class="nav-item ">
                  <a href="<?php echo base_url() ?>admin/franchise/franchise_testimonials" class="nav-link <?php if($this->uri->segment(3)=="franchise_testimonials"){echo 'active';}?>">
                     <i class="fa fa-long-arrow-right nav-icon"></i>
                     <p>Franchise Testimonials</p>
                  </a>
              </li>
              <li class="nav-item ">
                  <a href="<?php echo base_url() ?>admin/franchise/franchise_application" class="nav-link <?php if($this->uri->segment(3)=="franchise_application"){echo 'active';}?>">
                     <i class="fa fa-long-arrow-right nav-icon"></i>
                     <p>Franchise Application</p>
                  </a>
              </li>
           </ul>
         </li>
         <li class="nav-item has-treeview <?php if($this->uri->segment(2) == "career_opportunities"){ echo "menu-open";}?>">
           <a href="#" class="nav-link <?php if($this->uri->segment(2) == "career_opportunities"){ echo "active";}?>">
              <i class="nav-icon fas fa-file-code-o"></i>
              <p>
                 Career Opportunities
                 <i class="fas fa-angle-left right"></i>
              </p>
           </a>
           <ul class="nav nav-treeview">
               <li class="nav-item ">
                  <a href="<?php echo base_url() ?>admin/career_opportunities/view_career_opportunities_page" class="nav-link <?php if($this->uri->segment(3)=="view_career_opportunities_page"){echo 'active';}?>">
                     <i class="fa fa-long-arrow-right nav-icon"></i>
                     <p>Career Opportunities Page</p>
                  </a>
               </li>
               <li class="nav-item ">
                  <a href="<?php echo base_url() ?>admin/career_opportunities/page_slider" class="nav-link <?php if($this->uri->segment(3)=="page_slider"){echo 'active';}?>">
                     <i class="fa fa-long-arrow-right nav-icon"></i>
                     <p>Page Slider</p>
                  </a>
               </li>
               <li class="nav-item ">
                  <a href="<?php echo base_url() ?>admin/career_opportunities/current_placements" class="nav-link <?php if($this->uri->segment(3)=="current_placements"){echo 'active';}?>">
                     <i class="fa fa-long-arrow-right nav-icon"></i>
                     <p>Current Placements</p>
                  </a>
               </li>
               <li class="nav-item ">
                  <a href="<?php echo base_url() ?>admin/career_opportunities/placements_partner" class="nav-link <?php if($this->uri->segment(3)=="placements_partner"){echo 'active';}?>">
                     <i class="fa fa-long-arrow-right nav-icon"></i>
                     <p>Placements Partner</p>
                  </a>
               </li>
               <li class="nav-item ">
                  <a href="<?php echo base_url() ?>admin/career_opportunities/all_testimonials" class="nav-link <?php if($this->uri->segment(3)=="all_testimonials"){echo 'active';}?>">
                     <i class="fa fa-long-arrow-right nav-icon"></i>
                     <p>Branch Testimonials</p>
                  </a>
               </li>
               <li class="nav-item ">
                  <a href="<?php echo base_url() ?>admin/career_opportunities/career_application" class="nav-link <?php if($this->uri->segment(3)=="career_application"){echo 'active';}?>">
                     <i class="fa fa-long-arrow-right nav-icon"></i>
                     <p>Career Application</p>
                  </a>
              </li>
           </ul>
         </li>
         <li class="nav-item has-treeview <?php if($this->uri->segment(2) == "hire_talent"){ echo "menu-open";}?>">
           <a href="#" class="nav-link <?php if($this->uri->segment(2) == "hire_talent"){ echo "active";}?>">
              <i class="nav-icon fas fa-file-code-o"></i>
              <p>
                 Hire Talent Page
                 <i class="fas fa-angle-left right"></i>
              </p>
           </a>
           <ul class="nav nav-treeview">
               <li class="nav-item ">
                  <a href="<?php echo base_url() ?>admin/hire_talent/view_hire_talent_page" class="nav-link <?php if($this->uri->segment(3)=="view_hire_talent_page"){echo 'active';}?>">
                     <i class="fa fa-long-arrow-right nav-icon"></i>
                     <p>View Hire Talent Page</p>
                  </a>
               </li>
               <li class="nav-item ">
                  <a href="<?php echo base_url() ?>admin/hire_talent/hire_partner_image" class="nav-link <?php if($this->uri->segment(3)=="hire_partner_image"){echo 'active';}?>">
                     <i class="fa fa-long-arrow-right nav-icon"></i>
                     <p>Hire Partner Image</p>
                  </a>
               </li>
               <li class="nav-item ">
                  <a href="<?php echo base_url() ?>admin/hire_talent/all_testimonials" class="nav-link <?php if($this->uri->segment(3)=="all_testimonials"){echo 'active';}?>">
                     <i class="fa fa-long-arrow-right nav-icon"></i>
                     <p>Testimonials</p>
                  </a>
               </li>
               <li class="nav-item ">
                  <a href="<?php echo base_url() ?>admin/hire_talent/hire_category" class="nav-link <?php if($this->uri->segment(3)=="hire_category"){echo 'active';}?>">
                     <i class="fa fa-long-arrow-right nav-icon"></i>
                     <p>Hire Category</p>
                  </a>
               </li>
           </ul>
         </li>
      <?php endif;?>
      <?php if(check_user_permission('frontend_setting')): ?>
        <li class="nav-item has-treeview <?php if($this->uri->segment(2) == "frontend_setting"){ echo "menu-open";}?>">
           <a href="#" class="nav-link <?php if($this->uri->segment(2) == "frontend_setting"){ echo "active";}?>">
              <i class="nav-icon fa fa-home"></i>
              <p>
                 Frontend Setting
                 <i class="fas fa-angle-left right"></i>
              </p>
           </a>
           <ul class="nav nav-treeview">
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>frontend_setting/heading_and_sub_heading" class="nav-link <?php if($this->uri->segment(3)=="heading_and_sub_heading"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Heading & Sub-Heading</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>frontend_setting/slider" class="nav-link <?php if($this->uri->segment(3)=="slider"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Slider</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>frontend_setting/company_logo" class="nav-link <?php if($this->uri->segment(3)=="company_logo"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Company Logo</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>frontend_setting/short_about_us" class="nav-link <?php if($this->uri->segment(3)=="short_about_us"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Section 1</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>frontend_setting/front_video" class="nav-link <?php if($this->uri->segment(3)=="front_video"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Section 2</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>frontend_setting/video_page_1" class="nav-link <?php if($this->uri->segment(3)=="video_page_1"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Section 3</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>frontend_setting/video_page_2" class="nav-link <?php if($this->uri->segment(3)=="video_page_2"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Section 4</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>frontend_setting/counting" class="nav-link <?php if($this->uri->segment(3)=="counting"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Counting</p>
                 </a>
              </li>
              <li class="nav-item ">
                <a href="<?php echo admin_url(); ?>frontend_setting/all_testimonails" class="nav-link <?php if($this->uri->segment(3)=="all_testimonails"){echo 'active';}?>">
                  <i class="fa fa-long-arrow-right nav-icon"></i>
                  <p>
                    Testimonials
                  </p>
                </a>
              </li>
              
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>frontend_setting/are_you" class="nav-link <?php if($this->uri->segment(3)=="are_you"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Media Spotlight</p>
                 </a>
              </li>
              
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>frontend_setting/stacks" class="nav-link <?php if($this->uri->segment(3)=="stacks"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Get Programs </p>
                 </a>
              </li>
              
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>frontend_setting/cta_section" class="nav-link <?php if($this->uri->segment(3)=="cta_section"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>CTA Section</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>frontend_setting/feature_for_you" class="nav-link <?php if($this->uri->segment(3)=="feature_for_you"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Feature For You Section</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>frontend_setting/download_app_section" class="nav-link <?php if($this->uri->segment(3)=="download_app_section"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Download App Section</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>frontend_setting/trainee_reviews" class="nav-link <?php if($this->uri->segment(3)=="trainee_reviews"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Trainee Reviews</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>frontend_setting/learner_in_social_media" class="nav-link <?php if($this->uri->segment(3)=="learner_in_social_media"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Learners in Social Media</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>frontend_setting/social_comment_image" class="nav-link <?php if($this->uri->segment(3)=="social_comment_image"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Social Comment Image</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>frontend_setting/placed_student" class="nav-link <?php if($this->uri->segment(3)=="placed_student"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Placed Student</p>
                 </a>
              </li>
            
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>frontend_setting/about_us" class="nav-link <?php if($this->uri->segment(3)=="about_us"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>About Us</p>
                 </a>
              </li>
              
              <li class="nav-item ">
                <a href="<?php echo admin_url(); ?>frontend_setting/extra_page" class="nav-link <?php if($this->uri->segment(3)=="extra_page" || $this->uri->segment(3)=="update_extra_page"){echo 'active';}?>">
                  <i class="fa fa-long-arrow-right nav-icon"></i>
                  <p>
                    Extra Page
                  </p>
                </a>
              </li>
              <li class="nav-item ">
                <a href="<?php echo admin_url(); ?>frontend_setting/notification_settings" class="nav-link <?php if($this->uri->segment(3)=="notification_settings" || $this->uri->segment(3)=="update_extra_page"){echo 'active';}?>">
                  <i class="fa fa-long-arrow-right nav-icon"></i>
                  <p>
                    Notification
                  </p>
                </a>
              </li>
              <li class="nav-item ">
                <a href="<?php echo admin_url(); ?>frontend_setting/book_demo_thank_you_page" class="nav-link <?php if($this->uri->segment(3)=="book_demo_thank_you_page" || $this->uri->segment(3)=="update_extra_page"){echo 'active';}?>">
                  <i class="fa fa-long-arrow-right nav-icon"></i>
                  <p>
                    Book Trial Thank Page
                  </p>
                </a>
              </li>
              <li class="nav-item ">
                <a href="<?php echo admin_url(); ?>frontend_setting/all_subscriber" class="nav-link <?php if($this->uri->segment(3)=="all_subscriber"){echo 'active';}?>">
                  <i class="fa fa-long-arrow-right nav-icon"></i>
                  <p>
                    All Subscriber
                  </p>
                </a>
              </li>
               <li class="nav-item ">
                <a href="<?php echo admin_url(); ?>frontend_setting/section_on_off" class="nav-link <?php if($this->uri->segment(3)=="section_on_off"){echo 'active';}?>">
                  <i class="fa fa-long-arrow-right nav-icon"></i>
                  <p>
                    Section On Off
                  </p>
                </a>
              </li>
              
              <li class="nav-item ">
                <a href="<?php echo admin_url(); ?>frontend_setting/upcoming_batches" class="nav-link <?php if($this->uri->segment(3)=="upcoming_batches"){echo 'active';}?>">
                  <i class="fa fa-long-arrow-right nav-icon"></i>
                  <p>
                    Upcoming Batches
                  </p>
                </a>
              </li>
              <li class="nav-item ">
                <a href="<?php echo admin_url(); ?>frontend_setting/batch_training" class="nav-link <?php if($this->uri->segment(3)=="batch_training"){echo 'active';}?>">
                  <i class="fa fa-long-arrow-right nav-icon"></i>
                  <p>
                     Customized Training
                  </p>
                </a>
              </li>
              <li class="nav-item ">
                <a href="<?php echo admin_url(); ?>frontend_setting/google_algorithm_guide" class="nav-link <?php if($this->uri->segment(3)=="google_algorithm_guide"){echo 'active';}?>">
                  <i class="fa fa-long-arrow-right nav-icon"></i>
                  <p>
                     Google Algorithm Guide
                  </p>
                </a>
              </li>
               <li class="nav-item ">
                <a href="<?php echo admin_url(); ?>frontend_setting/recommended_tools" class="nav-link <?php if($this->uri->segment(3)=="recommended_tools"){echo 'active';}?>">
                  <i class="fa fa-long-arrow-right nav-icon"></i>
                  <p>
                     Recommended Tools
                  </p>
                </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>frontend_setting/tool_seo" class="nav-link <?php if($this->uri->segment(3)=="tool_seo"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Tool SEO</p>
                 </a>
              </li>
           </ul>
        </li>
      <?php endif;?>
      <?php if(check_user_permission('setting')): ?>
        <li class="nav-item has-treeview <?php if($this->uri->segment(2) == "setting"){ echo "menu-open";}?>">
           <a href="#" class="nav-link <?php if($this->uri->segment(2) == "setting"){ echo "active";}?>">
              <i class="nav-icon fa fa-cog"></i>
              <p>
                 Setting
                 <i class="fas fa-angle-left right"></i>
              </p>
           </a>
           <ul class="nav nav-treeview">
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>setting/application_setting" class="nav-link <?php if($this->uri->segment(3)=="application_setting"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Application Setting</p>
                 </a>
              </li>
              <li class="nav-item ">
                 <a href="<?php echo admin_url() ?>setting/visual_setting" class="nav-link <?php if($this->uri->segment(3)=="visual_setting"){echo 'active';}?>">
                    <i class="fa fa-long-arrow-right nav-icon"></i>
                    <p>Visual Setting</p>
                 </a>
              </li>
           </ul>
        </li>
      <?php endif;?>
      <?php if(user()->role == 'User'): ?>
         <li class="nav-item ">
           <a href="<?php echo base_url() ?>admin/product/my_products" class="nav-link <?php if($this->uri->segment(3)=="my_products"){echo 'active';}?>">
              <i class="nav-icon ion ion-bag"></i>
              <p>
                 My Products
              </p>
           </a>
        </li>
        <li class="nav-item ">
           <a href="<?php echo base_url() ?>admin/course/my_courses" class="nav-link <?php if($this->uri->segment(3)=="my_course"){echo 'active';}?>">
              <i class="nav-icon fas fa-award"></i>
              <p>
                 My Course
              </p>
           </a>
        </li>
        <li class="nav-item ">
           <a href="<?php echo base_url() ?>admin/setting/my_billing" class="nav-link <?php if($this->uri->segment(3)=="my_billing"){echo 'active';}?>">
              <i class="nav-icon fas fa-file-invoice-dollar"></i>
              <p>
                 Billing
              </p>
           </a>
        </li>
        <?php endif;?>
        <?php if(user()->role == 'Student'): ?>
            <li class="nav-item ">
               <a href="<?php echo base_url() ?>admin/course/my_course" class="nav-link <?php if($this->uri->segment(3)=="my_course"){echo 'active';}?>">
                  <i class="nav-icon fas fa-book"></i>
                  <p>
                     My Course
                  </p>
               </a>
            </li>
         <?php endif; ?>
         <?php if(check_user_permission('support_ticket')): ?>
               <li class="nav-item ">
                  <a href="<?php echo base_url() ?>admin/support/index" class="nav-link <?php if($this->uri->segment(2)=="support"){echo 'active';}?>">
                     <i class="nav-icon fas fa-comment"></i>
                     <p>
                        Support
                     </p>
                  </a>
               </li>
         <?php endif;?>
   </ul>
</nav>
<!-- /.sidebar-menu -->
</div>
<!-- /.sidebar -->
</aside>