    
      <aside class="main-sidebar sidebar-dark-primary elevation-4">
    <!-- Brand Logo -->
    <a href="dashboard.php" class="brand-link">

      <span class="brand-text font-weight-light">GLAKB | Admin </span>
    </a>
    <div class="sidebar">
      <!-- Sidebar user panel (optional) -->
      <div class="user-panel mt-3 pb-3 mb-3 d-flex">
        <div class="image">
          <img src="../dist/img/manager.png" class="img-circle elevation-2" alt="User Image">
        </div>
        <div class="info">
          <a href="#" class="d-block"><?php  echo $_SESSION['uname'];?></a>
        </div>
      </div>



      <!-- Sidebar Menu -->
      <nav class="mt-2">
        <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
          <!-- Add icons to the links using the .nav-icon class
               with font-awesome or any other icon font library -->
    <li class="nav-item">
            <a href="dashboard.php" class="nav-link">
                 <i class="nav-icon fas fa-tachometer-alt"></i>
              <p>
             Dashboard
              </p>
            </a>
          </li>
<?php if($_SESSION['utype']==1):?>


<!----- Teachers--->
<li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-users"></i>
              <p>User Management
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview" style="display: none;">
              <li class="nav-item">
                <a href="add_user.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Add Software User</p>
                </a>
              </li>
          
           <li class="nav-item">
                <a href="user_priv.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Define User Priveleges</p>
                </a>
              </li>


            </ul>
          </li>    


<!--Subadmins--->
     <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-users"></i>
              <p>
                Addition Menu
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            
            <ul class="nav nav-treeview" style="display: none;">
              
          


 <li class="nav-item">
                <a href="add_cust.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p> Customer Details</p>
                </a>
              </li>



 <li class="nav-item">
                <a href="add_prod.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p> Product Details</p>
                </a>
              </li>


 <li class="nav-item">
                <a href="ob.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Add Opening Balance</p>
                </a>
              </li>
          
            </ul>
          </li>
  
<?php endif;?>


    <!--Enrollment--->
   <li class="nav-item">
            <a href="#" class="nav-link">
          <i class="nav-icon fas fa-table"></i>
              <p>
               Raw Material 
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview" style="display: none;">
              <li class="nav-item">
                <a href="add_raw.php" class="nav-link">  
                  <i class="far fa-circle nav-icon"></i>
                  <p>Add Raw Stock</p>
                </a>
              </li>   
              <li class="nav-item">
                <a href="open.php" class="nav-link">  
                  <i class="far fa-circle nav-icon"></i>
                  <p>Raw Material Purchases</p>
                </a>
              </li>   

 


<li class="nav-item">
                <a href="r_returns.php" class="nav-link">  
                  <i class="far fa-circle nav-icon"></i>
                  <p>Raw Purchases Returns</p>
                </a>
              </li>   


<li class="nav-item">
                <a href="s_out.php" class="nav-link">  
                  <i class="far fa-circle nav-icon"></i>
                  <p>Raw Transfer</p>
                </a>
              </li>   




<li class="nav-item">
                <a href="s_outl.php" class="nav-link">  
                  <i class="far fa-circle nav-icon"></i>
                  <p>Raw Transfer (Seal etc.)</p>
                </a>
              </li>   

<li class="nav-item">
                <a href="dead2.php" class="nav-link">  
                  <i class="far fa-circle nav-icon"></i>
                  <p>Raw Stock Dead</p>
                </a>
              </li>   






            </ul>
          </li>
  



<!----- Teachers--->
<li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-users"></i>
              <p>Raw Material Reports
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview" style="display: none;">
            

 
              <li class="nav-item">
                <a href="raw_cri.php" class="nav-link">  
                  <i class="far fa-circle nav-icon"></i>
                  <p>Raw Stock Report</p>
                </a>
              </li>   
  

              
            </ul>
          </li>    









  <!----- Teachers--->
<li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-users"></i>
              <p>Products Purchases
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview" style="display: none;">
              <li class="nav-item">
                <a href="add_stock.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Stock Opening Balance</p>
                </a>
              </li>

             <li class="nav-item">
                <a href="del_stock.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Delete Opening Balance</p>
                </a>
              </li>
               
              <li class="nav-item">
                <a href="add_inv.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Company Invoice</p>
                </a>
              </li>
          




  <li class="nav-item">
                <a href="del_purchase.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Delete Company Invoice</p>
                </a>
              </li>


<li class="nav-item">
                <a href="transfer.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Transfer Products</p>
                </a>
              </li>


