  <aside id="left-panel" class="left-panel">
        <nav class="navbar navbar-expand-sm navbar-default">

            <div id="main-menu" class="main-menu collapse navbar-collapse">
                <ul class="nav navbar-nav">
                    <?php
                    if(($this->session->userdata['login_data']['userlevel'] < 9) || ($this->session->userdata['login_data']['userlevel'] == 10)){ ?>
                    <li>
                        <a href="<?php echo site_url('dashboard')?>">Dashboard </a>
                    </li>
                    <?php
                    }else if ($this->session->userdata['login_data']['userlevel'] == 9){ ?>
                    <li>
                        <a href="<?php echo site_url('storedashboard')?>">Dashboard </a>
                    </li>
                    <?php
                    }
                    
                    else if ($this->session->userdata['login_data']['userlevel'] <= 20){ ?>
                    <li>
                        <a href="<?php echo site_url('refdashboard')?>">Dashboard </a>
                    </li>
                    <?php
                    }
                    
                    if($this->session->userdata['login_data']['userlevel'] <= 20){ 
                    ?>
                    
                    
                        
                       <li class="menu-item-has-children dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Product</a>
                        <ul class="sub-menu children dropdown-menu">
                            <li><a href="<?php echo site_url('product')?>">All Products</a></li>
                            <?php
                            if($this->session->userdata['login_data']['userlevel'] <= 10){?>
                            
                            <li><a href="<?php echo site_url('view_grn')?>">GRN</a></li>
                            <li><a href="<?php echo site_url('batch')?>">Batch</a></li>
                            
                            
                            <?php }  ?>
                             <?php
                            if($this->session->userdata['login_data']['userlevel'] < 10){?>
                            
                            <li><a href="<?php echo site_url('view_return')?>">Return</a></li>
                            
                            <?php }  ?>
                        </ul>
                    </li> 
                        
                        
                     <li class="menu-item-has-children dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Stock</a>
                        <ul class="sub-menu children dropdown-menu">
                            
                            <!--li><a href="<?php echo site_url('annualstock')?>">Stock Inventory</a></li-->
                            
                            <?php if($this->session->userdata['login_data']['userlevel'] <= 10){ ?>
                            <li><a href="<?php echo site_url('view_stock')?>">All Stock</a></li>
                            <li><a href="<?php echo site_url('transer')?>">Stock Transer</a></li>
                          <?php   } ?>
                            
                        </ul>
                    </li>    
                        
                   
                        <li class="menu-item-has-children dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Invoice</a>
                            <ul class="sub-menu children dropdown-menu">
                                <li><a href="<?php echo site_url('allqtn')?>">All Invoice</a></li>
                                <li><a href="<?php echo site_url('allinv_return')?>">Invoice Return</a></li>
                                <li><a href="<?php echo site_url('allinvcrd_return')?>">Credit Return</a></li>
                               
                            </ul>
                        </li>
                        
                        <?php 
                        
                    }
                    
                    if($this->session->userdata['login_data']['userlevel'] != 9){
                        if($this->session->userdata['login_data']['userlevel'] != 20){
                    ?>
                         <li>
                            <a href="<?php echo site_url('sales')?>">Sales</a>
                        </li>
                        <?php  }else if($this->session->userdata['login_data']['userlevel'] == 20){
                            ?>
                               <li>
                                    <a href="<?php echo site_url('ref_prof/').$this->session->userdata["login_data"]["username"]?>">Sales</a>
                                </li> 
                        <?php
                        } ?>
                        
                        <li>
                        <a href="<?php echo site_url('customer')?>">Customer</a>
                        </li>
                        
                     <?php if(($this->session->userdata['login_data']['userlevel'] !=9)){ ?>
                        <li>
                        <a href="<?php echo site_url('payment')?>">Payment</a>
                        </li>
                    <?php }
                    if(($this->session->userdata['login_data']['userlevel'] !=9)&&($this->session->userdata['login_data']['userlevel'] !=10)){ ?>    
                         <li>
                        <a href="<?php echo site_url('exp')?>">Expenses</a>
                        </li>
                   <?php   } ?>
                        <?php if(($this->session->userdata['login_data']['userlevel'] < 6)||($this->session->userdata['login_data']['userlevel'] ==10)){?>
                        
                        <li>
                        <a href="<?php echo site_url('view_all_cheque')?>">Cheque Management</a>
                        </li>
                        
                       <?php } ?>
                        
                    
                    <?php
                    }
                    
                    if($this->session->userdata['login_data']['userlevel'] < 5){
                    ?>
                        <li>
                            <a href="<?php echo site_url('setting')?>">Settings</a>
                        </li>
                        
                        <li>
                        <a href="<?php echo site_url('user')?>">User</a>
                        </li>
                        
                        <li>
                        <a href="<?php echo site_url('viewprofile')?>">Manchiee De Coco</a>
                        </li>
                    
                    <?php
                        }
                    ?>
                    
                    <li class="menu-item-has-children dropdown">
                          <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Report</a>
                          
                          <ul class="sub-menu children dropdown-menu">
                             <?php
                             if($this->session->userdata['login_data']['userlevel'] < 10){
                                 ?>
                             
                              <li><a href="<?php echo site_url('sales_sum_daily')?>">Daily Sales Report</a></li>
                              <li><a href="<?php echo site_url('sales_by_inv')?>">Daily Sales Summary Invoce Wise</a></li>
                              <li><a href="<?php echo site_url('daily_sales_item')?>">Daily Sales Summary Item Wise</a></li>
                              <li><a href="<?php echo site_url('daily_sum_view')?>">Daily Collection Summary</a></li>
                              <li><a href="<?php echo site_url('invoice_sum')?>">Invoice Profile</a></li>
                              <li><a href="<?php echo site_url('outstand')?>">Outstanding</a></li>
                              <li><a href="<?php echo site_url('grn_sum')?>">GRN Summery</a></li>
                              <li><a href="<?php echo site_url('trans_sum')?>">Transfer Summery</a></li>
                                 <li><a href="<?php echo site_url('item_detail')?>">Stock Summery</a></li>
                            <?php
                             }
                             if($this->session->userdata['login_data']['userlevel'] == 15 ){
                             ?>    
                                <li><a href="<?php echo site_url('sales_sum_daily')?>">Daily Sales Report</a></li>
                                <li><a href="<?php echo site_url('daily_sales_item')?>">Daily Sales Summary Item Wise</a></li>
                                 <li><a href="<?php echo site_url('invoice_sum')?>">Invoice Profile</a></li>
                                  <li><a href="<?php echo site_url('outstand')?>">Outstanding</a></li>
                                   <li><a href="<?php echo site_url('daily_sum_view')?>">Daily Collection Summary</a></li>
                            <?php }
                            ?>
                          </ul>
                          
                          
                           </li>
                     
                    
                     <!--li class="menu-item-has-children dropdown">
                          <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Report</a>
                          
                          <ul class="sub-menu children dropdown-menu">
                              
                                <li><a href="<?php echo site_url('sales_sum_daily')?>">Daily Sales Report</a></li>
                                 <li><a href="<?php echo site_url('sales_by_inv')?>">Daily Sales Summary Invoce Wise</a></li>
                             <?php if($this->session->userdata['login_data']['userlevel'] != 9){ ?>   
                               
                                <li><a href="<?php echo site_url('daily_sales_item')?>">Daily Sales Summary Item Wise</a></li>
                                <li><a href="<?php echo site_url('daily_sum_view')?>">Daily Collection Summary</a></li>
                                 <li><a href="<?php echo site_url('trans_sum')?>">Transfer Summery</a></li>
                            <?php   } ?>     
                                <li><a href="<?php echo site_url('invoice_sum')?>">Invoice Profile</a></li>
                                <li><a href="<?php echo site_url('grn_sum')?>">GRN Summery</a></li>
                                <li><a href="<?php echo site_url('ret_sum')?>">Return Note Summery</a></li>
                                <li><a href="<?php echo site_url('trans_sum')?>">Transfer Summery</a></li>
                            <?php if($this->session->userdata['login_data']['userlevel'] != 9){ ?>      
                                <li><a href="<?php echo site_url('chkdepo_sum')?>">Cheque Deposit</a></li>
                            <?php   } ?>     
                                <li><a href="<?php echo site_url('stock_bal')?>">Stock Balance</a></li>
                                <li><a href="<?php echo site_url('pro_rtn')?>">Product Return</a></li>
                                <li><a href="<?php echo site_url('gen_sum')?>">General Details</a></li>
                            <?php if(($this->session->userdata['login_data']['userlevel'] != 9)){ 
                                    if(($this->session->userdata['login_data']['userlevel'] != 15)){  ?>
                                        <li><a href="<?php echo site_url('inv_settlement')?>">Invoice Settlement</a></li>
                                  <?php  }?>        
                                
                            <?php   } ?>     
                                <li><a href="<?php echo site_url('fast_move')?>">Fast Moving</a></li>
                                <li><a href="<?php echo site_url('item_detail')?>">Item Summery</a></li>
                            <?php if($this->session->userdata['login_data']['userlevel'] != 9){ 
                                if(($this->session->userdata['login_data']['userlevel'] != 15)){ ?>    
                                <li><a href="<?php echo site_url('outstand')?>">Outstanding</a></li>
                                <li><a href="<?php echo site_url('can_inv')?>">Cancel Bill</a></li>
                                <li><a href="<?php echo site_url('item_detail')?>">Item Summery</a></li>
                                <li><a href="<?php echo site_url('petro_detail')?>">Petro Summery</a></li>
                                <li><a href="<?php echo site_url('csv_download')?>">Excel</a></li>
                                <li><a href="<?php echo site_url('chksetl_sum')?>">Cheque Settlement Summary</a></li>
                                <li><a href="<?php echo site_url('custlist_view')?>">Customer List</a></li>
                                 <?php  }?>
                            <?php   } ?>     
                             
                         </ul>
                        
                    </li-->
                    
                    
                    <li>
                        <a href="<?php echo site_url('logout')?>">Logout</a>
                    </li>
                    
                </ul>
            </div><!-- /.navbar-collapse -->
        </nav>
    </aside><!-- /#left-panel -->
    
