<?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="brandMasterDashboard.php"><?php echo $MENU_Brand; ?></a></li>              
              <li><a href="vehicleMasterDashboard.php"><?php echo $MENU_Vehicle; ?></a></li>
              <li><a href="siteMasterDashboard.php"><?php echo $MENU_Site; ?></a></li>
              <li><a href="tMaterialMasterDashboard.php"><?php echo $MENU_Transport_Material; ?></a></li>
              <li><a href="ewTypeMasterDashboard.php"><?php echo $MENU_Equip_Work_Type; ?></a></li>
              <li><a href="spareMasterDashboard.php"><?php echo $MENU_Spare; ?></a></li>
              <li><a href="oilMasterDashboard.php"><?php echo $MENU_Oil; ?></a></li>
              <li><a href="supplierMasterDashboard.php"><?php echo $MENU_Supplier; ?></a></li>
              <li><a href="employeeMasterDashboard.php"><?php echo $MENU_emp; ?></a></li>
              <li><a href="laboursMasterDashboard.php"><?php echo $MENU_LABOUR; ?></a></li>
			  <li><a href="customerMasterAdd.php"><?php echo $MENU_CUSTOMER; ?></a></li>
			  <li><a href="productMasterAdd.php"><?php echo $MENU_PRODUCT; ?></a></li>
			  <li><a href="crusherMasterAdd.php"><?php echo $MENU_CRUSHER; ?></a></li>
              
            </ul>
          </li>
          <li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#"><?php echo $MENU_Transactions; ?><span class="caret"></span></a>
            <ul class="dropdown-menu" >
              <li><a href="tripTransportationDashboard.php"><?php echo $MENU_Transportation; ?></a></li>
              <li><a href="tripEquipmentDashboard.php"><?php echo $MENU_Equipment_Vehicle; ?></a></li>
            </ul>
          </li>
          <li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#"><?php echo $MENU_PURCHASE; ?><span class="caret"></span></a>
            <ul class="dropdown-menu" >
              <li><a href="piDieselInvoiceDashboard.php"><?php echo $MENU_Diesel_invoice; ?></a></li>
              <li><a href="piSpareInvoiceDashboard.php"><?php echo $MENU_Spare_invoice; ?></a></li>
              <li><a href="piOilInvoiceDashboard.php"><?php echo $MENU_Oil_invoice; ?></a></li>
              <li><a href="piTyreInvoiceDashboard.php"><?php echo $MENU_Tyre_invoice; ?></a></li>
			  <li><a href="piThottaInvoiceAdd.php"><?php echo $MENU_Thotta_invoice; ?></a></li>
            </ul>
          </li>
		  
		  <li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#"><?php echo $MENU_COMPRESSOR; ?><span class="caret"></span></a>
            <ul class="dropdown-menu" >
              <li><a href="Compressor.php"><?php echo $MENU_Explosive_utiliz; ?></a></li>
              
            </ul>
          </li>
		  
		  <li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#"><?php echo $MENU_TRANSACTION; ?><span class="caret"></span></a>
            <ul class="dropdown-menu" >
              <li><a href="MatetialIn.php"><?php echo $MENU_Material_In; ?></a></li>
              
            </ul>
          </li>
		  
          <li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#"><?php echo $MENU_Internal_Production; ?><span class="caret"></span></a>
            <ul class="dropdown-menu" >
              <li><a href="inDieselProDashboard.php"><?php echo $MENU_Diesel_OUT; ?></a></li>
              <li><a href="inSpareProDashboard.php"><?php echo $MENU_Spare_OUT; ?></a></li>
              <!-- <li><a href="inOilProDashboard.php"><?php //echo $MENU_Oil_OUT; ?></a></li>
              <li><a href="inTyreProDashboard.php"><?php //echo $MENU_Tyre_OUT; ?></a></li> -->
            </ul>
          </li>
          <li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#"><?php echo $MENU_Service; ?><span class="caret"></span></a>
            <ul class="dropdown-menu" >
              <li><a href="outSWorkShopDashboard.php"><?php echo $MENU_WorkShop; ?></a></li>
              <li><a href="outSOilDashboard.php"><?php echo $MENU_Oil_Service; ?></a></li>
              <li><a href="outSTyreDashboard.php"><?php echo $MENU_Tyre_Change; ?></a></li>
              <li><a href="outSRenewalDashboard.php"><?php echo $MENU_Renewals; ?></a></li>
            </ul>
          </li>
          <li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#"><?php echo $MENU_Accounts; ?><span class="caret"></span></a>
            <ul class="dropdown-menu" >
              <!-- <li><a href="accPIDashboard.php"><?php //echo $MENU_SupplierPayment; ?></a></li> -->
              <li><a href="accOverDashboard.php"><?php echo $MENU_AllSupplierPayment; ?></a></li>
              <li><a href="accWorkShopDashboard.php"><?php echo $MENU_AllWorkshopPayment; ?></a></li>
              <li><a href="accLabourDashboard.php"><?php echo $MENU_AllWorkLABOURS; ?></a></li>
              <li><a href="accEmpAdvDashboard.php"><?php echo $MENU_AllEmpAdv; ?></a></li>
              <!-- <li><a href="outSTyreDashboard.php"><?php //echo $MENU_Tyre_Change; ?></a></li>
              <li><a href="outSRenewalDashboard.php"><?php //echo $MENU_Renewals; ?></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="reportTripsDashboard.php"><?php echo $MENU_REPORT_TRIPT; ?></a></li>
              <li><a href="reportTripEDashboard.php"><?php echo $MENU_REPORT_TRIPE; ?></a></li>
              <li><a href="reportInDieselDashboard.php"><?php echo $MENU_REPORT_IN_DIESEL_SER; ?></a></li>
              <li><a href="reportPurchaseDashboard.php"><?php echo $MENU_REPORT_PURCHASE_REP; ?></a></li>
              <li><a href="reportWorkShopDashboard.php"><?php echo $MENU_REPORT_WORKSHOP; ?></a></li>
              <li><a href="reportAccountDashboard.php"><?php echo $MENU_REPORT_ACCOUNTS; ?></a></li>
              <li><a href="reportSpareOutDashboard.php"><?php echo $MENU_REPORT_Spare; ?></a></li>
              <li><a href="reportVehicleDashboard.php"><?php echo $MENU_REPORT_VEHICLE; ?></a></li>              
              <li><a href="reportDriverDashboard.php"><?php echo $MENU_REPORT_DRIVER; ?></a></li>
              <!-- <li><a href="reportLabourDashboard.php"><?php //echo $MENU_REPORT_LABOUR; ?></a></li> -->

              <li><a href="stockSpareDashboard.php"><?php echo $MENU_REPORT_SPARE_STOCK; ?></a></li>
              <li><a href="stockOilDashboard.php"><?php echo $MENU_REPORT_OIL_STOCK; ?></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($brandMaster_View  ==1) {  ?>
              <li><a href="brandMasterDashboard.php"><?php echo $MENU_Brand; ?></a></li>              
            <?php } if($vehicleMaster_View ==1) {  ?>  
              <li><a href="vehicleMasterDashboard.php"><?php echo $MENU_Vehicle; ?></a></li>
            <?php } if($siteMaster_View==1) {  ?>   
              <li><a href="siteMasterDashboard.php"><?php echo $MENU_Site; ?></a></li>
            <?php } if($tMaterialMaster_View==1) {  ?>   
              <li><a href="tMaterialMasterDashboard.php"><?php echo $MENU_Transport_Material; ?></a></li>
            <?php } if($ewTypeMaster_View==1) {  ?>     
              <li><a href="ewTypeMasterDashboard.php"><?php echo $MENU_Equip_Work_Type; ?></a></li>
            <?php } if($spareMaster_View==1) {  ?> 
              <li><a href="spareMasterDashboard.php"><?php echo $MENU_Spare; ?></a></li>
            <?php } if($oilMaster_View==1) {  ?> 
              <li><a href="oilMasterDashboard.php"><?php echo $MENU_Oil; ?></a></li>
            <?php } if($supplierMaster_View==1) {  ?> 
              <li><a href="supplierMasterDashboard.php"><?php echo $MENU_Supplier; ?></a></li>
            <?php } if($employeeMaster_View==1) {  ?> 
              <li><a href="employeeMasterDashboard.php"><?php echo $MENU_emp; ?></a></li>
            <?php } if($laboursMaster_View==1) {  ?>   
              <li><a href="laboursMasterDashboard.php"><?php echo $MENU_LABOUR; ?></a></li> 
            
<?php } if($CustomerMaster_View==1) {  ?>   
              <li><a href="customerMasterAdd.php"><?php echo $MENU_CUSTOMER; ?></a></li> 
            	

<?php } if($ProductMaster_View==1) {  ?>   
              <li><a href="productMasterAdd.php"><?php echo $MENU_PRODUCT; ?></a></li> 
            <?php } if($CrusherMaster_View==1) {  ?>   
              <li><a href="crusherMasterAdd.php"><?php echo $MENU_CRUSHER; ?></a></li> 
            <?php  }  ?>			
            </ul>
          </li>
          <li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#"><?php echo $MENU_Transactions; ?><span class="caret"></span></a>
            <ul class="dropdown-menu" >
            <?php  if($tripTransportation_View==1) {  ?>
              <li><a href="tripTransportationDashboard.php"><?php echo $MENU_Transportation; ?></a></li>
            <?php } if($tripEquipment_View==1) {  ?>
              <li><a href="tripEquipmentDashboard.php"><?php echo $MENU_Equipment_Vehicle; ?></a></li>
            <?php } ?>  
            </ul>
          </li>
          <li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#"><?php echo $MENU_PURCHASE; ?><span class="caret"></span></a>
            <ul class="dropdown-menu" >
            <?php if($piDieselInvoice_View==1) {  ?>
              <li><a href="piDieselInvoiceDashboard.php"><?php echo $MENU_Diesel_invoice; ?></a></li>
            <?php } if($piSpareInvoice_View==1) {  ?>
              <li><a href="piSpareInvoiceDashboard.php"><?php echo $MENU_Spare_invoice; ?></a></li>
            <?php } if($piOilInvoice_View==1) {  ?>
              <li><a href="piOilInvoiceDashboard.php"><?php echo $MENU_Oil_invoice; ?></a></li>
            <?php } if($piTyreInvoice_View==1) {  ?>
              <li><a href="piTyreInvoiceDashboard.php"><?php echo $MENU_Tyre_invoice; ?></a></li>
              <?php } if($piThotaInvoice_View==1) {  ?>
              <li><a href="piThotaInvoiceAdd.php"><?php echo $MENU_Thotta_invoice; ?></a></li>
              <?php }   ?>
            </ul>
          </li>
		  
		  <li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#"><?php echo $MENU_COMPRESSOR; ?><span class="caret"></span></a>
            <ul class="dropdown-menu" >
            <?php if($Compressor_View==1) {  ?>
              <li><a href="Compressor.php"><?php echo $MENU_Explosive_utiliz; ?></a></li>
              <?php }   ?>
            </ul>
          </li>
		  
		  <li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#"><?php echo $MENU_TRANSACTION; ?><span class="caret"></span></a>
            <ul class="dropdown-menu" >
            <?php if($MaterialIn_View==1) {  ?>
              <li><a href="MatetialIn.php"><?php echo $MENU_Material_In; ?></a></li>
              <?php }   ?>
            </ul>
          </li>
		  
		  
          <li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#"><?php echo $MENU_Internal_Production; ?><span class="caret"></span></a>
            <ul class="dropdown-menu" >
            <?php if($inDieselPro_View==1) {  ?>
              <li><a href="inDieselProDashboard.php"><?php echo $MENU_Diesel_OUT; ?></a></li>
            <?php } if($inSparePro_View==1) {  ?>
              <li><a href="inSpareProDashboard.php"><?php echo $MENU_Spare_OUT; ?></a></li>
            <?php  }  ?>
              <!-- <li><a href="inOilProDashboard.php"><?php //echo $MENU_Oil_OUT; ?></a></li>
              <li><a href="inTyreProDashboard.php"><?php //echo $MENU_Tyre_OUT; ?></a></li> -->
            </ul>
          </li>
          <li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#"><?php echo $MENU_Service; ?><span class="caret"></span></a>
            <ul class="dropdown-menu" >
            <?php  if($outSWorkShop_View==1) {  ?>
              <li><a href="outSWorkShopDashboard.php"><?php echo $MENU_WorkShop; ?></a></li>
            <?php } if($outSOil_View==1) {  ?>  
              <li><a href="outSOilDashboard.php"><?php echo $MENU_Oil_Service; ?></a></li>
            <?php } if($outSTyre_View==1) {  ?>
              <li><a href="outSTyreDashboard.php"><?php echo $MENU_Tyre_Change; ?></a></li>
            <?php } if($outSRenewal_View==1) {  ?>
              <li><a href="outSRenewalDashboard.php"><?php echo $MENU_Renewals; ?></a></li>
            <?php  }  ?>
            </ul>
          </li>
          <li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown" href="#"><?php echo $MENU_Accounts; ?><span class="caret"></span></a>
            <ul class="dropdown-menu" >
            <?php /*if($accPI_View==1) {  ?>
              <li><a href="accPIDashboard.php"><?php echo $MENU_SupplierPayment; ?></a></li>
            <?php } */ if($accOver_View==1) {  ?>    
              <li><a href="accOverDashboard.php"><?php echo $MENU_AllSupplierPayment; ?></a></li>
            <?php } if($accWorkShop_View==1) {  ?>
              <li><a href="accWorkShopDashboard.php"><?php echo $MENU_AllWorkshopPayment; ?></a></li>
            <?php  }  if($accLabour_View==1) {  ?>
              <li><a href="accLabourDashboard.php"><?php echo $MENU_AllWorkLABOURS; ?></a></li>
            <?php  }  if($accEmpAdv_View==1)  { ?>
              <li><a href="accEmpAdvDashboard.php"><?php echo $MENU_AllEmpAdv; ?></a></li>
            <?php }  ?>

              <!-- <li><a href="outSTyreDashboard.php"><?php //echo $MENU_Tyre_Change; ?></a></li>
              <li><a href="outSRenewalDashboard.php"><?php //echo $MENU_Renewals; ?></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" >
            <?php  if($reportTrips_View==1) {  ?>
              <li><a href="reportTripsDashboard.php"><?php echo $MENU_REPORT_TRIPT; ?></a></li>
              <li><a href="reportTripEDashboard.php"><?php echo $MENU_REPORT_TRIPE; ?></a></li>
              <li><a href="reportInDieselDashboard.php"><?php echo $MENU_REPORT_IN_DIESEL_SER; ?></a></li>
              <li><a href="reportPurchaseDashboard.php"><?php echo $MENU_REPORT_PURCHASE_REP; ?></a></li>

              <li><a href="reportWorkShopDashboard.php"><?php echo $MENU_REPORT_WORKSHOP; ?></a></li>
              <li><a href="reportAccountDashboard.php"><?php echo $MENU_REPORT_ACCOUNTS; ?></a></li>
              <li><a href="reportDriverDashboard.php"><?php echo $MENU_REPORT_DRIVER; ?></a></li>
              <li><a href="reportSpareOutDashboard.php"><?php echo $MENU_REPORT_Spare; ?></a></li>
              <li><a href="reportVehicleDashboard.php"><?php echo $MENU_REPORT_VEHICLE; ?></a></li>
              <!-- <li><a href="reportLabourDashboard.php"><?php //echo $MENU_REPORT_LABOUR; ?></a></li> -->
              
              <li><a href="stockSpareDashboard.php"><?php echo $MENU_REPORT_SPARE_STOCK; ?></a></li>
              <li><a href="stockOilDashboard.php"><?php echo $MENU_REPORT_OIL_STOCK; ?></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  } ?>