<li class="nav-item">
                <a href="p_dead.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Leakage Stock Entry</p>
                </a>
              </li>

           <li class="nav-item">
                <a href="view_purchase.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Todays Purchases</p>
                </a>
              </li>
   </ul>
          </li> 



<!----- Teachers--->
<li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-users"></i>
              <p>Purchases Reports
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview" style="display: none;">
            

 <li class="nav-item">
                <a href="pro_cri1.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Purchases Details</p>
                </a>
              </li>


  <li class="nav-item">
                <a href="pro_cri.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Date-Wise Purchases</p>
                </a>
              </li>
  
  <li class="nav-item">
                <a href="inv_printc.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Invoice Printing</p>
                </a>
              </li>

<li class="nav-item">
                <a href="lik_cri.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Leakage Stock Report</p>
                </a>
              </li>
              
            </ul>
          </li>    







<!----- Teachers--->
<li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-users"></i>
              <p>Sales Order Booking
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview" style="display: none;">
            

  <li class="nav-item">
                <a href="order.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Order Booking Form</p>
                </a>
              </li>
  
<li class="nav-item">
                <a href="voucher_index.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Order Approval Form</p>
                </a>
              </li>


<li class="nav-item">
                <a href="view_orders.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Sales Invoice</p>
                </a>
              </li>

    <li class="nav-item">
                <a href="add_bill.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Cash Sales Invoice</p>
                </a>
              </li>

  <li class="nav-item">
                <a href="view_sales.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Today Sales</p>
                </a>
              </li>
    <li class="nav-item">
                <a href="inv_print.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Invoice Printing</p>
                </a>
              </li>

            </ul>
          </li>    









 <!----- Teachers--->
<li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-users"></i>
              <p>Sales Return
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview" style="display: none;">
            

 

           
          
           <li class="nav-item">
                <a href="add_bill1.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Sales Return</p>
                </a>
              </li>





   <li class="nav-item">
                <a href="del_sales.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Delete Sales</p>
                </a>
              </li>



            </ul>
          </li>    


 <!----- Teachers--->
<li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-users"></i>
              <p>Sales Reports
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview" style="display: none;">
      

<li class="nav-item">
                <a href="sales_cri1.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Overall Sales Report</p>
                </a>
              </li>


<li class="nav-item">
                <a href="cust_sales.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Customer-Type Sales</p>
                </a>
              </li>

<li class="nav-item">
                <a href="dis_sales.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Product Discount Report</p>
                </a>
              </li>


<li class="nav-item">
                <a href="dis_sales1.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Scheme Discount Report</p>
                </a>
              </li>



<li class="nav-item">
                <a href="sales_cri.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Sales Information</p>
                </a>
              </li>


  <li class="nav-item">
                <a href="ware_cri1.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Warehouse Sales</p>
                </a>
              </li>
          

              <li class="nav-item">
                <a href="ware_cri.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Warehouse Sales Details</p>
                </a>
              </li>
          
           <li class="nav-item">
                <a href="sman_cri.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Salesman Sales</p>
                </a>
              </li>


  <li class="nav-item">
                <a href="sman_cri1.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Salesman Target Sales</p>
                </a>
              </li>


  <li class="nav-item">
                <a href="prov_cri.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Province Sales</p>
                </a>
              </li>

            </ul>
          </li>    


<!----- Teachers--->
<li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-users"></i>
              <p>Stock Reports
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview" style="display: none;">
              
<li class="nav-item">
                <a href="stock_cri.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Warehouse Stock</p>
                </a>
              </li>


<li class="nav-item">
                <a href="stock_cri1.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Special Stock Report</p>
                </a>
              </li>
 
 <li class="nav-item">
                <a href="prod_led.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Product Ledger</p>
                </a>
              </li>             
            </ul>
          </li>    


    <!--Enrollment--->
   <li class="nav-item">
            <a href="#" class="nav-link">
          <i class="nav-icon fas fa-table"></i>
              <p>
               Price Lists 
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview" style="display: none;">
              <li class="nav-item">
                <a href="plist.php" class="nav-link">  
                  <i class="far fa-circle nav-icon"></i>
                  <p>Price Lists</p>
                </a>
              </li>   


            </ul>
          </li>



