<!-- Left side column. contains the logo and sidebar -->
    <aside class="main-sidebar">
        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">
            <!-- sidebar menu: : style can be found in sidebar.less -->
            <ul class="sidebar-menu" data-widget="tree">       
    	       <li class="<?php if(!empty($active) && $active=="dashboard"){echo "active";} ?>"><a href="<?php echo base_url('dashboard'); ?>"><i class="fa fa-dashboard"></i> <span>Dashboard</span></a></li>
    	       <?php if(isset($_SESSION['USERS_DATA']) && !empty($_SESSION['USERS_DATA']) && ($_SESSION['USERS_DATA']['userType']==1)){ ?>
    	       <li class="<?php if(!empty($active) && $active=="customers"){echo "active";} ?>"><a href="<?php echo base_url('user'); ?>"><i class="fa fa-users" aria-hidden="true"></i><span>Customers</span></a></li>
    	       <li class="<?php if(!empty($active) && $active=="Wholesaler"){echo "active";} ?>"><a href="<?php echo base_url('user/wholesaler'); ?>"><i class="fa fa-snowflake-o" aria-hidden="true"></i><span>Wholesalers</span></a></li>
    	       <li class="<?php if(!empty($active) && $active=="Categories"){echo "active";} ?>"><a href="<?php echo base_url('dashboard/category'); ?>"><i class="fa fa-cutlery" aria-hidden="true"></i><span>Item Categories</span></a></li>
    	       <li class="<?php if(!empty($active) && $active=="ItemUnit"){echo "active";} ?>"><a href="<?php echo base_url('dashboard/item_unit'); ?>"><i class="fa fa-fire" aria-hidden="true"></i><span>Item Unit</span></a></li>
    	       <?php 
    	       }
    	       ?>
	           <li class="<?php if(!empty($active) && $active=="Items"){echo "active";} ?>"><a href="<?php echo base_url('dashboard/items_master/'); ?>"><i class="fa fa-archive"></i> <span>Items</span></a></li>
    	       <li class="<?php if(!empty($active) && $active=="orders_history"){echo "active";} ?>"><a href="<?php echo base_url('directsales/orders_history'); ?>"><i class="fa fa-pencil-square-o" aria-hidden="true"></i><span>New Orders</span></a></li>
    	       <li class="<?php if(!empty($active) && $active=="delivered_orders"){echo "active";} ?>"><a href="<?php echo base_url('directsales/delivered_orders'); ?>"><i class="fa fa-shopping-cart"></i><span>Delivered Orders</span></a></li>
    	       <li class="<?php if(!empty($active) && $active=="cancelled_orders"){echo "active";} ?>"><a href="<?php echo base_url('directsales/cancelled_orders'); ?>"><i class="fa fa-window-close"></i><span>Cancelled Orders</span></a></li>
               <?php if(isset($_SESSION['USERS_DATA']) && !empty($_SESSION['USERS_DATA']) && ($_SESSION['USERS_DATA']['userType']==1)){ ?>
               <li class="treeview"><a href="#"><i class="fa fa-cog" aria-hidden="true"></i><span>Settings</span></a>
               <ul class="treeview-menu">
                   <li class="<?php if(!empty($active) && $active=="general_setting"){echo "active";} ?>"><a href="<?php echo base_url('admin/general_setting'); ?>"><span>General Option</span></a>
                   </li>
                   <li class="<?php if(!empty($active) && $active=="language_option"){echo "active";} ?>"><a href="<?php echo base_url('admin/language_option'); ?>"><span>Language Option</span></a>
                   </li>
               </ul>       
               </li>
               <?php 
    	       }else{
    	       ?>
    	       <li class="<?php if(!empty($active) && $active=="payment_notification"){echo "active";} ?>"><a href="<?php echo base_url('admin/payment_notification'); ?>"><i class="fa fa-credit-card" aria-hidden="true"></i><span>Payment Notification</span></a></li>
               <?php 
    	       } ?>
    	       
    	       
          </ul>
        </section>
        <!-- /.sidebar -->
    </aside>