<aside class="main-sidebar elevation-1 sidebar-dark-warning">
   <?php $data = sitedata();?>
   <a href="<?=base_url();?>/dashboard" class="brand-link">
   <img src="<?=base_url()?>assets/uploads/newlogo1.png" class="brand-imag" style="float: left; max-height: 30px; width: auto; display: none;">
   <span class="brand-text  font-weight-light">Yah Love</span>
   </a>
   <div class="sidebar">
      <nav class="mt-2">
         <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
            <li class="nav-item">
               <a href="<?=base_url();?>dashboard" class="nav-link <?php echo activate_menu('dashboard'); ?>">
                  <i class="nav-icon fas fa-tachometer-alt"></i>
                  <p>
                     Dashboard
                  </p>
               </a>
            </li>
            <?php /*
            <li class="nav-item d-none has-treeview <?php echo ((activate_menu('vehicle')) == 'active') ? 'menu-open' : '' ?>
               <?php echo ((activate_menu('addvehicle')) == 'active') ? 'menu-open' : '' ?> <?php echo ((activate_menu('viewvehicle')) == 'active') ? 'menu-open' : '' ?><?php echo ((activate_menu('editvehicle')) == 'active') ? 'menu-open' : '' ?><?php echo ((activate_menu('vehiclegroup')) == 'active') ? 'menu-open' : '' ?>">
               <a href="#" class="nav-link <?php echo activate_menu('vehicle'); ?> <?php echo activate_menu('addvehicle'); ?><?php echo activate_menu('viewvehicle'); ?><?php echo activate_menu('editvehicle'); ?><?php echo activate_menu('vehiclegroup'); ?>">
                  <i class="nav-icon fas fa-truck"></i>
                  <p>
                     Vehicle's
                     <i class="right fas fa-angle-left"></i>
                  </p>
               </a>
               <ul class="nav nav-treeview">
                  <?php if (userpermission('lr_vech_list')) {?>
                  <li class="nav-item">
                     <a href="<?=base_url();?>vehicle" class="nav-link <?php echo activate_menu('vehicle'); ?><?php echo activate_menu('editvehicle'); ?><?php echo activate_menu('viewvehicle'); ?>">
                        <i class="nav-icon fas faa-list"></i>
                        <p>Vehicle List</p>
                     </a>
                  </li>
                 <?php }if (userpermission('lr_vech_add')) {?>
                  <li class="nav-item">
                     <a href="<?=base_url();?>vehicle/addvehicle" class="nav-link <?php echo activate_menu('addvehicle'); ?>">
                        <i class="nav-icon fas faa-plus"></i>
                        <p>Add Vehicle</p>
                     </a>
                  </li>
                  <?php }if (userpermission('lr_vech_group')) {?>
                  <li class="nav-item d-none">
                     <a href="<?=base_url();?>vehicle/vehiclegroup" class="nav-link <?php echo activate_menu('vehiclegroup'); ?>">
                        <i class="nav-icon fas faa-plus"></i>
                        <p>Vehicle Group</p>
                     </a>
                  </li>
                <?php }?>
               </ul>
            </li>
            <?php if (userpermission('lr_drivers_list') || userpermission('lr_drivers_add')) {?>
            <li class="nav-item has-treeview <?php echo ((activate_menu('drivers')) == 'active') ? 'menu-open' : '' ?>
               <?php echo ((activate_menu('adddrivers')) == 'active') ? 'menu-open' : '' ?><?php echo ((activate_menu('editdriver')) == 'active') ? 'menu-open' : '' ?>">
               <a href="#" class="nav-link <?php echo activate_menu('drivers'); ?> <?php echo activate_menu('adddrivers'); ?><?php echo activate_menu('editdriver'); ?>">
                  <i class="nav-icon fas fa-user-secret"></i>
                  <p>
                     Driver's
                     <i class="right fas fa-angle-left"></i>
                  </p>
               </a>
               <ul class="nav nav-treeview">
                  <?php if (userpermission('lr_drivers_list')) {?>
                  <li class="nav-item">
                     <a href="<?=base_url();?>drivers" class="nav-link <?php echo activate_menu('drivers'); ?><?php echo activate_menu('editdriver'); ?>">
                        <i class="nav-icon fas faa-list"></i>
                        <p>Driver List</p>
                     </a>
                  </li>
                  <?php }if (userpermission('lr_drivers_add')) {?>
                  <li class="nav-item">
                     <a href="<?=base_url();?>drivers/adddrivers" class="nav-link <?php echo activate_menu('adddrivers'); ?>">
                        <i class="nav-icon fas faa-plus"></i>
                        <p>Add Driver</p>
                     </a>
                  </li>
                  
                  <?php }?>
               </ul>
            </li>
            <?php }?>
            <?php if (userpermission('lr_trips_list') || userpermission('lr_trips_list_view')) {?>
            <li class="nav-item has-treeview <?php echo ((activate_menu('trips')) == 'active') ? 'menu-open' : '' ?>
               <?php echo ((activate_menu('addtrips')) == 'active') ? 'menu-open' : '' ?><?php echo ((activate_menu('edittrip')) == 'active') ? 'menu-open' : '' ?><?php echo ((activate_menu('details')) == 'active') ? 'menu-open' : '' ?>">
               <a href="#" class="nav-link <?php echo activate_menu('trips'); ?> <?php echo activate_menu('addtrips'); ?> <?php echo activate_menu('edittrip'); ?><?php echo activate_menu('details'); ?>">
                  <i class="nav-icon fas fa-road"></i>
                  <p>
                     Trip Reports
                     <i class="right fas fa-angle-left"></i>
                  </p>
               </a>
               <ul class="nav nav-treeview">
                  <?php if (userpermission('lr_trips_list')) {?>
                  <li class="nav-item">
                     <a href="<?=base_url();?>trips" class="nav-link <?php echo activate_menu('trips'); ?><?php echo activate_menu('edittrip'); ?><?php echo activate_menu('details'); ?>">
                        <i class="nav-icon fas faa-list"></i>
                        <p>Trip List</p>
                     </a>
                  </li>
                  <?php }if (userpermission('lr_trips_add')) {?>
                     <!--
                  <li class="nav-item">
                     <a href="<?=base_url();?>trips/addtrips" class="nav-link <?php echo activate_menu('addtrips'); ?>">
                        <i class="nav-icon fas faa-plus"></i>
                        <p>Upcoming Trips</p>
                     </a>
                  </li>
               -->
                  <?php }?>

                    <li class="nav-item">
                     <a href="<?=base_url();?>trips/emergecy" class="nav-link <?php echo activate_menu('emergecy'); ?>">
                        <i class="nav-icon fas faa-plus"></i>
                        <p>EMERGENCY </p>
                     </a>
                  </li>
                  <li class="nav-item">
                     <a href="<?=base_url();?>trips/addtrips" class="nav-link <?php echo activate_menu('addtrips'); ?>">
                        <i class="nav-icon fas faa-plus"></i>
                        <p>Add Trip </p>
                     </a>
                  </li>
                  <li class="nav-item">
                     <a href="<?=base_url();?>trips/schtrips" class="nav-link <?php echo activate_menu('addtrips'); ?>">
                        <i class="nav-icon fas faa-plus"></i>
                        <p>Schedule Trip </p>
                     </a>
                  </li>
               </ul>
            </li>
           <?php }?>
           */?>
           <?php if (userpermission('lr_cust_list') || userpermission('lr_cust_add')) {?>
            <li class="nav-item  has-treeview <?php echo ((activate_menu('customer')) == 'active') ? 'menu-open' : '' ?>
               <?php echo ((activate_menu('addcustomer')) == 'active') ? 'menu-open' : '' ?><?php echo ((activate_menu('editcustomer')) == 'active') ? 'menu-open' : '' ?>">
               <a href="#" class="nav-link <?php echo activate_menu('customer'); ?> <?php echo activate_menu('addcustomer'); ?><?php echo activate_menu('editcustomer'); ?>">
                  <i class="nav-icon fas fa-user"></i>
                  <p>
                     User
                     <i class="right fas fa-angle-left"></i>
                  </p>
               </a>
            
               <ul class="nav nav-treeview">
                <?php if (userpermission('lr_cust_list')) {?>
                  <li class="nav-item">
                     <a href="<?=base_url();?>customer" class="nav-link <?php echo activate_menu('customer'); ?><?php echo activate_menu('editcustomer'); ?>">
                        <i class="nav-icon fas faa-list"></i>
                        <p>Customer Management</p>
                     </a>
                  </li>
                  <?php }if (userpermission('lr_cust_add')) {?>
                  <li class="nav-item" style="display:none">
                     <a href="<?=base_url();?>customer/addcustomer" class="nav-link <?php echo activate_menu('addcustomer'); ?>">
                        <i class="nav-icon fas faa-plus"></i>
                        <p>Add Customer</p>
                     </a>
                  </li>
                
                   <?php }?>
               </ul>
            </li>
            <?php }if (userpermission('lr_fuel_list') || userpermission('lr_fuel_add')) { /*?>
<li class="nav-item has-treeview <?php echo ((activate_menu('fuel'))=='active') ? 'menu-open':'' ?>
<?php echo ((activate_menu('addfuel'))=='active') ? 'menu-open':'' ?> <?php echo ((activate_menu('editfuel'))=='active') ? 'menu-open':'' ?>">
<a href="#" class="nav-link <?php echo activate_menu('fuel');?> <?php echo activate_menu('addfuel');?><?php echo activate_menu('editfuel');?>">
<i class="nav-icon fa fa-battery-three-quarters"></i>
<p>
Fuel
<i class="right fas fa-angle-left"></i>
</p>
</a>
<ul class="nav nav-treeview">
<?php  if(userpermission('lr_fuel_list')) { ?>
<li class="nav-item">
<a href="<?= base_url(); ?>fuel" class="nav-link <?php echo activate_menu('fuel');?> <?php echo activate_menu('editfuel');?>">
<i class="nav-icon fas faa-list"></i>
<p>Fuel Management</p>
</a>
</li>
<?php } if(userpermission('lr_fuel_add')) { ?>
<li class="nav-item">
<a href="<?= base_url(); ?>fuel/addfuel" class="nav-link <?php echo activate_menu('addfuel');?>">
<i class="nav-icon fas faa-plus"></i>
<p>Add Fuel</p>
</a>
</li>
<?php } ?>
</ul>
</li>
<?php */

}
if (userpermission('lr_reminder_list') || userpermission('lr_reminder_add')) {?>
            <li style="display: none;" class="nav-item has-treeview <?php echo ((activate_menu('reminder')) == 'active') ? 'menu-open' : '' ?>
               <?php echo ((activate_menu('addreminder')) == 'active') ? 'menu-open' : '' ?><?php echo ((activate_menu('editreminder')) == 'active') ? 'menu-open' : '' ?>">
               <a href="#" class="nav-link <?php echo activate_menu('reminder'); ?> <?php echo activate_menu('addreminder'); ?><?php echo activate_menu('editreminder'); ?>">
                  <i class="nav-icon fas fa fa-bullhorn"></i>
                  <p>
                     Reminder
                     <i class="right fas fa-angle-left"></i>
                  </p>
               </a>
               <ul class="nav nav-treeview">
                <?php if (userpermission('lr_reminder_list')) {?>
                  <li class="nav-item">
                     <a href="<?=base_url();?>reminder" class="nav-link <?php echo activate_menu('reminder'); ?><?php echo activate_menu('editreminder'); ?>">
                        <i class="nav-icon fas faa-list"></i>
                        <p>Reminder Management</p>
                     </a>
                  </li>
                  <?php }if (userpermission('lr_reminder_add')) {?>
                  <li class="nav-item">
                     <a href="<?=base_url();?>reminder/addreminder" class="nav-link <?php echo activate_menu('addreminder'); ?>">
                        <i class="nav-icon fas faa-plus"></i>
                        <p>Add Reminder</p>
                     </a>
                  </li>
                  <?php }?>
               </ul>
            </li>
            <?php }if (userpermission('lr_ie_list') || userpermission('lr_ie_add')) {?>
            <li class="nav-item d-none has-treeview <?php echo ((activate_menu('incomexpense')) == 'active') ? 'menu-open' : '' ?>
               <?php echo ((activate_menu('addincomexpense')) == 'active') ? 'menu-open' : '' ?><?php echo ((activate_menu('editincomexpense')) == 'active') ? 'menu-open' : '' ?>">
               <a href="#" class="nav-link <?php echo activate_menu('incomexpense'); ?> <?php echo activate_menu('editincomexpense'); ?> <?php echo activate_menu('addincomexpense'); ?>">
                  <i class="nav-icon fa fa-dollar-sign"></i>
                  <p>
                     Income & Expenses
                     <i class="right fas fa-angle-left"></i>
                  </p>
               </a>
               <ul class="nav nav-treeview">
                 <?php if (userpermission('lr_ie_list')) {?>
                  <li class="nav-item">
                     <a href="<?=base_url();?>incomexpense"  class="nav-link <?php echo activate_menu('incomexpense'); ?> <?php echo activate_menu('editincomexpense'); ?>">
                        <i class="nav-icon fas faa-list"></i>
                        <p>Income & Expenses</p>
                     </a>
                  </li>
                   <?php }if (userpermission('lr_ie_add')) {?>
                  <li class="nav-item">
                     <a href="<?=base_url();?>incomexpense/addincomexpense" class="nav-link <?php echo activate_menu('addincomexpense'); ?>">
                        <i class="nav-icon fas faa-plus"></i>
                        <p>Add Income & Expenses</p>
                     </a>
                  </li>
                  <?php }?>
               </ul>
            </li>
            <?php }if (userpermission('lr_tracking') || userpermission('lr_liveloc')) { /*?>
<li class="nav-item has-treeview <?php echo ((activate_menu('tracking')) == 'active') ? 'menu-open' : '' ?>
<?php echo ((activate_menu('livestatus')) == 'active') ? 'menu-open' : '' ?>">
<a href="#" class="nav-link <?php echo activate_menu('tracking'); ?> <?php echo activate_menu('livestatus'); ?>">
<i class="nav-icon fa fa-map-pin"></i>
<p>
Tracking
<i class="right fas fa-angle-left"></i>
</p>
</a>
<ul class="nav nav-treeview">
<?php if (userpermission('lr_tracking')) {?>
<li class="nav-item">
<a href="<?=base_url();?>tracking" class="nav-link <?php echo activate_menu('tracking'); ?>">
<i class="nav-icon fas faa-list"></i>
<p>History Tracking</p>
</a>
</li>
<?php }if (userpermission('lr_liveloc')) {?>
<li class="nav-item">
<a href="<?=base_url();?>tracking/livestatus" class="nav-link <?php echo activate_menu('livestatus'); ?>">
<i class="nav-icon fas faa-plus"></i>
<p>Live Location</p>
</a>
</li>
<?php }?>
</ul>
</li>
<?php */}if (userpermission('lr_geofence_add') || userpermission('lr_geofence_list') || userpermission('lr_geofence_events')) { /*?>
<li class="nav-item has-treeview <?php echo ((activate_menu('addgeofence')) == 'active') ? 'menu-open' : '' ?> <?php echo ((activate_menu('geofenceevents')) == 'active') ? 'menu-open' : '' ?>
<?php echo ((activate_menu('geofence')) == 'active') ? 'menu-open' : '' ?>">
<a href="#" class="nav-link <?php echo activate_menu('geofence'); ?> <?php echo activate_menu('addgeofence'); ?> <?php echo activate_menu('geofenceevents'); ?>">
<i class="nav-icon fa fa-street-view"></i>
<p>
Geofence
<i class="right fas fa-angle-left"></i>
</p>
</a>
<ul class="nav nav-treeview">
<?php if (userpermission('lr_geofence_add')) {?>
<li class="nav-item">
<a href="<?=base_url();?>geofence/addgeofence" class="nav-link <?php echo activate_menu('addgeofence'); ?>">
<i class="nav-icon fas faa-list"></i>
<p>Add Geofence</p>
</a>
</li>
<?php }if (userpermission('lr_geofence_list')) {?>
<li class="nav-item">
<a href="<?=base_url();?>geofence" class="nav-link <?php echo activate_menu('geofence'); ?>">
<i class="nav-icon fas faa-plus"></i>
<p>Geofence Management</p>
</a>
</li>
<?php }if (userpermission('lr_geofence_events')) {?>
<li class="nav-item">
<a href="<?=base_url();?>geofence/geofenceevents" class="nav-link <?php echo activate_menu('geofenceevents'); ?>">
<i class="nav-icon fas faa-plus"></i>
<p>Geofence Events</p>
</a>
</li>
<?php }?>
</ul>
</li>
<?php */}if (userpermission('lr_reports')) {?>
            <li style="display:none;" class="nav-item has-treeview <?php echo ((activate_menu('incomeexpense')) == 'active') ? 'menu-open' : '' ?> <?php echo ((activate_menu('booking')) == 'active') ? 'menu-open' : '' ?><?php echo ((activate_menu('fuels')) == 'active') ? 'menu-open' : '' ?>">
               <a href="#" class="nav-link <?php echo activate_menu('booking'); ?><?php echo activate_menu('fuels'); ?><?php echo activate_menu('incomeexpense'); ?>">
                  <i class="nav-icon fa fa-calculator" aria-hidden="true"></i>
                  <p>
                     Reports
                     <i class="right fas fa-angle-left"></i>
                  </p>
               </a>
               <ul style="display:none;" class="nav nav-treeview">
                  <li class="nav-item">
                     <a href="<?=base_url();?>reports/booking" class="nav-link <?php echo activate_menu('booking'); ?>">
                        <i class="fas fa-cosg icon nav-icon"></i>
                        <p>Bookings</p>
                     </a>
                  </li>
                  <li class="nav-item" style="display: none;">
                     <a href="<?=base_url();?>reports/incomeexpense" class="nav-link <?php echo activate_menu('incomeexpense'); ?>">
                        <i class="nav-icon fas faa-plus"></i>
                        <p>Income & Expenses</p>
                     </a>
                  </li>
                  <!--
                  <li class="nav-item">
                     <a href="<?=base_url();?>reports/fuels" class="nav-link <?php echo activate_menu('fuels'); ?>">
                        <i class="nav-icon fas faa-plus"></i>
                        <p>Fuel</p>
                     </a>
                  </li>
                  -->
               </ul>
            </li>
            <?php }if (userpermission('lr_settings')) {?>
            <li style="display:none;" class="nav-item has-treeview <?php echo ((activate_menu('websitesetting')) == 'active') ? 'menu-open' : '' ?> <?php echo ((activate_menu('smtpconfig')) == 'active') ? 'menu-open' : '' ?><?php echo ((activate_menu('email_template')) == 'active') ? 'menu-open' : '' ?><?php echo ((activate_menu('edit_email_template')) == 'active') ? 'menu-open' : '' ?>">
               <a href="#" class="nav-link <?php echo activate_menu('websitesetting'); ?><?php echo activate_menu('email_template'); ?> <?php echo activate_menu('smtpconfig'); ?><?php echo activate_menu('edit_email_template'); ?>">
                  <i class="nav-icon fa fa-dollar-sign"></i>
                  <p>
                     Setting's
                     <i class="right fas fa-angle-left"></i>
                  </p>
               </a>
               <ul style="display:none;"  class="nav nav-treeview">
                  <li class="nav-item">
                     <a href="<?=base_url();?>settings/websitesetting" class="nav-link <?php echo activate_menu('websitesetting'); ?>">
                        <i class="fas fa-cosg icon nav-icon"></i>
                        <p>Gernal Settings</p>
                     </a>
                  </li>
                  <li class="nav-item d-none">
                     <a href="<?=base_url();?>settings/smtpconfig" class="nav-link <?php echo activate_menu('smtpconfig'); ?>">
                        <i class="nav-icon fas faa-plus"></i>
                        <p>SMTP Configuration</p>
                     </a>
                  </li>
                  <li class="nav-item d-none">
                     <a href="<?=base_url();?>settings/email_template" class="nav-link <?php echo activate_menu('email_template'); ?><?php echo activate_menu('edit_email_template'); ?>">
                        <i class="nav-icon fas faa-plus"></i>
                        <p>Email Template</p>
                     </a>
                  </li>
               </ul>
            </li>
            <li class="nav-item d-none has-treeview <?php echo ((activate_menu('users')) == 'active') ? 'menu-open' : '' ?> <?php echo ((activate_menu('adduser')) == 'active') ? 'menu-open' : '' ?> <?php echo ((activate_menu('edituser')) == 'active') ? 'menu-open' : '' ?>">
               <a href="#" class="nav-link <?php echo activate_menu('users'); ?> <?php echo activate_menu('edituser'); ?><?php echo activate_menu('adduser'); ?>">
                  <i class="nav-icon fa fa-user"></i>
                  <p>
                     User's
                     <i class="right fas fa-angle-left"></i>
                  </p>
               </a>
               <ul class="nav nav-treeview">
                  <li class="nav-item">
                     <a href="<?=base_url();?>users" class="nav-link <?php echo activate_menu('users'); ?> <?php echo activate_menu('edituser'); ?>">
                        <i class="fas fa-cosg icon nav-icon"></i>
                        <p>User Management</p>
                     </a>
                  </li>
                  <li class="nav-item" style="display:none;">
                     <a href="<?=base_url();?>users/adduser" class="nav-link <?php echo activate_menu('adduser'); ?>">
                        <i class="nav-icon fas faa-plus"></i>
                        <p>Add User</p>
                     </a>
                  </li>
               </ul>
            </li>
            <?php }?>
  
       
            <li class="nav-item" style="display:none;">
               <a href="<?=base_url();?>Paychecks" class="nav-link">
                  <i class="nav-icon fa fa-credit-card"></i>
                  <!--
                  <p>
                     Paychecks
                  </p>
               -->
                  <p>Income & Expenses</p>
               </a>
            </li>
            
            <li style="display:none;" class="nav-item  has-treeview <?php echo ((activate_menu('rent')) == 'active') ? 'menu-open' : '' ?> <?php echo ((activate_menu('addrent')) == 'active') ? 'menu-open' : '' ?> <?php echo ((activate_menu('editrent')) == 'active') ? 'menu-open' : '' ?>">
               <a href="#" class="nav-link <?php echo activate_menu('rent'); ?> <?php echo activate_menu('editrent'); ?><?php echo activate_menu('addrent'); ?>">
                  <i class="nav-icon fa fa-car"></i>
                  <p>
                     Rent
                     <i class="right fas fa-angle-left"></i>
                  </p>
               </a>
               <ul class="nav nav-treeview">
                  <li class="nav-item">
                     <a href="<?=base_url();?>rent" class="nav-link <?php echo activate_menu('rent'); ?> <?php echo activate_menu('editrent'); ?>">
                        <i class="fas fa-cosg icon nav-icon"></i>
                        <p>Rent Request Management</p>
                     </a>
                  </li>
                  <li class="nav-item">
                     <a href="<?=base_url();?>rent/addrent" class="nav-link <?php echo activate_menu('addrent'); ?>">
                        <i class="nav-icon fas faa-plus"></i>
                        <p>Add Rent Request</p>
                     </a>
                  </li>
                    <li class="nav-item">
                     <a href="<?=base_url();?>rent/rentrequest" class="nav-link <?php echo activate_menu('rentrequest'); ?>">
                        <i class="nav-icon fas faa-plus"></i>
                        <p>Rent Request From App</p>
                     </a>
                  </li>
               </ul>
            </li>
            <li style="display:none;" class="nav-item">
               <a href="<?=base_url();?>dispute" class="nav-link">
                  <i class="nav-icon fa fa-asterisk"></i>
                  <p>
                     Dispute
                  </p>
               </a>
            </li>
              <li style="display:none;" class="nav-item">
               <a href="<?=base_url();?>promotion" class="nav-link">
                  <i class="nav-icon fa fa-bell"></i>
                  <p>
                     Promotion
                  </p>
               </a>
            </li>
             <li style="display:none;" class="nav-item">
               <a href="<?=base_url();?>paydrivers" class="nav-link">
                  <i class="nav-icon fa fa-credit-card"></i>
                  <p>
                     Pay Drivers
                  </p>
               </a>
            </li>
            
             <li class="nav-item">
               <a href="<?=base_url();?>Chat" class="nav-link">
                  <i class="nav-icon fa fa-comment"></i>
                  <p>
                     Chat
                  </p>
               </a>
            </li>
            
            <li class="nav-item">
               <a href="<?=base_url();?>resetpassword" class="nav-link <?php echo activate_menu('resetpassword'); ?>">
                  <i class="nav-icon fa fa-key"></i>
                  <p>
                     Change Password
                  </p>
               </a>
            </li>
         </ul>
      </nav>
   </div>
</aside>
<div class="content-wrapper pb-2 mb-0">
