<?php
$page = basename($_SERVER['PHP_SELF']);
include('include/header_links.php');


?>
<html>
<head>
    <link rel="stylesheet" type="text/css" href="assets/css/style.css">
</head>
<body>
<nav class="navbar">
    <div class="hamburger">
        <a href="#">
            <i class="fas fa-bars"></i>
        </a>
    </div><br>
    
        <div class="welcome-message">
             <h1>WELCOME &nbsp <?php echo strtoupper($_SESSION['user']['name']); ?>
        </div>
  
    <div class="navbar_content">
        <a href="dashboard.php" class="home-button">Home</a>
        <a href="resetPassword.php" class="reset-button">Reset Password</a>
        <a href="logout.php" class="logout-button">Logout</a>
    </div>
</nav>


<nav class="sidebar">  
<ul>
    <li class="first">
      <a href="dashboard.php">
        <img src="assets/image/lehraLOGO.png" class="logo" alt="Logo">
      </a>
    </li>
    <li <?php echo ($page === '_new_order.php') ? 'class="active"' : ''; ?> class=navAnchor>
  <a href="_new_order.php" class="navAnchor">Order Punch</a>
</li>
    <li <?php echo ($page === '_stock_list.php') ? 'class="active"' : ''; ?>>
      <a href="_stock_list.php" class="navAnchor">WareHouse</a>
    </li>
    <li <?php echo ($page === '_procurement.php') ? 'class="active"' : ''; ?>>
      <a href="_procurement.php" class="navAnchor">Procurement</a> 
    </li>
    <li <?php echo ($page === 'store.php') ? 'class="active"' : ''; ?>>
      <a href="store.php" class="navAnchor">Store</a>
    </li>
    
    <li <?php echo ($page === '_reports.php') ? 'class="active"' : '_reports.php'; ?>class="navAnchor">
  <a href="_reports.php" class="navAnchor">Reports</a>
</li>

    <li <?php echo ($page === '') ? 'class="active"' : ''; ?>>
      <a href="" class="navAnchor">Cutting</a>
    </li>    
    <li <?php echo ($page === '') ? 'class="active"' : ''; ?>>
      <a href="" class="navAnchor">Machining</a>
    </li>
    <li <?php echo ($page === '') ? 'class="active"' : ''; ?>class="navAnchor">
  <a href="" class="navAnchor">Tempering</a>
</li>

<li <?php echo ($page === '') ? 'class="active"' : ''; ?>class="navAnchor">
  <a href="" class="navAnchor">Re-Machining</a>
</li>

<li <?php echo ($page === '') ? 'class="active"' : ''; ?>class="navAnchor">
  <a href="" class="navAnchor">BOM</a>
</li>

  </ul>
</nav>

</body>

</html>
