<?php 

require 'config/constant.php';

//require 'userPermission.php';
//admin@thinkofmind.com   
$userID         = $_SESSION['user_id'];

if($userID==1)
{  ?>
<nav class="navbar navbar-default">
    <div class="container-fluid">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>                        
        </button>
        <a class="navbar-brand" href="homeDashboard.php"><strong>  <?php echo $COMPANYNAME; ?></strong></a>
      </div>
      <div class="collapse navbar-collapse" id="myNavbar">
        <ul class="nav navbar-nav">
          <li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#"><?php echo $MENU_MASTER; ?><span class="caret"></span></a>
            <ul class="dropdown-menu" >
            
            <li><a href="productMasterDashboard.php">Product</a></li>
            
            <li><a href="customerMasterDashboard.php">Customer</a></li>
             <li><a href="supplierMasterDashboard.php">Supplier</a></li>
             <!--<li><a href="productSalePrice.php">Rate mapping Customer</a></li>
             <li><a href="productPurchasePrice.php"><?php echo $MENU_SUPPLIER_PRODUCT_PRICE ; ?></a></li>-->
              <li><a href="expenseMaster.php">Expense Category</a></li>
             <li><a href="employeeMasterDashboard.php">Employee</a></li>
              </ul>
          </li>
          
          <ul class="nav navbar-nav">
          <li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#">Purchase<span class="caret"></span></a>
            <ul class="dropdown-menu" >
          
      <li><a href="purchaseDashboard.php">Purchase</a></li>
       <li><a href="purchaseDashboardwo.php">Purchase EST</a></li>
      </ul>
      </li>
      </ul>
      
      
      <ul class="nav navbar-nav">
          <li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#">Sales<span class="caret"></span></a>
            <ul class="dropdown-menu" >
          
      <li><a href="saleDashboard.php">Sales</a></li>
       <li><a href="saleDashboardwo.php">EST</a></li>
      
      </ul>
      </li>
      </ul>
          
          
          <li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">Accounts <span class="caret"></span></a>
        <ul class="dropdown-menu">
        <li><a href="paypurchaseDashboard.php">PurchasePayment</a></li>
       
         <li><a href="collectionDashboard.php">Sales Collection</a></li>
     
      <li><a href="expenseEntryDashboard.php">Cash&nbsp;Expense</a></li>
      
     
      
      </ul>
      </li>
          
          <li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#"><?php echo $MENU_REPORT; ?><span class="caret"></span></a>
            <ul class="dropdown-menu" >
			
            
            <li><a href="purchasereport.php">Purchase</a></li>
            <li><a href="stockReport.php">Delivery&nbsp;Report</a></li>
            <!--<li><a href="sales_Report.php">Sales&nbsp;Report</a></li>-->
            <li><a href="stockreportcollection.php">Collection</a></li>
            <li><a href="stockreportpayment.php">Supplier&nbsp;Payment</a></li>
            
           <li><a href="customer_statement.php">Customer Statement</a></li>
     <li><a href="supplier_statement.php">Supplier Statement</a></li>
     <li><a href="overallpendingpurchase.php">Purchase&nbsp;Pending</a></li>
     <li><a href="overallpendingsales.php">Sales&nbsp;Pending</a></li>
          <li><a href="report_cash_expense.php">Cash&nbsp;Expense</a></li>
         <li><a href="serviceOverAllReport.php">Tax Report</a></li>

            </ul>
          </li>
          <li>
            <a href="usersMasterDashboard.php"><?php echo $MENU_UserPermission; ?></a>
            
          </li>
        </ul>
        <ul class="nav navbar-nav navbar-right">
          <li><a href="logoutController.php"><span class="glyphicon glyphicon-log-out"></span> <?php echo $MENU_LOGOUT; ?></a></li>
        </ul>
      </div>
    </div>
  </nav>

<?php }  
else  {  ?>

  <nav class="navbar navbar-default">
    <div class="container-fluid">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>                        
        </button>
        <a class="navbar-brand" href="homeDashboard.php"><strong>  <?php echo $COMPANYNAME; ?></strong></a>
      </div>
      <div class="collapse navbar-collapse" id="myNavbar">
        <ul class="nav navbar-nav">
          <li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#"><?php echo $MENU_MASTER; ?><span class="caret"></span></a>
            <ul class="dropdown-menu" >
            <?php if($ProductMaster_View  ==1) {  ?>
              <li><a href="purchase_productMasterDashboard.php">Purchase&nbsp;Product</a></li>
            <li><a href="productMasterDashboard.php">Sales&nbsp;Product</a></li>      
            <?php } if($productpriceMaster_View ==1) {  ?>  
              <li><a href="productSalePrice.php">Product Mapping Customer</a></li>
          
            <?php } if($customerMaster_View==1) {  ?> 
              <li><a href="customerMasterDashboard.php">Customer</a></li>
            <?php } if($supplierMaster_View==1) {  ?> 
              <li><a href="supplierMasterDashboard.php">Supplier</a></li>
            <?php } if($employeeMaster_View==1) {  ?> 
               <li><a href="employeeMasterDashboard.php">Employee</a></li>
            <?php } if($expenseMaster==1) {  ?>   
              <li><a href="expenseMaster.php">Expense Category</a></li>
            
<?php }  ?>   
          
            </ul>
          </li>
          <?php  if($Purchase_View==1) {  ?>   
           <li><a href="purchaseDashboard.php">Purchase</a></li>
           <?php } if($Sales_View==1) {  ?>   
          <li><a href="saleDashboard.php">Sales</a></li>
          
          <?php } ?>
		  
		 
		  
          <li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#">Accounts<span class="caret"></span></a>
            <ul class="dropdown-menu" >
            <?php  if($accOver_View==1) {  ?>
             <li><a href="paypurchaseDashboard.php">PurchasePayment</a></li>
            <?php } if($accOver_View==1) {  ?>
             <li><a href="salescollectionDashboard.php">Sales Collection</a></li>
             <?php } if($accOver_View==1) {  ?>
             <li><a href="expenseEntryDashboard.php">Cash&nbsp;Expense</a></li>
            <?php } ?>  
            </ul>
          </li>
          
          
          <li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#">Reports<span class="caret"></span></a>
            <ul class="dropdown-menu" >
            <?php  if($reportTrips_View==1) {  ?>
             
            
            <li><a href="purchasereport.php">Purchase</a></li>
            <li><a href="stockReport.php">Sales&nbsp;Report</a></li>
           <!-- <li><a href="sales_Report.php">Sales&nbsp;Report</a></li>-->
            <li><a href="stockreportcollection.php">Collection</a></li>
            <li><a href="stockreportpayment.php">Supplier&nbsp;Payment</a></li>
            
           <li><a href="customer_statement.php">Customer Statement</a></li>
     <li><a href="supplier_statement.php">Supplier Statement</a></li>
     <li><a href="overallpendingpurchase.php">Purchase&nbsp;Pending</a></li>
     <li><a href="overallpendingsales.php">Sales&nbsp;Pending</a></li>
          <li><a href="report_cash_expense.php">Cash&nbsp;Expense</a></li>
         
             
			  
            <?php  }  ?>
			
              <!-- <li><a href="outSTyreDashboard.php"><?php //echo $MENU_REPORT_TRIP; ?></a></li>
              <li><a href="outSRenewalDashboard.php"><?php //echo $MENU_REPORT_TRIP; ?></a></li> -->

            </ul>
          </li>
          
        </ul>
        <ul class="nav navbar-nav navbar-right">
          <li><a href="logoutController.php"><span class="glyphicon glyphicon-log-out"></span> <?php echo $MENU_LOGOUT; ?></a></li>
        </ul>
      </div>
    </div>
  </nav>
<?php  } ?>