<?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="rate.php">Fix Rate</a></li>
            
            <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="gold_purchaseDashboard.php">Gold&nbsp;Purchase</a></li>
            <li><a href="silver_purchaseDashboard.php">Silver&nbsp;Purchase</a></li>
          
      <!--<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>
            <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($ratefix_View  ==1) {  ?>
            <li><a href="rate.php">Fix Rate</a></li>
            <?php
			}
			?>
            <?php if($ProductMaster_View  ==1) {  ?>
             <li><a href="productMasterDashboard.php">Product</a></li>
            
            <?php }  ?>  
              
          
            <?php  if($customerMaster_View==1) {  ?> 
               <li><a href="customerMasterDashboard.php">Customer</a></li>
            <?php }  ?> 
              
            <?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) {  ?> 
         <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="gold_purchaseDashboard.php">Gold&nbsp;Purchase</a></li>
            <li><a href="silver_purchaseDashboard.php">Silver&nbsp;Purchase</a></li>
          
      
      </ul>
      </li>
      </ul>
      
      <?php  }  ?> 
      
       <?php  if($Sales_View==1) {  ?> 
      <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>
          <?php  }  ?>  
          
          <?php  if($accOver_View==1) {  ?> 
          
          <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>
      
      <?php  }  ?> 
      
      <?php  if($reportTrips_View==1) {  ?> 
          
          <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="stockReport.php">Gold&nbsp;Sales&nbsp;Report</a></li>
            <li><a href="silver_stockReport.php">silver&nbsp;Sales&nbsp;Report</a></li>
            
             <li><a href="stockReportwo.php">Gold&nbsp;EST&nbsp;Report</a></li>
            <li><a href="silver_stockReportwo.php">silver&nbsp;EST&nbsp;Report</a></li>
            
             <li><a href="taxreport.php">Tax&nbsp;Report</a></li>
            <li><a href="gold_purchase_Report.php">Gold&nbsp;Purchase&nbsp;Report</a></li>
            <li><a href="silver_purchase_Report.php">Silver&nbsp;Purchase&nbsp;Report</a></li>
            <!--<li><a href="sales_Report.php">Sales&nbsp;Report</a></li>
            <li><a href="purchasereport.php">Purchase</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>
          
          <?php  }  ?> 
          
        </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  } ?>