<!--Visitors--->
   <li class="nav-item">
            <a href="#" class="nav-link">
            <i class="nav-icon fas fa-file"></i>
              <p>
               Head of Accounts
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview" style="display: none;">
              <li class="nav-item">
                <a href="add_mhead.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Accounts Main Caregory</p>
                </a>
              </li>


              <li class="nav-item">
                <a href="acchead.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p> Sub-Head</p>
                </a>
              </li>

     <li class="nav-item">
                <a href="editmhead.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p> Edit Main Category</p>
                </a>
              </li>
            
     <li class="nav-item">
                <a href="edithead.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p> Edit Sub-Head</p>
                </a>
              </li>

             

              
            </ul>
          </li>

<!----- Teachers--->
<li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-users"></i>
              <p>Vouchers
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview" style="display: none;">
              <li class="nav-item">
                <a href="cash.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Cash Payment Voucher</p>
                </a>
              </li>
          
           <li class="nav-item">
                <a href="cash_rec.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Single Cash Receiving</p>
                </a>
              </li>
<li class="nav-item">
                <a href="cash_rec1.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Multiple Cash Receiving</p>
                </a>
              </li>

<li class="nav-item">
                <a href="scheme.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Discount Voucher</p>
                </a>
              </li>



         <li class="nav-item">
                <a href="voucher.php" class="nav-link">
                  <i class="far fa-circle nav-icon"></i>
                  <p>Journal Voucher</p>
                </a>
              </li>

            </ul>
          </li>       



<!--Visitors--->
   <li class="nav-item">
            <a href="#" class="nav-link">
            <i class="nav-icon fas fa-file"></i>
              <p>
               Edit Vouchers
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview" style="display: none;">
              <li class="nav-item">
                <a href="v_search.php" class="nav-link">  
                  <i class="far fa-circle nav-icon"></i>
                  <p>Edit / Delete Recoveries</p>
                </a>
              </li>   


              <li class="nav-item">
                <a href="jv_date.php" class="nav-link">  
                  <i class="far fa-circle nav-icon"></i>
                  <p>Change Voucher Date</p>
                </a>
              </li>   

             

              
            </ul>
          </li>

<!--Classes--->
   <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-table"></i>
              <p>
               Recovery Reports
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview" style="display: none;">
             

              <li class="nav-item">
                <a href="r_cri.php" class="nav-link">  
                  <i class="far fa-circle nav-icon"></i>
                  <p>Activity Recovery Report</p>
                </a>
              </li>

 <li class="nav-item">
                <a href="t_cri.php" class="nav-link">  
                  <i class="far fa-circle nav-icon"></i>
                  <p>Customer Target Report</p>
                </a>
              </li>

              <li class="nav-item">
                <a href="acc_cri2.php" class="nav-link">  
                  <i class="far fa-circle nav-icon"></i>
                  <p>Banks Statement</p>
                </a>
              </li>
            </ul>
          </li> 

<!--Enrollment--->
   <li class="nav-item">
            <a href="#" class="nav-link">
          <i class="nav-icon fas fa-table"></i>
              <p>
               Other Reports
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview" style="display: none;">
              <li class="nav-item">
                <a href="shead_cri1.php" class="nav-link">  
                  <i class="far fa-circle nav-icon"></i>
                  <p>Accounts Categroy</p>
                </a>
              </li>   

              <li class="nav-item">
                <a href="shead_cri.php" class="nav-link">  
                  <i class="far fa-circle nav-icon"></i>
                  <p>Account's Head Report</p>
                </a>
              </li>   


<li class="nav-item">
                <a href="cust_led.php" class="nav-link">  
                  <i class="far fa-circle nav-icon"></i>
                  <p>Customer Ledger</p>
                </a>
              </li>   

 <li class="nav-item">
                <a href="cust_cri.php" class="nav-link">  
                  <i class="far fa-circle nav-icon"></i>
                  <p>Customer Status Report</p>
                </a>
              </li>   

            </ul>
          </li>








<!--Profile--->
   <li class="nav-item">
            <a href="#" class="nav-link">
              <i class="nav-icon fas fa-user-cog"></i> 
              <p>
               Account Settings
                <i class="right fas fa-angle-left"></i>
              </p>
            </a>
            <ul class="nav nav-treeview" style="display: none;">
              

 <li class="nav-item">
                <a href="change.php" class="nav-link">
                  <i class="fas fa-cog nav-icon"></i>
                  <p>Change Password</p>
                </a>
              </li>

               <li class="nav-item">
                <a href="logout.php" class="nav-link">
  <i class="fas fa-sign-out-alt nav-icon"></i>
                  <p>Logout</p>
                </a>
              </li>

            </ul>
          </li> 

        </ul>
      </nav>
      <!-- /.sidebar-menu -->
    </div>
    <!-- /.sidebar -->
  </aside>