<?php  

		if(is_logged_in()){
			
		}else {
			redirect(base_url(),'refresh');
			exit();
		}
//print_r($this->session->all_userdata()); 




$rand_txt = substr(str_shuffle(str_repeat("0123456789abcdefghijklmnopqrstuvwxyz", 5)), 0, 5);


$Common_Model = new Common_Model();
$usr_permtn_pubvr = $Common_Model->is_avalable_for_use_this_link_for_user($this->session->userdata('ss_group_id'),'users');
	//echo "<pre>";
//echo print_r($usr_permtn_pubvr);	
				
?>
				<div class="main-navigation navbar-collapse collapse">
              
					<!-- start: MAIN MENU TOGGLER BUTTON -->
  <div class="navigation-toggler">
						<i class="clip-chevron-left"></i>
						<i class="clip-chevron-right"></i>
					</div>
					<!-- end: MAIN MENU TOGGLER BUTTON -->
					<!-- start: MAIN NAVIGATION MENU -->
					<ul class="main-navigation-menu">
						<li <?php if($main_menu_name=='dashboard') {echo 'class="active open"';} ?>>
							<a href="<?php echo base_url('dashboard'); ?>"><i class="clip-home-3"></i>
								<span class="title"> Dashboard </span><span class="selected"></span>
							</a>
						</li>
						
						 <?php 
						if ($this->session->userdata('ss_group_id')==1 || $this->session->userdata('ss_group_id')==4 || $this->session->userdata('ss_group_id')==6 || $this->session->userdata('ss_group_id')==9 || $this->session->userdata('ss_group_id')==10 || $this->session->userdata('ss_group_id')==8 || $this->session->userdata('ss_group_id')==11 || $this->session->userdata('ss_group_id')==2)
						{ ?>
                         <?php
						 // if ($this->session->userdata('ss_group_id')!=3)
						 { ?>
						 
						   <?php if ($this->session->userdata('ss_group_id')==1 ||  $this->session->userdata('ss_group_id')==9 ||  $this->session->userdata('ss_group_id')==8){ ?>   
						   
						   
						   <?php } ?>
						<li <?php if($main_menu_name=='reports') {echo 'class="active open"';} ?>>
							<a href="javascript:void(0)"><i class="clip-bars"></i>
								<span class="title">Reports</span><i class="icon-arrow"></i>
								<span class="selected"></span>
							</a>
							<ul class="sub-menu">
							    <!-- Start Stock Report -->
							    <li style="background-color:#ddd">
									<a href="#">
										<span class="title"> Stock Report</span></a></li>
										
										<li <?php if($sub_menu_name=='products') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/products'); ?>">
										<span class="title"> Products Report</span>
									</a>
								
								</li>
								
								<?php if ($this->session->userdata('ss_group_id')==1 || $this->session->userdata('ss_group_id')==9 || $this->session->userdata('ss_group_id')==8) { ?>
									<li <?php if($sub_menu_name=='warehouse_wise_product_summary') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/warehouse_wise_product_summary'); ?>">
										<span class="title"> Warehouse wise Product Summary</span>
									</a>
								
								</li>
								<?php } ?>
								<!-- 
								<li <?php if($sub_menu_name=='products_sm') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/products_sm'); ?>">
										<span class="title">  Stock Movement Report</span>
									</a>
								
								</li>
								-->
								<!-- 
								<li <?php if($sub_menu_name=='dynamic_stock_report') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/dynamic_stock_report'); ?>">
										<span class="title">Dynamic Stock Report</span>
									</a>
								
								</li>
									-->	
									
										
										 <li <?php if($sub_menu_name=='transfer_items') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/transfer_items'); ?>">
										<span class="title"> Transfer Items</span></a></li>
										
										
											<?php if ($this->session->userdata('ss_group_id')==1 || $this->session->userdata('ss_group_id')==9) { ?>
											<li <?php if($sub_menu_name=='fast_slow_movement_report') {echo 'class="active open"';} ?>>
<a href="<?php echo base_url('reports/fast_slow_movement_report'); ?>">
<span class="title">Fast/Slow Movement Report</span>
</a>
</li>
<?php } ?>
										
											<!-- End Stock Report -->
											
											<!-- Strat Financial  Report -->
										 <li style="background-color:#ddd">
									<a href="#">
										<span class="title"> Financial  Report</span></a></li>
										
										
											<?php 
if ($this->session->userdata('ss_group_id')==11)
{ ?>
<li <?php if($sub_menu_name=='department_wise_gross_profit_filter_report') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/department_wise_gross_profit_filter_report'); ?>">
										<span class="title">Department Wise Gross Profit with Filter Report</span>
									</a>
								
								</li>

	
								
								<li <?php if($sub_menu_name=='department_wise_gross_profit_filter_report') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/rep_wise_sales_summary_report'); ?>">
										<span class="title">Rep Wise Sales Summary Report</span>
									</a>
								
								</li>
								
								<?php } ?>
										
										
										<!-- End Financial  Report -->
                            
                            
                                  <?php  ?>
                                  
   <?php if ($this->session->userdata('ss_group_id')==1 ||  $this->session->userdata('ss_group_id')==9 ||  $this->session->userdata('ss_group_id')==8){ ?>                         
                            
                            <li <?php if($sub_menu_name=='sales_rep') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/sales_rep'); ?>">
										<span class="title"> Sales Rep. Sales Summary</span>
									</a>
								</li>
								
								<li <?php if($sub_menu_name=='sales_rep_jobs') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/sales_rep_jobs'); ?>">
										<span class="title"> Technician Summary Report</span>
									</a>
								</li>
								
								 <li <?php if($sub_menu_name=='sales_assistant_wise_sales_summary') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/sales_assistant_wise_sales_summary'); ?>">
										<span class="title"> Sales Assistant wise Sales Summary</span>
									</a>
								</li>
								
									<li <?php if($sub_menu_name=='sales_assistant_wise_sales_item_summary') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/sales_assistant_wise_sales_item_summary'); ?>">
										<span class="title"> Sales Assistant wise Sales Items Summary</span>
									</a>
								
								</li>
								
								<li <?php if($sub_menu_name=='rep_member_wise_invoice_details') {echo 'class="active open"';} ?>>
<a href="<?php echo base_url('reports/rep_member_wise_invoice_details'); ?>">
<span class="title">Member wise Invoice Details</span>
</a>
</li>



                                <?php }?>
                                
                                 <?php 
						if ($this->session->userdata('ss_group_id')==1 || $this->session->userdata('ss_group_id')==1)
						{ ?>  
                                <li <?php if($sub_menu_name=='sales_rep_comm') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/sales_rep_comm'); ?>">
										<span class="title"> Sales Rep. Commission</span>
									</a>
								</li>
                                  <?php }?>
                                  
                                   <?php if ($this->session->userdata('ss_group_id')==1 || $this->session->userdata('ss_group_id')==9){ ?>  
                                   
                                   <!-- 
                                 <li <?php if($sub_menu_name=='customer_receivable') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/customer_receivable'); ?>">
										<span class="title"> Customer Receivable</span>
									</a>
								</li>
								-->
  
    <!--                             
<li <?php if($sub_menu_name=='customer_balance') {echo 'class="active open"';} ?>>
<a href="<?php echo base_url('reports/customer_balance'); ?>">
<span class="title">Customer Balance <?php if(date('Y/m/d 00:00:00') < '2018/04/6 23:59:59') echo '<span class="badge">new</span>' ?></span>
</a>
</li>
-->

<!-- 
<li <?php if($sub_menu_name=='customer_summery_balance') {echo 'class="active open"';} ?>>
<a href="<?php echo base_url('reports/customer_balance_summery'); ?>">
<span class="title">Customer Balance Summery</span>
</a>
</li>
-->

<li <?php if($sub_menu_name=='rep_cus_balance_sum') {echo 'class="active open"';} ?>>
<a href="<?php echo base_url('reports/rep_cus_balance_sum'); ?>">
<span class="title">Customer Balance Summary</span>
</a>
</li>




<li <?php if($sub_menu_name=='credit_card_report') {echo 'class="active open"';} ?>> <a href="<?php echo base_url('reports/credit_card_report'); ?>"> <span class="title">Credit Card Report</span> </a> </li>


<li <?php if($sub_menu_name=='supplier_payment_report') {echo 'class="active open"';} ?>> <a href="<?php echo base_url('reports/supplier_payment_report'); ?>"> <span class="title">Supplier Payment Report</span> </a> </li>


  <li <?php if($sub_menu_name=='cheque') {echo 'class="active open"';} ?>> <a href="<?php echo base_url('reports/cheque'); ?>"> <span class="title">Cheque Report</span> </a> </li>
  <li <?php if($sub_menu_name=='cheque_summary') {echo 'class="active open"';} ?>> <a href="<?php echo base_url('reports/cheque_summary'); ?>"> <span class="title">Bank Summary Report</span> </a> </li>
        <li <?php if($sub_menu_name=='unrealized_cheque') {echo 'class="active open"';} ?>> <a href="<?php echo base_url('reports/unrealized_cheque'); ?>"> <span class="title">Unrealized Cheque Report</span> </a> </li>
        <li <?php if($sub_menu_name=='return_cheque') {echo 'class="active open"';} ?>> <a href="<?php echo base_url('reports/return_cheque'); ?>"> <span class="title">Return Cheque Report</span> </a> </li>
                                <?php }?>
                                 <!-- <li <?php if($sub_menu_name=='balance_sheet') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('balance_sheet'); ?>">
										<span class="title">  Balance Sheet</span>
									</a>
								</li>-->
                                 <?php 
						if ($this->session->userdata('ss_group_id')==1)
						{ ?>  
						<!-- 
                                <li <?php if($sub_menu_name=='trial_balance') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('trial_balance'); ?>">
										<span class="title"> Trial Balance</span>
									</a>
								</li> -->
                                 <?php }?>
                                 <!--<li <?php if($sub_menu_name=='customer_summery_balance') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/customer_balance_summery'); ?>">
										<span class="title">Customer Balance Summery</span>
									</a>
								</li>-->
								
								
								
                                
                                 <?php if ($this->session->userdata('ss_group_id')==1 || $this->session->userdata('ss_group_id')==11){ ?>  
                            <li <?php if($sub_menu_name=='daily_sales') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/daily_sales'); ?>">
										<span class="title"> Daily Sales Report</span>
									</a>
								</li>
                                <?php }?>
                                 <?php if ($this->session->userdata('ss_group_id')==1){ ?>  
                            	<!--<li <?php if($sub_menu_name=='sales') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/sales'); ?>">
										<span class="title"> Sales Report</span>
									</a>
								</li>-->
                                <?php }?>
                                <!-- <li <?php if($sub_menu_name=='reports/payments') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/payments'); ?>">
										<span class="title"> Cash Report</span>
									</a>
								</li>-->
                                <?php 
                                
					//	if ($this->session->userdata('ss_group_id')==1 || $this->session->userdata('ss_group_id')==4 || $this->session->userdata('ss_group_id')==6 || $this->session->userdata('ss_group_id')==9 || $this->session->userdata('ss_group_id')==10)
						
						if ($this->session->userdata('ss_group_id')==1 || $this->session->userdata('ss_group_id')==9 || $this->session->userdata('ss_group_id')==6 || $this->session->userdata('ss_group_id')==11)
						{ ?>
                                 <li <?php if($sub_menu_name=='reports/cash_report') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/cash_report'); ?>">
										<span class="title"> Cash Report</span>
									</a>
								</li>
                            <?php }?>    
								<!--<li <?php if($sub_menu_name=='suppliers') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/suppliers'); ?>">
										<span class="title"> Suppliers Report</span>
									</a>
								</li>-->
                                <?php 
						if ($this->session->userdata('ss_group_id')==1 || $this->session->userdata('ss_group_id')==2 || $this->session->userdata('ss_group_id')==9 || $this->session->userdata('ss_group_id')==10)
						{ ?>
								 <li <?php if($sub_menu_name=='grn') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/grn'); ?>">
										<span class="title"> GRN Report</span>
									</a>
								</li>
                                 <?php }?> 
                                 
                                 
                                 <?php if ($this->session->userdata('ss_group_id')==1  || $this->session->userdata('ss_group_id')==6  || $this->session->userdata('ss_group_id')==2 ||  $this->session->userdata('ss_group_id')==9 || $this->session->userdata('ss_group_id')==10 || $this->session->userdata('ss_group_id')==8){ ?>
                                 
                                 	<li <?php if($sub_menu_name=='products_iw_v3') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/products_iw_v3'); ?>">
										<span class="title"> Products Cost V3 Report</span>
									</a>
								
								</li>
                                 
                                 <?php } ?>
                                 
                                  <?php if ($this->session->userdata('ss_group_id')==1  || $this->session->userdata('ss_group_id')==6  || $this->session->userdata('ss_group_id')==2 ||  $this->session->userdata('ss_group_id')==9 || $this->session->userdata('ss_group_id')==11){ ?>      
                               <!-- 
                               	<li <?php if($sub_menu_name=='products_iw') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/products_iw'); ?>">
										<span class="title"> Products Cost Report</span>
									</a>
								
								</li>
								
								-->
								<!-- 
								<li <?php if($sub_menu_name=='products_iw_v2') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/products_iw_v2'); ?>">
										<span class="title"> Products Cost V2 Report</span>
									</a>
								
								</li>
								
								-->
								
								
								<?php if ($this->session->userdata('ss_group_id')==1){ ?>
								<li <?php if($sub_menu_name=='dep_wise_pro_cost_summ') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/dep_wise_pro_cost_summ'); ?>">
										<span class="title">  Department  Wise Products Cost Summary Report</span>
									</a>
								
								</li>
								<?php } ?>
                               
                               
                                
								
								                               
   <?php if ($this->session->userdata('ss_group_id')==9 || $this->session->userdata('ss_group_id')==1){ ?>
    <li <?php if($sub_menu_name=='physical_verifcation') {echo 'class="active open"';} ?>> <a href="javascript:void(0)"></i> <span class="title"> Verification Report </span><i class="icon-arrow"></i> <span class="selected"></span> </a>
      <ul class="sub-menu">
        <!--<li <?php if($sub_menu_name=='physical_verifcation') {echo 'class="active open"';} ?>> <a href="<?php echo base_url('sms'); ?>"> <span class="title"> List SMS </span> </a> </li>-->
        <li <?php if($sub_menu_name=='') {echo 'class="active open"';} ?>> <a href="<?php echo base_url('physical_verifcation'); ?>"> <span class="title"> Physical Verifcation List</span> </a> </li>
        
        <!-- 
        <li <?php if($sub_menu_name=='') {echo 'class="active open"';} ?>> <a href="<?php echo base_url('physical_verifcation/manage'); ?>"> <span class="title"> Add Physical Verifcation </span> </a> </li>
        -->
        
         <li <?php if($sub_menu_name=='') {echo 'class="active open"';} ?>> <a href="<?php echo base_url('physical_verifcation/stock_reconcilation_report'); ?>"> <span class="title"> Stock Reconcilation Report </span> </a> </li>
         
          <li <?php if($sub_menu_name=='stock_reconcilation_with_dep_report') {echo 'class="active open"';} ?>> <a href="<?php echo base_url('physical_verifcation/stock_reconcilation_with_dep_report'); ?>"> <span class="title"> Stock Reconcilation with Department Report </span> </a> </li>
        
      </ul>
    </li>
    <?php }?>
    
    <?php if ($this->session->userdata('ss_group_id')==1){ ?>
								
									<li <?php if($sub_menu_name=='products_supp') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/products_supp'); ?>">
										<span class="title"> Supplier Products Report</span>
									</a>
								
								</li> <?php } ?>
								
								<?php if ($this->session->userdata('ss_group_id')==1){ ?>
								
								<li <?php if($sub_menu_name=='products_sales_supp') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/products_sales_supp'); ?>">
										<span class="title"> Supplier / Dep. Sales Stock Report</span>
									</a>
								
								</li>
								
								<?php } ?>
								
								<?php if ($this->session->userdata('ss_group_id')==1){ ?>
									<li <?php if($sub_menu_name=='products_purchase_supp') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/products_purchase_supp'); ?>">
										<span class="title"> Supplier / Dep. Purchase Stock Report</span>
									</a>
								
								</li>
								
								<?php } ?>
								
								<?php 
if ($this->session->userdata('ss_group_id')==1 || $this->session->userdata('ss_group_id')==9)
{ ?>


	<?php 
if ($this->session->userdata('ss_group_id')==1)
{ ?>
								<li <?php if($sub_menu_name=='department_wise_gross_profit_report') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/department_wise_gross_profit_report'); ?>">
										<span class="title">Department Wise Gross Profit Report</span>
									</a>
								
								</li>
								<?php } ?>
								
									<?php 
if ($this->session->userdata('ss_group_id')==1)
{ ?>
								
								<li <?php if($sub_menu_name=='department_wise_gross_profit_filter_report') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/department_wise_gross_profit_filter_report'); ?>">
										<span class="title">Department Wise Gross Profit with Filter Report</span>
									</a>
								
								</li>
								<?php } ?>
								
									<?php 
if ($this->session->userdata('ss_group_id')==1 || $this->session->userdata('ss_group_id')==9)
{ ?>
								
								<li <?php if($sub_menu_name=='department_wise_gross_profit_filter_report') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/rep_wise_sales_summary_report'); ?>">
										<span class="title">Rep Wise Sales Summary Report</span>
									</a>
								
								</li>
								
								<?php } ?>
								
									<?php 
if ($this->session->userdata('ss_group_id')==1 || $this->session->userdata('ss_group_id')==9)
{ ?>
								
									<li <?php if($sub_menu_name=='sales_assistant_wise_department_sales_summary') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/sales_assistant_wise_department_sales_summary'); ?>">
										<span class="title">Sales Assistant   Wise Department Sales Summary</span>
									</a>
								
								</li>
								<?php } ?>
								
									<?php 
if ($this->session->userdata('ss_group_id')==1 || $this->session->userdata('ss_group_id')==9)
{ ?>
								
								<li <?php if($sub_menu_name=='supplier_balance') {echo 'class="active open"';} ?>> <a href="<?php echo base_url('reports/supplier_balance'); ?>"> <span class="title">Supplier Account Payable Report</span> </a> </li>
								<?php } ?>
								
									<?php 
if ($this->session->userdata('ss_group_id')==1)
{ ?>
								
								<li <?php if($sub_menu_name=='supplier_wise_gross_profit_report') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/supplier_wise_gross_profit_report'); ?>">
										<span class="title">Supplier Wise Gross Profit Report</span>
									</a>
								
								</li>
								<?php } ?>
								<?php } ?>
								<!--
								
								<li <?php if($sub_menu_name=='supplier_wise_gross_profit_report') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/supplier_wise_gross_profit_report'); ?>">
										<span class="title">Supplier Wise Gross Profit Report</span>
									</a>
								
								</li>
								-->
								
								
								
                                <!-- 
                                 <li <?php if($sub_menu_name=='item_avalable') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/item_avalable'); ?>">
										<span class="title"> Item Avalable Report</span>
									</a>
								
								</li>
                                -->
                               


<!-- 
<li <?php if($sub_menu_name=='stock_book_2') {echo 'class="active open"';} ?>>
<a href="<?php echo base_url('reports/stock_book_2'); ?>">
<span class="title">Stock Book</span> </a>
</li>
-->

<!--<li <?php if($sub_menu_name_1=='stock_book') {echo 'class="active open"';} ?>>
<a href="<?php echo base_url('reports/stock_book'); ?>">
<span class="title">Stock Book</span> </a>
</li>-->


<!--<li <?php if($sub_menu_name_1=='total_product_quantity_report') {echo 'class="active open"';} ?>>
<a href="<?php echo base_url('reports/total_product_quantity_report'); ?>">
<span class="title">Total Product Quantity</span> </a>
</li>-->


                                <?php }?>
                                
                                <?php if ($this->session->userdata('ss_group_id')==1 ){ ?>      
                                <!-- 
                                 <li <?php //if($sub_menu_name_1=='collection') {echo 'class="active open"';} ?>>
<a href="<?php echo base_url('reports/stock_movement'); ?>">
<span class="title">Stock Movement</span> </a></li>
-->
<?php }?>
                                
                             
   
   
    <!-- start: sms-->
    <?php if ($this->session->userdata('ss_group_id')==1){ ?>
    <li <?php if($main_menu_name=='purchases') {echo 'class="active open"';} ?>> <a href="javascript:void(0)"><i class="fa fa-mobile"></i> <span class="title"> SMS </span><i class="icon-arrow"></i> <span class="selected"></span> </a>
      <ul class="sub-menu">
        <!--<li <?php if($sub_menu_name=='list_purchases') {echo 'class="active open"';} ?>> <a href="<?php echo base_url('sms'); ?>"> <span class="title"> List SMS </span> </a> </li>-->
        <!-- 
        <li <?php if($sub_menu_name=='add_purchases') {echo 'class="active open"';} ?>> <a href="<?php echo base_url('sms'); ?>"> <span class="title"> Send SMS </span> </a> </li> -->
      </ul>
    </li>
    <?php }?>
     <!-- end: sms-->   
     
                                
                              <!--  <li <?php if($sub_menu_name=='products_quantity') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/products_quantity'); ?>">
										<span class="title"> Products Quantity Report</span>
									</a>
								
								</li>-->
                               <!-- <li <?php if($sub_menu_name=='supplier_products') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/supplier_products'); ?>">
										<span class="title"> Supplier Products Report</span>
									</a>
								
								</li>-->
                                 <?php if ($this->session->userdata('ss_group_id')==1){ ?>  
                                 <!-- 
                                 <li <?php if($sub_menu_name=='print_product_code') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/print_product_code'); ?>">
										<span class="title"> Products Code Print</span>
									</a>
								
								</li> -->
                                <?php }?>
                                  <?php 
						if ($this->session->userdata('ss_group_id')==1)
						{ ?>
								 <li <?php if($sub_menu_name=='user_activitie') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/user_activitie'); ?>">
										<span class="title"> User Activitie</span>
									</a>
								</li>
                                 <?php 
						
						} ?>
                               <!-- <li <?php if($sub_menu_name=='user_activitie') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/alert_quantity'); ?>">
										<span class="title"> Alert Quantity</span>
									</a>
								</li>-->
							</ul>
						</li> <?php } }?>
						
						
						
						    <?php if ($this->session->userdata('ss_group_id')==1 || $this->session->userdata('ss_group_id')==6 ||  $this->session->userdata('ss_group_id')==9 ||  $this->session->userdata('ss_group_id')==8 || $this->session->userdata('ss_group_id')==7){ ?>  
                         <!--Enquiry-->
 
                         
<li <?php if($sub_menu_name=='enquiry_reports') {echo 'class="active open"';} ?>>

<a href="javascript:void(0)"></i>

<span class="title">Enquiry</span><i class="icon-arrow"></i>

<span class="selected"></span> </a>

<ul class="sub-menu">
<!--<li <?php //if($sub_menu_name_1=='collection') {echo 'class="active open"';} ?>>
<a href="<?php echo base_url('reports/card_enquiry_reports'); ?>">
<span class="title">Card Enquiry</span> </a>
</li>-->

 <?php if ($this->session->userdata('ss_group_id')==1 || $this->session->userdata('ss_group_id')==6 ||  $this->session->userdata('ss_group_id')==9 ||  $this->session->userdata('ss_group_id')==8 || $this->session->userdata('ss_group_id')==7){ ?>  
<li <?php //if($sub_menu_name_1=='collection') {echo 'class="active open"';} ?>>
<a href="<?php echo base_url('reports/product_enquiry_reports'); ?>">
<span class="title">Product Enquiry</span> </a>
</li>
<?php }?>

<!--<li <?php //if($sub_menu_name_1=='collection') {echo 'class="active open"';} ?>>
<a href="<?php echo base_url('reports/customer_enquiry_reports'); ?>">
<span class="title">Customer Enquiry</span> </a>
</li>-->

</ul><!--End Enquiry-->   
<?php } ?> 

						
                         <?php 
						if ($this->session->userdata('ss_group_id')==1 || $this->session->userdata('ss_group_id')==4 || $this->session->userdata('ss_group_id')==6 ||  $this->session->userdata('ss_group_id')==9)
						{ ?>
                        <li <?php if($main_menu_name=='alert_quantity') {echo 'class="active open"';} ?> style="background-color:#f0ad4e !important;">
							<a href="<?php echo base_url('reports/alert_quantity'); ?>"><i class="fa fa-minus-square-o"></i>
								<span class="title"> Alert Quantity </span><span class="selected"></span>
							</a>
						</li>
                        <?php } ?>
                        
                        <?php 
						if ($this->session->userdata('ss_group_id')==1 || $this->session->userdata('ss_group_id')==2 || $this->session->userdata('ss_group_id')==6 || $this->session->userdata('ss_group_id')==9 )
						{ ?>
                        <li <?php if($sub_menu_name=='add_sales') {echo 'class="active open"';} ?>>
							<a href="<?php echo base_url('sales/add'); ?>"><i class="fa clip-cart"></i>
								<span class="title">POS</span><span class="selected"></span>
							</a>
						</li>
						 <?php } ?>
                        
                        <!--fa fa-minus-square-o-->
                        
                        	<?php 
						if ($this->session->userdata('ss_group_id')!=5)
						{ ?>
                        <li <?php if($main_menu_name=='products') {echo 'class="active open"';} ?>>
							<a href="javascript:void(0)"><i class="fa fa-barcode"></i>
								<span class="title"> Products </span><i class="icon-arrow"></i>
								<span class="selected"></span>
							</a>
							<ul class="sub-menu">
                            <?php 
							//if($usr_permtn_pubvr['usrgp_permission_view'])
							{
							?>
							<?php 
						//if ($this->session->userdata('ss_group_id')!=8)
						{ ?>
								<li <?php if($sub_menu_name=='products') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('products'); ?>">
										<span class="title"> List Products</span></a></li>
										<?php } ?>
                                <?php }?>
                                <?php if ($this->session->userdata('ss_group_id')==1 || $this->session->userdata('ss_group_id')==2 || $this->session->userdata('ss_group_id')==3 || $this->session->userdata('ss_group_id')==6 ||  $this->session->userdata('ss_group_id')==9 ||  $this->session->userdata('ss_group_id')==8){ ?>
                                <?php if ($this->session->userdata('ss_group_id')==1 || $this->session->userdata('ss_group_id')==6 ||  $this->session->userdata('ss_group_id')==9 ||  $this->session->userdata('ss_group_id')==8){ ?>
								<li <?php if($sub_menu_name=='add_products') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('products/add'); ?>">
									<span class="title"> Add Products</span></a></li> <?php }?>
                                    <?php }?>
							</ul>
						</li>
						
						<?php } ?>
                         <?php if ($this->session->userdata('ss_group_id')==1 || $this->session->userdata('ss_group_id')==2 || $this->session->userdata('ss_group_id')==3 || $this->session->userdata('ss_group_id')==4 || $this->session->userdata('ss_group_id')==6 ||  $this->session->userdata('ss_group_id')==9 || $this->session->userdata('ss_group_id')==10 || $this->session->userdata('ss_group_id')==1|| $this->session->userdata('ss_group_id')==8 || $this->session->userdata('ss_group_id')==5){ ?>
                        <li <?php if($main_menu_name=='sales') {echo 'class="active open"';} ?>>
							<a href="javascript:void(0)"><i class="fa clip-list-2"></i>
								<span class="title"> Sales </span><i class="icon-arrow"></i>
								<span class="selected"></span>
							</a>
							<ul class="sub-menu">
							    <?php if ($this->session->userdata('ss_group_id')!=5) { ?>
								<li <?php if($sub_menu_name=='sales') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('sales'); ?>">
										<span class="title"> List Sales</span></a></li>
								<li <?php if($sub_menu_name=='add_sales') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('sales/add'); ?>">
										<span class="title"> Add Sales</span></a></li>
                                        <li <?php if($sub_menu_name=='sales_return') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('sales/sales_return'); ?>">
                                    <span class="title"> List Return Sales</span></a></li>
                                    <?php } ?>
                                    <?php if ($this->session->userdata('ss_group_id')==1 || $this->session->userdata('ss_group_id')==2 || $this->session->userdata('ss_group_id')==3 || $this->session->userdata('ss_group_id')==6 ||  $this->session->userdata('ss_group_id')==9 ||  $this->session->userdata('ss_group_id')==8 ||  $this->session->userdata('ss_group_id')==5){ ?>
                                    
                                    <?php if ($this->session->userdata('ss_group_id')!=5){ ?>
                                <li <?php if($sub_menu_name=='sale_items') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('sales/sale_items'); ?>">
										<span class="title"> List Sale Items</span></a></li>
										<?php } ?>
										
										
										<li <?php if($sub_menu_name=='day_sale_summary') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('sales/day_sale_summary'); ?>">
										<span class="title"> Daily  Sales Summary</span></a></li>
                                  <?php } ?>
							</ul>
						</li>
                       <?php }?> 
                       
                        <?php if ($this->session->userdata('ss_group_id')==1 )
						{ ?>
						
		<!-- 				
    <li <?php if($main_menu_name=='sale_multiple_payment') {echo 'class="active open"';} ?>> <a href="javascript:void(0)"><i class="fa fa-money"></i> <span class="title"> Multiple Payments </span><i class="icon-arrow"></i> <span class="selected"></span> </a>
      <ul class="sub-menu">
        <li <?php if($sub_menu_name=='sale_multiple_payment_list') {echo 'class="active open"';} ?>> <a href="<?php echo base_url('sale_multiple_payment'); ?>"> <span class="title"> List Multiple Payment</span></a></li>
        <li <?php if($sub_menu_name=='sale_multiple_payment_add') {echo 'class="active open"';} ?>> <a href="<?php echo base_url('sale_multiple_payment/manage/0'); ?>"> <span class="title"> Add Multiple Payment</span></a></li>
      </ul>
    </li>
    -->
    <?php } ?>
    
    <?php if ($this->session->userdata('ss_group_id')==1 || $this->session->userdata('ss_group_id')==9){ ?>
    <li <?php if($main_menu_name=='supplier_multiple_payment') {echo 'class="active open"';} ?>> <a href="javascript:void(0)"><i class="fa fa-money"></i> <span class="title">Supplier Mult. Payments </span><i class="icon-arrow"></i> <span class="selected"></span> </a>
      <ul class="sub-menu">
        <li <?php if($sub_menu_name=='supplier_multiple_payment') {echo 'class="active open"';} ?>> <a href="<?php echo base_url('multiple_payments/supplier/list'); ?>"> <span class="title"> List Supplier Payment</span></a></li>
        <li <?php if($sub_menu_name=='supplier_multiple_payment_add') {echo 'class="active open"';} ?>> <a href="<?php echo base_url('multiple_payments/supplier/add'); ?>"> <span class="title"> Add Supplier Payment</span></a></li>
        
        <li <?php if($sub_menu_name=='cheque_process') {echo 'class="active open"';} ?>> <a href="<?php echo base_url('cheque_process'); ?>">  <span class="title"> Print Cheque </span></a> </li>
        
      </ul>
    </li>
    <?php } ?>
    
                       <!-- <li <?php if($main_menu_name=='pricing') {echo 'class="active open"';} ?>>
							<a href="javascript:void(0)"><i class="fa fa-group"></i>
								<span class="title"> Group Pricing </span><i class="icon-arrow"></i>
								<span class="selected"></span>
							</a>
							<ul class="sub-menu">
								<li <?php if($sub_menu_name=='pricing') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('cus_pricing'); ?>">
										<span class="title">List Groups</span></a></li>
								<li <?php if($sub_menu_name=='add_cus_pricing') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('cus_pricing/add_pricing'); ?>">
										<span class="title">Add Products</span></a></li>
                                       <?php /*?> <li <?php if($sub_menu_name=='sales_return') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('sales/sales_return'); ?>">
                                    <span class="title"> List Return Sales</span></a></li><?php */?>
                                    <li style="display:none">
									<a href="#" data-toggle="modal" id="modal_ajax_group_btn">
										<span class="title">Add Group</span>
									</a>
								</li>
							</ul>
						</li>-->
                        <?php
                        //if ($this->session->userdata('ss_group_id')==1 || $this->session->userdata('ss_group_id')==2 || $this->session->userdata('ss_group_id')==3 ||  $this->session->userdata('ss_group_id')==9)
                        { ?>
                         <?php if ($this->session->userdata('ss_group_id')!=5)
                         { ?>
                         <li <?php if($main_menu_name=='quotations') {echo 'class="active open"';} ?>>

							<a href="javascript:void(0)"><i class="	clip-file-2"></i>

								<span class="title"> Quotations / S. Advance </span><i class="icon-arrow"></i>

								<span class="selected"></span>

							</a>

							<ul class="sub-menu">

								<li <?php if($sub_menu_name=='quotations') {echo 'class="active open"';} ?>>

									<a href="<?php echo base_url('quotations'); ?>">

										<span class="title"> List Quotation / S. Advance</span></a></li>

								<li <?php if($sub_menu_name=='quotations_add') {echo 'class="active open"';} ?>>

									<a href="<?php echo base_url('quotations/add'); ?>">

										<span class="title"> Add Quotation / S. Advance</span></a></li>	

							</ul>

						</li>
                        <?php }}?>
                        <?php if ($this->session->userdata('ss_group_id')==1){ ?>
                        
                        <li <?php if($main_menu_name=='purchases_order') {echo 'class="active open"';} ?>>
							<a href="javascript:void(0)"><i class="fa fa-star"></i>
								<span class="title">  Purchase Order  </span><i class="icon-arrow"></i>
								<span class="selected"></span>
							</a>
							<ul class="sub-menu">
                            
								<li <?php if($sub_menu_name=='list_purchases_order') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('purchases_order'."/itemlist/$rand_txt"); ?>">
										<span class="title"> List Purchase Order </span>
									</a>
								</li>
						
								<li <?php if($sub_menu_name=='purchases_order_add') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url("purchases_order/manage/0/$rand_txt"); ?>">
										<span class="title"> Add Purchase Order </span>
									</a>
								</li>	
                               		
							</ul>
						</li>
                        <?php }?>
                        <?php if ($this->session->userdata('ss_group_id')==1 || $this->session->userdata('ss_group_id')==3 || $this->session->userdata('ss_group_id')==6  ||  $this->session->userdata('ss_group_id')==9  ||  $this->session->userdata('ss_group_id')==8){ ?>
                         <?php 
                         //if ($this->session->userdata('ss_group_id')!=3)
                         { ?>
						<li <?php if($main_menu_name=='purchases') {echo 'class="active open"';} ?>>
							<a href="javascript:void(0)"><i class="fa fa-star"></i>
								<span class="title">  GRN  </span><i class="icon-arrow"></i>
								<span class="selected"></span>
							</a>
							<ul class="sub-menu">
								<li <?php if($sub_menu_name=='list_purchases') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('purchases'); ?>">
										<span class="title"> List GRN </span>
									</a>
								</li>

								<li <?php if($sub_menu_name=='add_purchases') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('purchases/add'); ?>">
										<span class="title"> Add GRN </span>
									</a>
								</li>	
                                 <li <?php if($sub_menu_name=='purchase_return') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('purchase_return'); ?>">
                                    <span class="title"> List GRN Return</span></a></li>	
                                    
                                    <li <?php if($sub_menu_name=='purchase_return_v2_add') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('purchase_return_v2/manage/0'); ?>">
										<span class="title"> Add GRN RETURN</span>
									</a>
								</li>
                                    
                                     <li <?php if($sub_menu_name=='barcodeprint') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('barcodeprint'); ?>">
                                    <span class="title"> Barcode Print</span></a></li>	
                                    
                                     <?php if ($this->session->userdata('ss_group_id')==1 || $this->session->userdata('ss_group_id')==2){ ?>     
                        <li <?php if($sub_menu_name == 'supplier_payment_adjustment'){echo 'class="active open"';} ?>>
                    <a href="<?php echo base_url('supplier_payment_adjustment'); ?>">
                        <span class="title">Supplier Payment Adjustment</span>
                    </a>
                </li>
                <?php } ?>
                                    
                                      <!--<li <?php if($sub_menu_name=='grn_do') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('grn_do/manage/0'); ?>">
                                    <span class="title"> GRN DO</span></a></li>		-->					
							</ul>
						</li>
                        <?php }}?>
                        
                     
                        <?php if ($this->session->userdata('ss_group_id')==1 || $this->session->userdata('ss_group_id')==4 || $this->session->userdata('ss_group_id')==2 ||  $this->session->userdata('ss_group_id')==6 ||  $this->session->userdata('ss_group_id')==9){ ?>
                         <li <?php if($main_menu_name=='service') {echo 'class="active open"';} ?>>
							<a href="javascript:void(0)"><i class="fa fa-cogs"></i>
								<span class="title">  Services </span><i class="icon-arrow"></i>
								<span class="selected"></span>
							</a>
							<ul class="sub-menu">
								<li <?php if($sub_menu_name=='list_service') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('service'); ?>">
										<span class="title">  Services</span>
									</a>
								</li>
								
								<li <?php if($sub_menu_name=='list_service_sales') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('service/service_sales'); ?>">
										<span class="title">  Service sales</span>
									</a>
								</li>
								

								<li <?php if($sub_menu_name=='service_add') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('service/manage/0'); ?>">
										<span class="title"> Add Services</span>
									</a>
								</li>							
							</ul>
						</li>
					<?php }?>
					
						
                        <?php if ($this->session->userdata('ss_group_id')!=5)
                        { ?>
                        
                         <li <?php if($main_menu_name=='expenses') {echo 'class="active open"';} ?>>
							<a href="javascript:void(0)"><i class="clip-heart"></i>
								<span class="title">Expenses</span><i class="icon-arrow"></i>
								<span class="selected"></span>
							</a>
							<ul class="sub-menu">
								<li <?php if($sub_menu_name=='expenses') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('expenses'); ?>">
										<span class="title"> List Expenses</span></a></li>
                                                                <?php 
//if(in_multiarray("usrgp_permission_page","petty_cash", $usr_permtn_pubvr,"usrgp_permission_add",1))
{
?>
								<li <?php if($sub_menu_name=='expenses_add') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('expenses/manage/0'); ?>">
										<span class="title"> Add Expenses</span></a></li>	
                                        <?php }?>
							</ul>
						</li>
                        <?php }?>
                        <?php if ($this->session->userdata('ss_group_id')==1 || $this->session->userdata('ss_group_id')==2 || $this->session->userdata('ss_group_id')==3 || $this->session->userdata('ss_group_id')==6 ||  $this->session->userdata('ss_group_id')==9){ ?>
                        
                         <?php if ($this->session->userdata('ss_group_id')==1 ||$this->session->userdata('ss_group_id')==2 || $this->session->userdata('ss_group_id')==3 || $this->session->userdata('ss_group_id')==6 ||  $this->session->userdata('ss_group_id')==9){ ?>
                        <li <?php if($main_menu_name=='transfer') {echo 'class="active open"';} ?>>
							<a href="javascript:void(0)"><i class="fa fa-star-o"></i>
								<span class="title"> Transfers  </span><i class="icon-arrow"></i>
								<span class="selected"></span>
							</a>
							<ul class="sub-menu">
								<li <?php if($sub_menu_name=='list_transfer') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('transfer'); ?>">
										<span class="title"> List Transfers </span>
									</a>
								</li>

								<li <?php if($sub_menu_name=='transfer_add') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('transfer/add'); ?>">
										<span class="title"> Add Transfer </span>
									</a>
								</li>		
                                 <li <?php if($sub_menu_name=='transfer_items') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('reports/transfer_items'); ?>">
										<span class="title"> Transfer Items</span></a></li>					
							</ul>
						</li>
                        <?php }}?>
                        <?php if ($this->session->userdata('ss_group_id')==1 ||  $this->session->userdata('ss_group_id')==9){ ?>
                         <?php //if ($this->session->userdata('ss_group_id')!=3)
                         { ?>
                         <li <?php if($main_menu_name=='product_damage') {echo 'class="active open"';} ?>>
							<a href="javascript:void(0)"><i class="fa clip-puzzle-3"></i>
								<span class="title"> Damage Products  </span><i class="icon-arrow"></i>
								<span class="selected"></span>
							</a>
							<ul class="sub-menu">
								<li <?php if($sub_menu_name=='list_product_damage') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('product_damage'); ?>">
										<span class="title"> List Damage Product </span>
									</a>
								</li>

								<li <?php if($sub_menu_name=='product_damage_add') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('product_damage/add'); ?>">
										<span class="title"> Add Damage Product</span>
									</a>
								</li>							
							</ul>
						</li>
						<?php }}?>
						
                        
                        
                         <?php //{ ?>
                         
                         <!-- payrole start -->
                         
                         <?php if ($this->session->userdata('ss_group_id')==1 || $this->session->userdata('ss_group_id')==8){ ?>     
                         <!-- <li class="active open"> <a href="https://lasermt.viableerp.com/hr/reports/pay_sheet_reports" style="background-color:#007AFF !important"><i class="fa fa-money"></i> <span class="title">PAYROLL </span><span class=""></span> </a> </li> -->
                         <?php } ?>
                         
 
                                                
                                                
                         <!-- end pay role -->
                         <?php if($this->session->userdata('ss_group_id')!=5) { ?>
                         
						<li <?php if($main_menu_name=='people') {echo 'class="active open"';} ?>>
							<a href="javascript:void(0)"><i class="clip-user-3"></i>
								<span class="title"> People </span><i class="icon-arrow"></i>
								<span class="selected"></span>
							</a>
							<ul class="sub-menu">
							    
							    <li <?php if($sub_menu_name=='customers') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('customers'); ?>">
										<span class="title"> List Customer</span>
									</a>
								</li>
                            <?php if ($this->session->userdata('ss_group_id')==1  ||  $this->session->userdata('ss_group_id')==9){ ?>
                            <?php 
							//if(in_multiarray("usrgp_permission_page","users", $usr_permtn_pubvr,"usrgp_permission_view",1))
							//{
							?>
								<li <?php if($sub_menu_name=='users') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('users'); ?>">
										<span class="title">List Users</span>
									</a>
								</li>
                              <?php //}?>  
                                <?php 
							//	if(in_multiarray("usrgp_permission_page","users", $usr_permtn_pubvr,"usrgp_permission_add",1))
								{?>
								<li <?php if($sub_menu_name=='create_user') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('users/create_user'); ?>">
										<span class="title">Add Users</span>
									</a>
								</li>
                                <?php } ?>
								<?php 
							//	if(in_multiarray("usrgp_permission_page","customer", $usr_permtn_pubvr,"usrgp_permission_view",1))
								{?>
								
                                <?php }?>
                                <?php 
							//	if(in_multiarray("usrgp_permission_page","customer", $usr_permtn_pubvr,"usrgp_permission_add",1))
								{?>
								<li>
									<a href="#" data-toggle="modal" id="modal_ajax_customers_btn">
										<span class="title">Add Customer</span>
									</a>
								</li>
                                <?php }?>
								<?php }?>
								<li <?php if($sub_menu_name=='suppliers') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('suppliers'); ?>">
										<span class="title"> List Suppliers</span>
									</a>
								</li>
								<li><a id="modal_ajax_suppliers_btn" data-toggle="modal" href="#">
										<span class="title"> Add Suppliers</span>
									</a>
								</li>
							</ul>
						</li>
						<?php } ?>
                        
                        <?php if ($this->session->userdata('ss_group_id')==1){ ?>
                        
                         <?php if ($this->session->userdata('ss_group_id')!=3){ ?>
						<li <?php if($main_menu_name=='notifications') {echo 'class="active open"';} ?>>
							<a href="<?php echo base_url('notifications'); ?>"><i class="clip-notification"></i>
								<span class="title">Notifications</span>
								<span class="selected"></span>
							</a>
						</li>
                        
                        <?php } }?>
                        <!--<li <?php if($main_menu_name=='fixed_assets') {echo 'class="active open"';} ?>>
							
                            <a href="javascript:void(0)"><i class="fa fa-tasks"></i>
								<span class="title">Fixed Assets</span><i class="icon-arrow"></i>
								<span class="selected"></span>
							</a>
                            <ul class="sub-menu">
                            <li <?php if($sub_menu_name=='create_fixed_assets') {echo 'class="active open"';} ?>>
									<a href="#" data-toggle="modal" id="modal_ajax_fixed_assets_btn">
										<span class="title">Add Fixed Assets</span>
									</a>
							</li>
                            <li <?php if($sub_menu_name=='fixed_assets_list') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('fixed_assets'); ?>">
										<span class="title">Fixed Assets List</span>
									</a>
						    </li>
                            </ul>
						</li>-->
                        
                         <!--Finance-->                       
 <?php if ($this->session->userdata('ss_group_id')==1 || $this->session->userdata('ss_group_id')==9 || $this->session->userdata('ss_group_id')==6){ ?>
 <li <?php if($main_menu_name=='finance') {echo 'class="active open"';} ?>>
	<a href="javascript:void(0)"><i class="clip-banknote"></i>
		<span class="title">Finance</span><i class="icon-arrow"></i>
		<span class="selected"></span>
	</a>
	<ul class="sub-menu">
		<?php 
        //if(in_multiarray("usrgp_permission_page","pr", $usr_permtn_pubvr,"usrgp_permission_view",1))
        {?>
        
        <!-- 
        <li <?php if($sub_menu_name=='cash_book') {echo 'class="active open"';} ?>>
        <a href="<?php echo base_url("finance/cash_book/$rand_txt"); ?>">
        <span class="title">Cash Book</span></a></li>
        
        -->
        	<li <?php if($sub_menu_name=='cash_book_03') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('finance/cash_book_03/234'); ?>">
										<span class="title"> Cash Book </span>
									</a>
								</li>
								
								<li <?php if($sub_menu_name=='cash_book_03') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('finance/cash_book_03/234'); ?>">
										<span class="title"> Cash Book V3</span>
									</a>
								</li>
        <?php }?>
        <?php 
        //if(in_multiarray("usrgp_permission_page","pr", $usr_permtn_pubvr,"usrgp_permission_add",1))
        ?>
        <!--<li <?php if($sub_menu_name=='petty_cash') {echo 'class="active open"';} ?>>
        <a href="<?php echo base_url("finance/petty_cash/$rand_txt"); ?>">
        <span class="title">Petty Cash</span></a></li>	-->
        
        <!--<li <?php if($sub_menu_name=='day_end') {echo 'class="active open"';} ?>>
        <a href="<?php echo base_url("finance/day_end/$rand_txt"); ?>">
        <span class="title">Day End</span></a></li>	-->
        <?php ?>
        
        <?php if ($this->session->userdata('ss_group_id')==1 || $this->session->userdata('ss_group_id')==9){ ?>
        
        <li <?php if($sub_menu_name=='transactions_list') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('transactions'); ?>">
										<span class="title">  Transactions</span>
									</a>
								</li>
								<?php } ?>
	</ul>
</li>
<?php }?>                    
 <!--Petty Cash--> 
 
 
 <?php if ($this->session->userdata('ss_group_id')==1 || $this->session->userdata('ss_group_id')==10 || $this->session->userdata('ss_group_id')==8){ ?>
 <li <?php if($main_menu_name=='petty_cash') {echo 'class="active open"';} ?>>
	<a href="javascript:void(0)"><i class="clip-banknote"></i>
		<span class="title">Petty Cash <!--  / Bank Deposit --></span><i class="icon-arrow"></i>
		<span class="selected"></span>
	</a>
	<ul class="sub-menu">
		
     
        
        <li <?php if($sub_menu_name=='petty_cash') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('petty_cash'); ?>">
										<span class="title">  Petty Cash</span>
									</a>
								</li>
	</ul>
</li>
<?php }?>                    
 <!--Petty Cash--> 
 
                        <?php if ($this->session->userdata('ss_group_id')==1 ||  $this->session->userdata('ss_group_id')==6 ||  $this->session->userdata('ss_group_id')==9){ ?>
                         <?php 
                         //if ($this->session->userdata('ss_group_id')!=3)
                         { ?>
                        <li <?php if($main_menu_name=='settings') {echo 'class="active open"';} ?>>
							<a href="javascript:void(0)"><i class="clip-cog-2"></i>
								<span class="title"> Settings </span><i class="icon-arrow"></i>
								<span class="selected"></span>
							</a>
							<ul class="sub-menu">
								
                                <li <?php if($sub_menu_name=='fixed_assets_list') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('fixed_assets'); ?>">
										<span class="title">  Assets/Liabilities </span>
									</a>
								</li>
								  <?php if ($this->session->userdata('ss_group_id')!=8){ ?>
								  <!-- 
                                <li <?php if($sub_menu_name=='transactions_list') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('transactions'); ?>">
										<span class="title">  Transactions</span>
									</a>
								</li>
								-->
								<?php } ?>
                               
                                
								<!--<li <?php if($sub_menu_name=='system_settings') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('system_settings'); ?>">
										<span class="title">  System Settings </span>
									</a>
								</li>-->
                                <li <?php if($sub_menu_name=='categories') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('system_settings/categories'); ?>">
										<span class="title"> Department </span>
									</a>
								</li>
								
								 <li <?php if($sub_menu_name=='categories_9') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('system_settings/subcategories/0'); ?>">
										<span class="title"> Category </span>
									</a>
								</li>
								
								<li <?php if($sub_menu_name=='department') {echo 'class="active open"';} ?>>
                                    <a href="<?php echo base_url('department'); ?>">
                                        <span class="title"> Brand </span>
                                    </a>
                                </li>
                                
                                	<li <?php if($sub_menu_name=='mstr_pro_type') {echo 'class="active open"';} ?>>
                                    <a href="<?php echo base_url('mstr_pro_type'); ?>">
                                        <span class="title"> Type </span>
                                    </a>
                                </li>
                                
                                	<li <?php if($sub_menu_name=='pro_model') {echo 'class="active open"';} ?>>
                                    <a href="<?php echo base_url('pro_model'); ?>">
                                        <span class="title"> Model </span>
                                    </a>
                                </li>
                                
                                	<li <?php if($sub_menu_name=='pro_color') {echo 'class="active open"';} ?>>
                                    <a href="<?php echo base_url('pro_color'); ?>">
                                        <span class="title"> Color </span>
                                    </a>
                                </li>
                                
                                	<li <?php if($sub_menu_name=='pro_capacity') {echo 'class="active open"';} ?>>
                                    <a href="<?php echo base_url('pro_capacity'); ?>">
                                        <span class="title"> Capacity </span>
                                    </a>
                                </li>
                            
								
                               <!-- <li <?php if($sub_menu_name=='locations') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('locations'); ?>">
										<span class="title">Locations</span>
									</a>
								</li>-->
                                <li <?php if($sub_menu_name=='warehouse') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('warehouse'); ?>">
										<span class="title">Warehouse</span>
									</a>
								</li>
                               <!-- <li <?php if($sub_menu_name=='tax_rates') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('tax_rates'); ?>">
										<span class="title"> Tax Rates </span>
									</a>
								</li>-->
									<li <?php if($sub_menu_name=='Service Details') {echo 'class="active open"';} ?>>
                                    <a href="<?php echo base_url('service_details'); ?>">
                                        <span class="title">  Service Details </span>
                                    </a>
                                </li>
                                <li <?php if($sub_menu_name=='unit') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('unit'); ?>">
										<span class="title"> Unit </span>
									</a>
								</li>
								<?php if ($this->session->userdata('ss_group_id')==1 ){ ?>
                                 <li <?php if($sub_menu_name=='user_groups') {echo 'class="active open"';} ?>>
									<a href="<?php echo base_url('system_settings/user_groups'); ?>">
										<span class="title">   Group Permissions </span>
									</a>
								</li>
								<?php } ?>
                             <?php if ($this->session->userdata('ss_group_id')==1 ){ ?>
                                <li <?php if($sub_menu_name=='backups') {echo 'class="active open"';} ?>>
								<a href="<?php echo base_url(); ?>backups?link=navodaya_daily.sql">
										<span class="title">  Backups </span>
									</a>
								</li>	
								  <?php } ?>		
							</ul>
						</li>
                        <?php } }?>
                       
                       
  </ul>
					<!-- end: MAIN NAVIGATION MENU -->
				</div>
