<?php 
$uri = $this->uri->segment(3);
$is_logged = $this->session->userdata('user_info');
//print_r($is_logged);exit;
$main_data = $this->registermodel->common_fetch('main_data',['id' => $is_logged['user_id']]);
?>

<?php
  if (!function_exists('has_access')) {
    function has_access($role_id) {
      return true; // fallback only if helper not loaded, for safety
    }
  }
  //echo '<pre>'; print_r(get_user_permissions()); echo '</pre>';exit;
?>


<!DOCTYPE html>

<html lang="en" class="light-style layout-navbar-fixed layout-menu-fixed layout-compact" dir="ltr"
  data-theme="theme-default" data-assets-path="<?php echo base_url();?>assets/admin/main/" data-template="vertical-menu-template">

<head>
  <meta charset="utf-8" />
  <meta name="viewport"
    content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />

  <title>Dashboard</title>

  <meta name="description" content="" />

  <!-- Favicon -->
  <link rel="icon" type="image/x-icon" href="<?php  echo base_url();?>assets/admin/admin_logo.png" />

  <!-- Fonts -->
  <link rel="preconnect" href="https://fonts.googleapis.com" />
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
  <link
    href="https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&ampdisplay=swap"
    rel="stylesheet" />

  <!-- Icons -->
  <link rel="stylesheet" href="<?php echo base_url();?>assets/admin/main/vendor/fonts/fontawesome.css" />
  <link rel="stylesheet" href="<?php echo base_url();?>assets/admin/main/vendor/fonts/tabler-icons.css" />
  <link rel="stylesheet" href="<?php echo base_url();?>assets/admin/main/vendor/fonts/flag-icons.css" />

  <!-- Core CSS -->
  <link rel="stylesheet" href="<?php echo base_url();?>assets/admin/main/vendor/css/rtl/core.css" class="template-customizer-core-css" />
  <link rel="stylesheet" href="<?php echo base_url();?>assets/admin/main/vendor/css/rtl/theme-default.css" class="template-customizer-theme-css" />
  <link rel="stylesheet" href="<?php echo base_url();?>assets/admin/main/css/demo.css" />

  <!-- Vendors CSS -->
  <link rel="stylesheet" href="<?php echo base_url();?>assets/admin/main/vendor/libs/select2/select2.css" />
  <link rel="stylesheet" href="<?php echo base_url();?>assets/admin/main/vendor/libs/tagify/tagify.css" />
  <link rel="stylesheet" href="<?php echo base_url();?>assets/admin/main/vendor/libs/node-waves/node-waves.css" />
  <link rel="stylesheet" href="<?php echo base_url();?>assets/admin/main/vendor/libs/perfect-scrollbar/perfect-scrollbar.css" />
  <link rel="stylesheet" href="<?php echo base_url();?>assets/admin/main/vendor/libs/typeahead-js/typeahead.css" />
  <link rel="stylesheet" href="<?php echo base_url();?>assets/admin/main/vendor/libs/datatables-bs5/datatables.bootstrap5.css" />
  <link rel="stylesheet" href="<?php echo base_url();?>assets/admin/main/vendor/libs/datatables-responsive-bs5/responsive.bootstrap5.css" />
  <link rel="stylesheet" href="<?php echo base_url();?>assets/admin/main/vendor/libs/datatables-buttons-bs5/buttons.bootstrap5.css" />
  <link rel="stylesheet" href="<?php echo base_url();?>assets/admin/main/vendor/libs/select2/select2.css" />
  <link rel="stylesheet" href="<?php echo base_url();?>assets/admin/main/vendor/libs/@form-validation/umd/styles/index.min.css" />
  <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
  <link rel="stylesheet" href="<?php echo base_url();?>assets/admin/main/vendor/libs/sweetalert2/sweetalert2.css" />

  <!-- Datatables -->
  <link rel="stylesheet" href="https://cdn.datatables.net/1.13.7/css/jquery.dataTables.min.css">
  <!--<script src="https://code.jquery.com/jquery-3.7.0.js"></script>-->
  <!--<script src="https://cdn.datatables.net/1.13.7/js/jquery.dataTables.min.js"></script>-->



  <!-- Page CSS -->
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
  <!-- Helpers -->
  <script src="<?php echo base_url();?>assets/admin/main/vendor/js/helpers.js"></script>
  <!--! Template customizer & Theme config files MUST be included after core stylesheets and helpers.js in the <head> section -->
  <!--? Template customizer: To hide customizer set displayCustomizer value false in config.js.  -->
  <script src="<?php echo base_url();?>assets/admin/main/vendor/js/template-customizer.js"></script>
  <!--? Config:  Mandatory theme config file contain global vars & default theme options, Set your preferred theme option in this file.  -->
  <script src="<?php echo base_url();?>assets/admin/main/js/config.js"></script>
  <!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.5.1/jspdf.umd.min.js"></script> -->
  <script src="https://unpkg.com/jspdf@latest/dist/jspdf.umd.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.5.3/jspdf.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf-autotable/3.5.6/jspdf.plugin.autotable.min.js"></script>
  
  <!--charts-->
  <script src="https://cdn.jsdelivr.net/npm/apexcharts"></script>
  <!--charts-->
  
  <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&icon_names=group" />
  
  <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&icon_names=ambulance" />
  
  <style>
    .material-symbols-outlined {
      font-variation-settings:
      'FILL' 0,
      'wght' 400,
      'GRAD' 0,
      'opsz' 24
    }
    </style>
  
  <!--modals-->
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>

  <!--modals-->
  
  
</head>

