<?php 

require 'config/constant.php';

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

if($userID==1)
{  ?>
<style>
    
  .navbar-default .navbar-nav>li>a {
    color: #FFFFFF;
}


    
    
</style>

<nav class="navbar navbar-default" style="background:#5096e7">
    <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" style="color:#FFFFFF"><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="product_rate.php">Product Rate</a></li>-->
           <li><a href="product_rate_Dashboard.php">Product Rate</a></li>
           <li><a href="areaMasterDashboard.php">Area</a></li>
          <li><a href="customerMasterDashboard.php">Customer</a></li>
          <li><a href="supplierMasterDashboard.php">Supplier</a></li>
          
            <li><a href="employeeMasterDashboard.php"><?php echo $MENU_emp; ?></a></li>
            
            
              <li><a href="expenseMaster.php"><?php echo $MENU_EXPENSE; ?></a></li>
              <li><a href="vehicleMaster.php">Add Vehicle</a></li>
            
             
            </ul>
          </li>
          
           <li><a href="purchaseDashboard.php">Purchase</a></li>
           
            <li><a href="saleDashboard.php">Sales</a></li>
            
             <li><a href="sale_return_Dashboard.php">Sales&nbsp;Return</a></li>
            
            <!--<li><a href="trayDashboard.php">Tray&nbsp;Return</a></li>-->
            
             <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="salescollectionDashboard.php">Sales Collection</a></li>
     
      <li><a href="expenseEntryDashboard.php">Cash&nbsp;Expense</a></li>
      
      <li><a href="employeeAdvanceDashboard.php">Emp.Advance</a></li>
      <li><a href="employeeAdvance_collection_Dashboard.php">Adv.Collection</a></li>
      
      </ul>
      </li>
      
          
       
       
      
      
        
        
        
        
        
      <li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">Report <span class="caret"></span></a>
        <ul class="dropdown-menu">
        
     <li><a href="purchasereport.php">Purchase Report</a></li>
      <li><a href="stockReport.php">Sales Report</a></li>
      <li><a href="stockReport_return.php">Sales&nbsp;Return&nbsp;Report</a></li>
      <li><a href="product_sales_Report.php">Product&nbsp;Sales&nbsp;Report</a></li>
      <li><a href="tray_return_report.php">Tray&nbsp;Return&nbsp;Report</a></li>
      <li><a href="area_pending_Report.php">Area&nbsp;Pending&nbsp;Report</a></li>
      <li><a href="area_pending_Report2.php">Overall&nbsp;Area&nbsp;Pending</a></li>
      <li><a href="areaReport.php">Area&nbsp;Sales&nbsp;Report</a></li>
      <li><a href="overall_report_customer.php">Overall&nbsp;Customer&nbsp;Report</a></li>
     <li><a href="stockreportcollection.php">Sales Collection</a></li>
     <li><a href="stockreportpayment.php">Supplier 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="product_stockreport_date.php">Stock Report</a></li>
          <li><a href="product_rate_report.php">Product&nbsp;Rate&nbsp;Report</a></li>
          <li><a href="advance_statement.php">Advance Statement</a></li>
          <li><a href="Advance_payment_report.php">Advance Payment</a></li>
          <li><a href="Advance_payment_collection_report.php">Advance Collection </a></li>
         <li><a href="md_report.php">MD Report </a></li>
        </ul>
      </li>
      
      <li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">MD&nbsp;Report <span class="caret"></span></a>
        <ul class="dropdown-menu">
        
     <li><a href="daily_report.php">Daily Report </a></li>
         <li><a href="md_report.php">MD 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="productMasterDashboard.php">Product</a></li>
           <!-- <li><a href="product_rate.php">Product Rate</a></li>-->
           <li><a href="product_rate_Dashboard.php">Product Rate</a></li>
           <?php } if ($areaMaster_View==1){ ?>
           <li><a href="areaMasterDashboard.php">Area</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"><?php echo $MENU_emp; ?></a></li>
            
             <?php } if ($expenseMaster_View==1){ ?>
              <li><a href="expenseMaster.php"><?php echo $MENU_EXPENSE; ?></a></li>
               <?php } if ($vehicleMaster_View==1){ ?>
              <li><a href="vehicleMaster.php">Add Vehicle</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>
                 <li><a href="trayDashboard.php">Tray&nbsp;Return</a></li>
            <?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="salescollectionDashboard.php">Sales Collection</a></li>
     
      <li><a href="expenseEntryDashboard.php">Cash&nbsp;Expense</a></li>
       
      <li><a href="employeeAdvanceDashboard.php">Emp.Advance</a></li>
      <li><a href="employeeAdvance_collection_Dashboard.php">Adv.Collection</a></li>
      </ul>
      </li>
      
          <?php } ?>
       
       
      
      
        
        
        
         <?php if ($reportTrips_View==1){ ?>
        
      <li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" href="#">Report <span class="caret"></span></a>
        <ul class="dropdown-menu">
        
     <li><a href="purchasereport.php">Purchase Report</a></li>
      <li><a href="stockReport.php">Sales Report</a></li>
      <li><a href="stockReport_return.php">Sales&nbsp;Return&nbsp;Report</a></li>
      <li><a href="product_sales_Report.php">Product&nbsp;Sales&nbsp;Report</a></li>
      <li><a href="tray_return_report.php">Tray&nbsp;Return&nbsp;Report</a></li>
      <li><a href="area_pending_Report.php">Area&nbsp;Pending&nbsp;Report</a></li>
      <li><a href="area_pending_Report2.php">Overall&nbsp;Area&nbsp;Pending</a></li>
      <li><a href="areaReport.php">Area&nbsp;Sales&nbsp;Report</a></li>
      <li><a href="overall_report_customer.php">Overall&nbsp;Customer&nbsp;Report</a></li>
     <li><a href="stockreportcollection.php">Sales Collection</a></li>
     <li><a href="stockreportpayment.php">Supplier 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="product_stockreport_date.php">Stock Report</a></li>
          <li><a href="product_rate_report.php">Product&nbsp;Rate&nbsp;Report</a></li>
          <li><a href="advance_statement.php">Advance Statement</a></li>
          <li><a href="Advance_payment_report.php">Advance Payment</a></li>
          <li><a href="Advance_payment_collection_report.php">Advance Collection </a></li>
          <li><a href="md_report.php">MD 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  } ?>