<body>
  <!-- Layout wrapper -->
  <div class="layout-wrapper layout-content-navbar">
    <div class="layout-container">
      <!-- Menu -->

      <aside id="layout-menu" class="layout-menu menu-vertical menu bg-menu-theme">
        <div class="app-brand demo">
          <a href="#" class="app-brand-link">
            <span class="app-brand-logo demo">
                <img src="<?php echo base_url();?>assets/admin/admin_logo.png" alt="no img" style="width:20px; height:20px;background-color:#fff;border-radius:50%">
              <!--<svg width="32" height="22" viewBox="0 0 32 22" fill="none" xmlns="http://www.w3.org/2000/svg">
                <path fill-rule="evenodd" clip-rule="evenodd"
                  d="M0.00172773 0V6.85398C0.00172773 6.85398 -0.133178 9.01207 1.98092 10.8388L13.6912 21.9964L19.7809 21.9181L18.8042 9.88248L16.4951 7.17289L9.23799 0H0.00172773Z"
                  fill="#7367F0" />
                <path opacity="0.06" fill-rule="evenodd" clip-rule="evenodd"
                  d="M7.69824 16.4364L12.5199 3.23696L16.5541 7.25596L7.69824 16.4364Z" fill="#161616" />
                <path opacity="0.06" fill-rule="evenodd" clip-rule="evenodd"
                  d="M8.07751 15.9175L13.9419 4.63989L16.5849 7.28475L8.07751 15.9175Z" fill="#161616" />
                <path fill-rule="evenodd" clip-rule="evenodd"
                  d="M7.77295 16.3566L23.6563 0H32V6.88383C32 6.88383 31.8262 9.17836 30.6591 10.4057L19.7824 22H13.6938L7.77295 16.3566Z"
                  fill="#7367F0" />
              </svg>-->
            </span>
            <span class="app-brand-text demo menu-text fw-bold">Med Rayder</span>
          </a>

          <a href="javascript:void(0);" class="layout-menu-toggle menu-link text-large ms-auto">
            <i class="ti menu-toggle-icon d-none d-xl-block ti-sm align-middle"></i>
            <i class="ti ti-x d-block d-xl-none ti-sm align-middle"></i>
          </a>
        </div>

        <div class="menu-inner-shadow"></div>

        <ul class="menu-inner py-1">
            
            
                <!--<li><a href="<?= base_url('admin/dashboard') ?>"><i class="ti ti-layout-dashboard"></i> Dashboard</a></li>-->
            
            
             <?php if (has_access(1)): ?>
            <li class="menu-item <?php if($uri==''){echo 'active';}?>">
              <a href="<?php echo base_url('admin/register');?>" class="menu-link">
                <i class="menu-icon tf-icons ti ti-smart-home"></i>
                <div data-i18n="Dashboard">Dashboard</div>
              </a>
            </li>
            <?php endif; ?>
            
            <?php if (has_access(2)): ?>
              <!--<li class="menu-item <?php if($uri=='users'){echo 'active';}?>">-->
              <!--  <a href="<?php echo base_url('admin/register/users');?>" class="menu-link">-->
              <!--    <i class="menu-icon tf-icons ti ti-user-star"></i>-->
              <!--    <div data-i18n="Users">Users</div>-->
              <!--  </a>-->
              <!--</li>-->
            <?php endif; ?>
            
            <?php if (has_access(2)): ?>
            <li class="menu-item <?php if($uri=='users'||$uri=='subscribed_users'||$uri=='unsubscribed_users'){echo 'active';}?>">
            <a href="javascript:void(0);" class="menu-link menu-toggle">
            <i class="menu-icon tf-icons ti ti-user-star"></i>
              <div data-i18n="Users">Users</div>
            </a>
            <ul class="menu-sub">
                <li class="menu-item">
                <a href="<?php echo base_url('admin/register/users');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Users">Users</div>
                </a>
              </li>
                <li class="menu-item">
                <a href="<?php echo base_url('admin/register/subscribed_users');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Subscribed Users">Subscribed Users</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/unsubscribed_users');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Unsubscribed Users">Unsubscribed Users</div>
                </a>
              </li>
              
            </ul>
          </li>
            <?php endif; ?>
            
            
            <?php if (has_access(3)): ?>
          <li class="menu-item <?php if($uri=='state_heads'||$uri=='add_state_head'||$uri=='edit_state_head'||$uri=='zonal_heads'||$uri=='add_zonal_head'||$uri=='edit_zonal_head'||$uri=='territory_heads'||$uri=='add_territory_head'||$uri=='regional_managers'||$uri=='add_regional_manager'||$uri=='edit_regional_manager'||$uri=='medical_advisors'||$uri=='add_medical_advisor'||$uri=='edit_medical_advisor'){echo 'active';}?>">
            <a href="javascript:void(0);" class="menu-link menu-toggle">
            <i class="menu-icon tf-icons ti ti-users-group"></i>
              <div data-i18n="Sales Team">Sales Team</div>
            </a>
            <ul class="menu-sub">
                <li class="menu-item">
                <a href="<?php echo base_url('admin/register/state_heads');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="State Heads">State Heads</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/zonal_heads');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Zonal Heads">Zonal Heads</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/territory_heads');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Territory Heads">Territory Heads</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/regional_managers');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Regional Managers">Regional Managers</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/medical_advisors');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Medical Advisors">Medical Advisors</div>
                </a>
              </li>
                
            </ul>
          </li>
          <?php endif; ?>
          
            <?php if (has_access(2)): ?>
              <li class="menu-item <?php if($uri=='sales_target'||$uri=='add_sales_target'){echo 'active';}?>">
                <a href="<?php echo base_url('admin/register/sales_target');?>" class="menu-link">
                  <i class="menu-icon tf-icons ti ti-target-arrow"></i>
                  <div data-i18n="Regional Manager Sales Target">Regional Manager Sales Target</div>
                </a>
              </li>
            <?php endif; ?>
            
            <?php if (has_access(2)): ?>
              <li class="menu-item <?php if($uri=='medical_advisor_sales_target'||$uri=='add_medical_advisor_sales_target'){echo 'active';}?>">
                <a href="<?php echo base_url('admin/register/medical_advisor_sales_target');?>" class="menu-link">
                  <i class="menu-icon tf-icons ti ti-target-arrow"></i>
                  <div data-i18n="Medical Advisor Sales Target">Medical Advisor Sales Target</div>
                </a>
              </li>
            <?php endif; ?>
            
            <?php if (has_access(2)): ?>
              <li class="menu-item <?php if($uri=='regional_manager_sales_target'){echo 'active';}?>">
                <a href="<?php echo base_url('admin/register/regional_manager_sales_target');?>" class="menu-link">
                  <i class="menu-icon tf-icons ti ti-user-shield"></i>
                  <div data-i18n="Regional Manager Sales">Regional Manager Sales</div>
                </a>
              </li>
            <?php endif; ?>
            
            <?php if (has_access(2)): ?>
            <li class="menu-item <?php if($uri=='executive_sales_requests'||$uri=='executive_sales_credit'||$uri=='executive_sales_history'){echo 'active';}?>">
            <a href="javascript:void(0);" class="menu-link menu-toggle">
            <i class="menu-icon tf-icons ti ti-git-pull-request-closed"></i>
              <div data-i18n="Medical Advisor Sales">Medical Advisor Sales</div>
            </a>
            <ul class="menu-sub">
                <li class="menu-item">
                <a href="<?php echo base_url('admin/register/executive_sales_requests');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Requests">Requests</div>
                </a>
              </li>
                <li class="menu-item">
                <a href="<?php echo base_url('admin/register/executive_sales_credit');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Credit">Credit</div>
                </a>
              </li>
              
                
            </ul>
          </li>
          
          <?php endif; ?>
            
            <?php if (has_access(2)): ?>
              <!--<li class="menu-item <?php if($uri=='sub_admins'||$uri=='add_sub_admin'){echo 'active';}?>">
                <a href="<?php echo base_url('admin/register/sub_admins');?>" class="menu-link">
                  <i class="menu-icon tf-icons ti ti-users"></i>
                  <div data-i18n="Sub Admins">Sub Admins</div>
                </a>
              </li>-->
             <?php endif; ?>
             
            <?php if (has_access(2)): ?>
              <li class="menu-item <?php if($uri=='tele_callers'||$uri=='add_tele_caller'||$uri=='edit_tele_caller'){echo 'active';}?>">
                <a href="<?php echo base_url('admin/register/tele_callers');?>" class="menu-link">
                  <i class="menu-icon tf-icons ti ti-phone-call"></i>
                  <div data-i18n="Tele Callers">Tele Callers</div>
                </a>
              </li>
             <?php endif; ?>
          
          <?php if (has_access(3)): ?>
          <li class="menu-item <?php if($uri=='banners'||$uri=='add_banner'||$uri=='edit_banner'||$uri=='lab_test_banners'||$uri=='add_lab_test_banner'||$uri=='edit_lab_test_banner'||$uri=='blood_groups'||$uri=='add_blood_group'||$uri=='edit_blood_group'||$uri=='categories'||$uri=='add_category'||$uri=='edit_category'||$uri=='coverage_categories'||$uri=='add_coverage_category'||$uri=='edit_coverage_category'||$uri=='distance'||$uri=='gst'||$uri=='states'||$uri=='add_state'||$uri=='edit_state'||$uri=='districts'||$uri=='add_district'||$uri=='edit_district'||$uri=='cities'||$uri=='add_city'||$uri=='edit_city'||$uri=='mandals'||$uri=='add_mandal'||$uri=='edit_mandal'||$uri=='villages'||$uri=='add_village'||$uri=='edit_village'||$uri=='subscriptions'||$uri=='add_subscription'||$uri=='edit_subscription'||$uri=='medical_degrees'|$uri=='add_medical_degree'||$uri=='edit_medical_degree'||$uri=='online_doctor_specialities'||$uri=='add_online_doctor_speciality'||$uri=='edit_online_doctor_speciality'||$uri=='specialities'||$uri=='add_speciality'||$uri=='edit_speciality'||$uri=='contact_number'||$uri=='executive_commision'||$uri=='questions'||$uri=='add_question'||$uri=='edit_question'||$uri=='qualify_marks'){echo 'active';}?>">
            <a href="javascript:void(0);" class="menu-link menu-toggle">
            <i class="menu-icon tf-icons ti ti-cloud-data-connection"></i>
              <div data-i18n="Master Data">Master Data</div>
            </a>
            <ul class="menu-sub">
                <li class="menu-item">
                <a href="<?php echo base_url('admin/register/banners');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Banners">Banners</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/lab_test_banners');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Lab Test Banners">Lab Test Banners</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/blood_groups');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Blood Groups">Blood Groups</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/categories');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Categories">Categories</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/coverage_categories');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Coverage Categories">Coverage Categories</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/distance');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Distance">Distance</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/gst');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="GST">GST</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/states');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="States">States</div>
                </a>
              </li>
                <li class="menu-item">
                    <a href="<?php echo base_url('admin/register/districts');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="Districts">Districts</div>
                    </a>
                </li>
                <li class="menu-item">
                    <a href="<?php echo base_url('admin/register/cities');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="Cities">Cities</div>
                    </a>
                </li>
                <li class="menu-item">
                    <a href="<?php echo base_url('admin/register/mandals');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="Mandals">Mandals</div>
                    </a>
                </li>
                <li class="menu-item">
                    <a href="<?php echo base_url('admin/register/villages');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="Villages">Villages</div>
                    </a>
                </li>
                <li class="menu-item">
                    <a href="<?php echo base_url('admin/register/subscriptions');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="Subscriptions">Subscriptions</div>
                    </a>
                </li>
                <!--<li class="menu-item">
                    <a href="<?php echo base_url('admin/register/subscriptions');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="Subscriptions">Subscriptions</div>
                    </a>
                </li>-->
                <li class="menu-item">
                    <a href="<?php echo base_url('admin/register/medical_degrees');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="Medical Degrees">Medical Degrees</div>
                    </a>
                </li>
                <li class="menu-item">
                    <a href="<?php echo base_url('admin/register/online_doctor_specialities');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="Online Doctor Specialities">Online Doctor Specialities</div>
                    </a>
                </li>
                <li class="menu-item">
                    <a href="<?php echo base_url('admin/register/specialities');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="Hospital Specialities">Hospital Specialities</div>
                    </a>
                </li>
                <li class="menu-item">
                    <a href="<?php echo base_url('admin/register/contact_number');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="Contact Number">Contact Number</div>
                    </a>
                </li>
                <li class="menu-item">
                <a href="<?php echo base_url('admin/register/executive_commision');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Executive Commision">Executive Commision</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/questions');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Questions">Questions</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/qualify_marks');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Qualify Marks">Qualify Marks</div>
                </a>
              </li>
            </ul>
          </li>
          <?php endif; ?>
          
          <?php if (has_access(4)): ?>
          <li class="menu-item <?php if($uri=='user_app_ios_version'||$uri=='hospital_app_ios_version'||$uri=='online_doctor_app_ios_version'){echo 'active';}?>">
            <a href="javascript:void(0);" class="menu-link menu-toggle">
            <i class="menu-icon tf-icons ti ti-versions"></i>
              <div data-i18n="Ios Versions">Ios Versions</div>
            </a>
            <ul class="menu-sub">
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/user_app_ios_version');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="User App">User App</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/hospital_app_ios_version');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Hospital App">Hospital App</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/online_doctor_app_ios_version');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Online Doctor App">Online Doctor App</div>
                </a>
              </li>
            </ul>
          </li>
          <?php endif; ?>
          
          <?php if (has_access(4)): ?>
          <li class="menu-item <?php if($uri=='hospital_doctor_coupons'||$uri=='add_hospital_doctor_coupon'||$uri=='edit_hospital_doctor_coupon'||$uri=='hospital_diagnostic_coupons'||$uri=='add_hospital_diagnostic_coupon'||$uri=='edit_hospital_diagnostic_coupon'||$uri=='online_doctor_coupons'||$uri=='add_online_doctor_coupon'||$uri=='edit_online_doctor_coupon'||$uri=='diagnostic_coupons'||$uri=='add_diagnostic_coupon'||$uri=='edit_diagnostic_coupon'||$uri=='lab_test_coupons'||$uri=='add_lab_test_coupon'||$uri=='edit_lab_test_coupon'){echo 'active';}?>">
            <a href="javascript:void(0);" class="menu-link menu-toggle">
            <i class="menu-icon tf-icons ti ti-gift"></i>
              <div data-i18n="Coupons">Coupons</div>
            </a>
            <ul class="menu-sub">
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/hospital_doctor_coupons');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Hospital Doctor Coupons">Hospital Doctor Coupons</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/hospital_diagnostic_coupons');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Hospital Diagnostic Coupons">Hospital Diagnostic Coupons</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/online_doctor_coupons');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Online Doctor Coupons">Online Doctor Coupons</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/diagnostic_coupons');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Diagnostic Coupons">Diagnostic Coupons</div>
                </a>
              </li>
              <li class="menu-item">
                    <a href="<?php echo base_url('admin/register/lab_test_coupons');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="Lab Test Coupons">Lab Test Coupons</div>
                    </a>
                </li>
            </ul>
          </li>
          <?php endif; ?>
          
             <?php // (has_access(2)): ?>
              <!--<li class="menu-item <?php if($uri=='hospitals'||$uri=='public_relation_agents'||$uri=='ambulances'||$uri=='doctors'||$uri=='diagnostic'||$uri=='diagnostic_tests'){echo 'active';}?>">-->
              <!--  <a href="<?php echo base_url('admin/register/hospitals');?>" class="menu-link">-->
              <!--    <i class="menu-icon tf-icons ti ti-building-hospital"></i>-->
              <!--    <div data-i18n="Hospitals">Hospitals</div>-->
              <!--  </a>-->
              <!--</li>-->
             <?php //endif; ?>
             
             <?php 
             $states = $this->registermodel->common_fetch_select_asc('states',['status' => 1,'delete_status' => 1],'id,name',['id']);
             
             //print_r($states);exit;
             ?>
             
             <?php if (has_access(2)): ?>
              <li class="menu-item <?php if($uri=='state_hospitals'||$uri=='public_relation_agents'||$uri=='ambulances'||$uri=='doctors'||$uri=='diagnostic'||$uri=='diagnostic_tests'){echo 'active';}?>">
            <a href="javascript:void(0);" class="menu-link menu-toggle">
            <i class="menu-icon tf-icons ti ti-building-hospital"></i>
              <div data-i18n="Hospitals">Hospitals</div>
            </a>
            <ul class="menu-sub">
                <?php if(!empty($states)){
                    foreach($states as $row){
                ?>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/state_hospitals/'.base64_encode($row['id']));?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="<?=$row['name']?>"><?=$row['name']?></div>
                </a>
              </li>
              <?php } } ?>
            </ul>
          </li>
             <?php endif; ?>
             
             <?php if (has_access(2)): ?>
              <li class="menu-item <?php if($uri=='pharmacies'){echo 'active';}?>">
                <a href="<?php echo base_url('admin/register/pharmacies');?>" class="menu-link">
                  <i class="menu-icon tf-icons ti ti-medicine-syrup"></i>
                  <div data-i18n="Pharmacies">Pharmacies</div>
                </a>
              </li>
             <?php endif; ?>
             
             <?php if (has_access(2)): ?>
              <li class="menu-item <?php if($uri=='main_diagnostics'||$uri=='main_diagnostic_packages'||$uri=='main_diagnostic_tests'){echo 'active';}?>">
                <a href="<?php echo base_url('admin/register/main_diagnostics');?>" class="menu-link">
                  <i class="menu-icon tf-icons ti ti-wash-machine"></i>
                  <div data-i18n="Diagnostics">Diagnostics</div>
                </a>
              </li>
             <?php endif; ?>
             
             <?php if (has_access(2)): ?>
              <li class="menu-item <?php if($uri=='lab_tests'||$uri=='lab_test_packages'||$uri=='lab_agents'||$uri=='main_lab_tests'){echo 'active';}?>">
                <a href="<?php echo base_url('admin/register/lab_tests');?>" class="menu-link">
                  <i class="menu-icon tf-icons ti ti-test-pipe"></i>
                  <div data-i18n="Labs">Labs</div>
                </a>
              </li>
             <?php endif; ?>
             
             <?php if (has_access(2)): ?>
              <li class="menu-item <?php if($uri=='online_doctors'){echo 'active';}?>">
                <a href="<?php echo base_url('admin/register/online_doctors');?>" class="menu-link">
                  <i class="menu-icon tf-icons ti ti-stethoscope"></i>
                  <div data-i18n="Online Doctors">Online Doctors</div>
                </a>
              </li>
             <?php endif; ?>
             
            <?php if (has_access(4)): ?>
              <li class="menu-item <?php if($uri=='ongoing_ambulance_bookings'||$uri=='completed_ambulance_bookings'||$uri=='ongoing_admit_bookings'||$uri=='completed_admit_bookings'||$uri=='admit_reports'||$uri=='ongoing_op_bookings'||$uri=='completed_op_bookings'||$uri=='ongoing_doctor_bookings'||$uri=='completed_doctor_bookings'||$uri=='ongoing_pharmacy_prescription_bookings'||$uri=='completed_pharmacy_prescription_bookings'||$uri=='ongoing_diagnostic_bookings'||$uri=='completed_diagnostic_bookings'||$uri=='diagnostic_bookings_reports'||$uri=='ongoing_diagnostic_prescription_bookings'||$uri=='completed_diagnostic_prescription_bookings'||$uri=='diagnostic_prescription_bookings_reports'){echo 'active';}?>">
                <a href="javascript:void(0);" class="menu-link menu-toggle">
                <i class="menu-icon tf-icons ti ti-building-hospital"></i>
                  <div data-i18n="Hospital Bookings">Hospital Bookings</div>
                </a>
                <ul class="menu-sub">
                    <li class="menu-item">
                    <a href="<?php echo base_url('admin/register/ongoing_ambulance_bookings');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="Ambulance Ongoing Bookings">Ambulance Ongoing Bookings</div>
                    </a>
                  </li>
                  <li class="menu-item">
                    <a href="<?php echo base_url('admin/register/completed_ambulance_bookings');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="Ambulance Completed Bookings">Ambulance Completed Bookings</div>
                    </a>
                  </li>
                  <li class="menu-item">
                    <a href="<?php echo base_url('admin/register/ongoing_admit_bookings');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="Admit Ongoing Bookings">Admit Ongoing Bookings</div>
                    </a>
                  </li>
                  <li class="menu-item">
                    <a href="<?php echo base_url('admin/register/completed_admit_bookings');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="Admit Completed Bookings">Admit Completed Bookings</div>
                    </a>
                  </li>
                  <li class="menu-item">
                    <a href="<?php echo base_url('admin/register/ongoing_op_bookings');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="OP Ongoing Bookings">OP Ongoing Bookings</div>
                    </a>
                  </li>
                  <li class="menu-item">
                    <a href="<?php echo base_url('admin/register/completed_op_bookings');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="OP Completed Bookings">OP Completed Bookings</div>
                    </a>
                  </li>
                  <li class="menu-item">
                    <a href="<?php echo base_url('admin/register/ongoing_doctor_bookings');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="Online Doctor Ongoing Bookings">Online Doctor Ongoing Bookings</div>
                    </a>
                  </li>
                  <li class="menu-item">
                    <a href="<?php echo base_url('admin/register/completed_doctor_bookings');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="Online Doctor Completed Bookings">Online Doctor Completed Bookings</div>
                    </a>
                  </li>
                  <li class="menu-item">
                    <a href="<?php echo base_url('admin/register/ongoing_pharmacy_prescription_bookings');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="Pharmacy Prescription Ongoing Bookings">Pharmacy Prescription Ongoing Bookings</div>
                    </a>
                  </li>
                  <li class="menu-item">
                    <a href="<?php echo base_url('admin/register/completed_pharmacy_prescription_bookings');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="Pharmacy Prescription Completed Bookings">Pharmacy Prescription Completed Bookings</div>
                    </a>
                  </li>
                  <li class="menu-item">
                    <a href="<?php echo base_url('admin/register/ongoing_diagnostic_bookings');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="Diagnostic Ongoing Bookings">Diagnostic Ongoing Bookings</div>
                    </a>
                  </li>
                  <li class="menu-item">
                    <a href="<?php echo base_url('admin/register/completed_diagnostic_bookings');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="Diagnostic Completed Bookings">Diagnostic Completed Bookings</div>
                    </a>
                  </li>
                  <li class="menu-item">
                    <a href="<?php echo base_url('admin/register/ongoing_diagnostic_prescription_bookings');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="Diagnostic Prescription Ongoing Bookings">Diagnostic Prescription Ongoing Bookings</div>
                    </a>
                  </li>
                  <li class="menu-item">
                    <a href="<?php echo base_url('admin/register/completed_diagnostic_prescription_bookings');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="Diagnostic Prescription Completed Bookings">Diagnostic Prescription Completed Bookings</div>
                    </a>
                  </li>
                </ul>
              </li>
            <?php endif; ?>
         
          <?php if (has_access(4)): ?>
          <li class="menu-item <?php if($uri=='main_ongoing_pharmacy_prescription_bookings'||$uri=='main_completed_pharmacy_prescription_bookings'){echo 'active';}?>">
            <a href="javascript:void(0);" class="menu-link menu-toggle">
            <i class="menu-icon tf-icons ti ti-medicine-syrup"></i>
              <div data-i18n="Pharmacy Bookings">Pharmacy Bookings</div>
            </a>
            <ul class="menu-sub">
            
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/main_ongoing_pharmacy_prescription_bookings');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Pharmacy Prescription Ongoing Bookings">Pharmacy Prescription Ongoing Bookings</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/main_completed_pharmacy_prescription_bookings');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Pharmacy Prescription Completed Bookings">Pharmacy Prescription Completed Bookings</div>
                </a>
              </li>
              
            </ul>
          </li>
          <?php endif; ?>
          
          <?php if (has_access(4)): ?>
          <li class="menu-item <?php if($uri=='main_ongoing_diagnostic_bookings'||$uri=='main_completed_diagnostic_bookings'||$uri=='main_diagnostic_prescription_bookings_reports'||$uri=='main_ongoing_diagnostic_prescription_bookings'||$uri=='main_completed_diagnostic_prescription_bookings'||$uri=='main_diagnostic_bookings_reports'){echo 'active';}?>">
            <a href="javascript:void(0);" class="menu-link menu-toggle">
            <i class="menu-icon tf-icons ti ti-wash-machine"></i>
              <div data-i18n="Diagnostic Bookings">Diagnostic Bookings</div>
            </a>
            <ul class="menu-sub">
            
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/main_ongoing_diagnostic_bookings');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Diagnostic Ongoing Bookings">Diagnostic Ongoing Bookings</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/main_completed_diagnostic_bookings');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Diagnostic Completed Bookings">Diagnostic Completed Bookings</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/main_ongoing_diagnostic_prescription_bookings');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Diagnostic Prescription Ongoing Bookings">Diagnostic Prescription Ongoing Bookings</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/main_completed_diagnostic_prescription_bookings');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Diagnostic Prescription Completed Bookings">Diagnostic Prescription Completed Bookings</div>
                </a>
              </li>
              
            </ul>
          </li>
          <?php endif; ?>
          
          <?php if (has_access(4)): ?>
          <li class="menu-item <?php if($uri=='main_ongoing_lab_test_bookings'||$uri=='main_completed_lab_test_bookings'||$uri=='main_lab_test_prescription_bookings_reports'||$uri=='main_ongoing_lab_test_prescription_bookings'||$uri=='main_completed_lab_test_prescription_bookings'||$uri=='main_lab_test_bookings_reports'){echo 'active';}?>">
            <a href="javascript:void(0);" class="menu-link menu-toggle">
            <i class="menu-icon tf-icons ti ti-test-pipe"></i>
              <div data-i18n="Lab Bookings">Lab Bookings</div>
            </a>
            <ul class="menu-sub">
            
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/main_ongoing_lab_test_bookings');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Lab Test Ongoing Bookings">Lab Test Ongoing Bookings</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/main_completed_lab_test_bookings');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Lab Test Completed Bookings">Lab Test Completed Bookings</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/main_ongoing_lab_test_prescription_bookings');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Lab Test Prescription Ongoing Bookings">Lab Test Prescription Ongoing Bookings</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/main_completed_lab_test_prescription_bookings');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Lab Test Prescription Completed Bookings">Lab Test Prescription Completed Bookings</div>
                </a>
              </li>
              
            </ul>
          </li>
          <?php endif; ?>
          
          <?php if (has_access(4)): ?>
          <li class="menu-item <?php if($uri=='online_doctor_ongoing_doctor_bookings'||$uri=='online_doctor_completed_doctor_bookings'){echo 'active';}?>">
            <a href="javascript:void(0);" class="menu-link menu-toggle">
            <i class="menu-icon tf-icons ti ti-stethoscope"></i>
              <div data-i18n="Online Doctor Bookings">Online Doctor Bookings</div>
            </a>
            <ul class="menu-sub">
            
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/online_doctor_ongoing_doctor_bookings');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Online Doctor Ongoing Bookings">Online Doctor Ongoing Bookings</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/online_doctor_completed_doctor_bookings');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Online Doctor Completed Bookings">Online Doctor Completed Bookings</div>
                </a>
              </li>
              
            </ul>
          </li>
          <?php endif; ?>
          
          <?php if (has_access(11)): ?>
          <li class="menu-item <?php if($uri=='user_contact_us'||$uri=='hospital_contact_us'||$uri=='hospital_doctor_contact_us'||$uri=='hospital_ambulance_driver_contact_us'||$uri=='pharmacy_contact_us'||$uri=='diagnostic_contact_us'||$uri=='lab_test_contact_us'||$uri=='lab_agent_contact_us'||$uri=='online_doctor_contact_us'||$uri=='executive_contact_us'||$uri=='regional_manager_contact_us'){echo 'active';}?>">
            <a href="javascript:void(0);" class="menu-link menu-toggle">
            <i class="menu-icon tf-icons ti ti-device-mobile-bolt"></i>
              <div data-i18n="Contact Us">Contact Us</div>
            </a>
            <ul class="menu-sub">
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/user_contact_us');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="User Contact Us">User Contact Us</div>
                </a>
              </li>
              
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/hospital_contact_us');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Hospital Contact Us">Hospital Contact Us</div>
                </a>
              </li>
              
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/hospital_doctor_contact_us');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Hospital Doctor Contact Us">Hospital Doctor Contact Us</div>
                </a>
              </li>
              
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/hospital_ambulance_driver_contact_us');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Hospital Ambulance Driver Contact Us">Hospital Ambulance Driver Contact Us</div>
                </a>
              </li>
              
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/pharmacy_contact_us');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Pharmacy Contact Us">Pharmacy Contact Us</div>
                </a>
              </li>
              
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/diagnostic_contact_us');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Diagnostic Contact Us">Diagnostic Contact Us</div>
                </a>
              </li>
              
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/lab_test_contact_us');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Lab Test Contact Us">Lab Test Contact Us</div>
                </a>
              </li>
              
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/lab_agent_contact_us');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Lab Agent Contact Us">Lab Agent Contact Us</div>
                </a>
              </li>
              
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/online_doctor_contact_us');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Online Doctor Contact Us">Online Doctor Contact Us</div>
                </a>
              </li>
              
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/executive_contact_us');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Executive Contact Us">Executive Contact Us</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/regional_manager_contact_us');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Regional Manager Contact Us">Regional Manager Contact Us</div>
                </a>
              </li>
              
            </ul>
          </li>
          <?php endif; ?>
          
          <?php if (has_access(11)): ?>
          <li class="menu-item <?php 
          if($uri=='user_notifications'||$uri=='send_user_notifications'||$uri=='hospital_notifications'||$uri=='send_hospital_notifications'||$uri=='hospital_doctor_notifications'||$uri=='send_hospital_doctor_notifications'||$uri=='hospital_ambulance_notifications'||$uri=='send_hospital_ambulance_notifications'||$uri=='pharmacy_notifications'||$uri=='send_pharmacy_notifications'||$uri=='diagnostic_notifications'||$uri=='send_diagnostic_notifications'||$uri=='lab_test_notifications'||$uri=='send_lab_test_notifications'||$uri=='lab_agent_notifications'||$uri=='send_lab_agent_notifications'||$uri=='online_doctor_notifications'||$uri=='send_online_doctor_notifications'||$uri=='executive_notifications'||$uri=='send_executive_notifications'||$uri=='regional_manager_notifications'||$uri=='send_regional_manager_notifications'){echo 'active';}?>">
            <a href="javascript:void(0);" class="menu-link menu-toggle">
            <i class="menu-icon tf-icons ti ti-bell"></i>
              <div data-i18n="Notifications">Notifications</div>
            </a>
            <ul class="menu-sub"> 
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/user_notifications');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="User Notifications">User Notifications</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/hospital_notifications');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Hospital Notifications">Hospital Notifications</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/hospital_doctor_notifications');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Hospital Doctor Notifications">Hospital Doctor Notifications</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/hospital_ambulance_notifications');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Hospital Ambulance Notifications">Hospital Ambulance Notifications</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/pharmacy_notifications');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Pharmacy Notifications">Pharmacy Notifications</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/diagnostic_notifications');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Diagnostic Notifications">Diagnostic Notifications</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/lab_test_notifications');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Lab Notifications">Lab Notifications</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/lab_agent_notifications');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Lab Agent Notifications">Lab Agent Notifications</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/online_doctor_notifications');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Online Doctor Notifications">Online Doctor Notifications</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/executive_notifications');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Executive Notifications">Executive Notifications</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/regional_manager_notifications');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Regional Manager Notifications">Regional Manager Notifications</div>
                </a>
              </li>
            </ul>
          </li>
          <?php endif; ?>
          
          <?php if (has_access(11)): ?>
          <li class="menu-item <?php 
          if($uri=='terms'||$uri=='privacy'||$uri=='about_us'){echo 'active';}?>">
            <a href="javascript:void(0);" class="menu-link menu-toggle">
            <i class="menu-icon tf-icons ti ti-pencil-plus"></i>
              <div data-i18n="Content Pages">Content Pages</div>
            </a>
            <ul class="menu-sub"> 
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/terms');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Terms & Conditions">Terms & Conditions</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/privacy');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Privacy Policy">Privacy Policy</div>
                </a>
              </li>
              
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/about_us');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="About Us">About Us</div>
                </a>
              </li>
        
            </ul>
          </li>
          <?php endif; ?>
          
          <?php if (has_access(11)): ?>
          <li class="menu-item <?php if($uri=='hospital_statistics'||$uri=='pharmacy_statistics'||$uri=='diagnostic_statistics'||$uri=='lab_test_statistics'||$uri=='online_doctor_statistics'){echo 'active';}?>">
            <a href="javascript:void(0);" class="menu-link menu-toggle">
            <i class="menu-icon tf-icons ti ti-graph"></i>
              <div data-i18n="Statistics">Statistics</div>
            </a>
            <ul class="menu-sub"> 
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/hospital_statistics');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Hospital">Hospital</div>
                </a>
              </li>
              
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/pharmacy_statistics');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Pharmacy">Pharmacy</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/diagnostic_statistics');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Diagnostic">Diagnostic</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/lab_test_statistics');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Lab Test">Lab Test</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/online_doctor_statistics');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Online Doctor">Online Doctor</div>
                </a>
              </li>
            </ul>
          </li>
          <?php endif; ?>
          
          <?php if (has_access(11)): ?>
          <li class="menu-item <?php if($uri=='hospital_diagnostic_payments'||$uri=='hospital_doctor_payments'||$uri=='diagnostic_payments'||$uri=='lab_test_payments'||$uri=='online_doctor_payments'){echo 'active';}?>">
            <a href="javascript:void(0);" class="menu-link menu-toggle">
            <i class="menu-icon tf-icons ti ti-coin-rupee"></i>
              <div data-i18n="Payments">Payments</div>
            </a>
            <ul class="menu-sub"> 
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/hospital_diagnostic_payments');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Hospital Diagnostic">Hospital Diagnostic</div>
                </a>
              </li>
              
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/hospital_doctor_payments');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Hospital Doctor">Hospital Doctor</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/diagnostic_payments');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Diagnostic Payments">Diagnostic Payments</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/lab_test_payments');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Lab Test Payments">Lab Test Payments</div>
                </a>
              </li>
              <li class="menu-item">
                <a href="<?php echo base_url('admin/register/online_doctor_payments');?>" class="menu-link">
                  <div style="font-size: 13px!important;" data-i18n="Online Doctor Payments">Online Doctor Payments</div>
                </a>
              </li>
            </ul>
          </li>
          <?php endif; ?>
          
          <?php //if (has_access(4)): 
          
          if($is_logged['login_type']=='tele_caller'||$is_logged['login_type']=='admin'):?>
              <li class="menu-item <?php if($uri=='ambulance_booking'||$uri=='admit_booking'||$uri=='op_booking'||$uri=='doctor_booking'||$uri=='hospital_pharmacy_medicine_booking'||$uri=='hospital_diagnostic_prescription_booking'||$uri=='hospital_diagnostic_booking'||$uri=='pharmacy_medicine_booking'||$uri=='diagnostic_prescription_booking'||$uri=='diagnostic_booking'||$uri=='lab_test_prescription_booking'||$uri=='lab_test_booking'||$uri=='online_doctor_booking'){echo 'active';}?>">
                <a href="javascript:void(0);" class="menu-link menu-toggle">
                <i class="menu-icon tf-icons ti ti-hand-click"></i>
                  <div data-i18n="Book for an User">Book for an User</div>
                </a>
                <ul class="menu-sub">
                    <li class="menu-item">
                    <a href="<?php echo base_url('admin/register/ambulance_booking');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="Ambulance Booking">Ambulance Booking</div>
                    </a>
                  </li>
                  <li class="menu-item">
                    <a href="<?php echo base_url('admin/register/admit_booking');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="Admit Booking">Admit Booking</div>
                    </a>
                  </li>
                  <li class="menu-item">
                    <a href="<?php echo base_url('admin/register/op_booking');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="Hospital OP Booking">Hospital OP Booking</div>
                    </a>
                  </li>
                  <!--<li class="menu-item">
                    <a href="<?php echo base_url('admin/register/doctor_booking');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="Hospital Online Doctor Booking">Hospital Online Doctor Booking</div>
                    </a>
                  </li>-->
                  <!--<li class="menu-item">
                    <a href="<?php echo base_url('admin/register/hospital_pharmacy_medicine_booking');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="Hospital Pharmacy Prescription Booking">Hospital Pharmacy Prescription Booking</div>
                    </a>
                  </li>-->
                  <!--<li class="menu-item">
                    <a href="<?php echo base_url('admin/register/hospital_diagnostic_prescription_booking');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="Hospital Diagnostic Prescription Booking">Hospital Diagnostic Prescription Booking</div>
                    </a>
                  </li>-->
                  <li class="menu-item">
                    <a href="<?php echo base_url('admin/register/hospital_diagnostic_booking');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="Hospital Diagnostic Booking">Hospital Diagnostic Booking</div>
                    </a>
                  </li>
                  <!--<li class="menu-item">
                    <a href="<?php echo base_url('admin/register/pharmacy_medicine_booking');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="Pharmacy Prescription Booking">Pharmacy Prescription Booking</div>
                    </a>
                  </li>-->
                  <!--<li class="menu-item">
                    <a href="<?php echo base_url('admin/register/diagnostic_prescription_booking');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="Diagnostic Prescription Booking">Diagnostic Prescription Booking</div>
                    </a>
                  </li>-->
                  <li class="menu-item">
                    <a href="<?php echo base_url('admin/register/diagnostic_booking');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="Diagnostic Booking">Diagnostic Booking</div>
                    </a>
                  </li>
                  <!--<li class="menu-item">
                    <a href="<?php echo base_url('admin/register/lab_test_prescription_booking');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="Lab Prescription Booking">Lab Prescription Booking</div>
                    </a>
                  </li>-->
                  <li class="menu-item">
                    <a href="<?php echo base_url('admin/register/lab_test_booking');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="Lab Booking">Lab Booking</div>
                    </a>
                  </li>
                  <!--<li class="menu-item">
                    <a href="<?php echo base_url('admin/register/online_doctor_booking');?>" class="menu-link">
                      <div style="font-size: 13px!important;" data-i18n="Online Doctor Booking">Online Doctor Booking</div>
                    </a>
                  </li>-->
                  
                </ul>
              </li>
            <?php //endif; 
            endif;
            ?>
         
         
        </ul>
      </aside>
      <!-- / Menu -->

      <!-- Layout container -->
      <div class="layout-page">
        <!-- Navbar -->

        <nav
          class="layout-navbar container-xxl navbar navbar-expand-xl navbar-detached align-items-center bg-navbar-theme"
          id="layout-navbar">
          <div class="layout-menu-toggle navbar-nav align-items-xl-center me-3 me-xl-0 d-xl-none">
            <a class="nav-item nav-link px-0 me-xl-4" href="javascript:void(0)">
              <i class="ti ti-menu-2 ti-sm"></i>
            </a>
          </div>

          <div class="navbar-nav-right d-flex align-items-center" id="navbar-collapse">
            <!-- Search -->
            
            <!-- /Search -->

            <ul class="navbar-nav flex-row align-items-center ms-auto">

              
           <!--edit-->
            <!--<li>-->
            <!--    <a class="dropdown-item" href="<?php echo base_url('admin/register/profile');?>">-->
            <!--      <i class="ti ti-pencil me-2 ti-sm"></i>-->
                  <!--<span class="align-middle">Edit</span>-->
            <!--    </a>-->
            <!--</li>-->
           <!--edit-->


              <!-- User -->
              
                <li onclick= "return confirm('Are you sure want to logout ?')">
                    <a class="dropdown-item" href="<?php echo base_url('admin/login/logout');?>">
                      <i class="ti ti-logout me-2 ti-sm"></i>
                      <span class="align-middle">Log Out</span>
                    </a>
                </li>
            </ul>
          </div>

          <!-- Search Small Screens -->
          <div class="navbar-search-wrapper search-input-wrapper d-none">

            <input type="text" class="form-control search-input container-xxl border-0" placeholder="Search..."
              aria-label="Search..." />
            <i class="ti ti-x ti-sm search-toggler cursor-pointer"></i>
          </div>
        </nav>
        
<style>
    .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
        background:none!important;
        border:none;
        background: -moz-linear-gradient(top, #585858 0%, #111 100%);
        background: -ms-linear-gradient(top, #585858 0%, #111 100%);
        background: -o-linear-gradient(top, #585858 0%, #111 100%);
    }

div.dataTables_wrapper div.dataTables_length select {
    width: 41%;
    display: inline-block;
}
.dataTables_wrapper .dataTables_paginate .paginate_button{
    padding:0;
}

        </style>

        <!-- / Navbar -->