<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="/header/bootstrap.min.css" rel="stylesheet">
    <title>Admin</title>
    <script src="/header/jquery.min.js"></script>
    <link rel="stylesheet" href="/header/all.css">
    <link rel="stylesheet" href="/header/admin_header.css">
    <script src="/sweetalert.min.js"></script>
</head>
<body>

    <nav class="navbar navbar-expand-lg navbar-light bg-light">
        <div class="container-fluid">
          <a class="navbar-brand" href="/admin"> <img id="logo" src="/images/futuretech.png" alt=""> </a>
          <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
          </button>
          <div class="collapse navbar-collapse" id="navbarSupportedContent">
            <ul class="navbar-nav me-auto mb-2 mb-lg-0">
              <% if(currentUser){ if(currentUser.role=="admin"){%>
                <li class="nav-item">
                    <a class="nav-link active" aria-current="page" href="/order/all">Orders</a>
                  </li>
                <a id="logout-btn" class="btn btn-danger" href="/logout">Logout</a>
                <%} }%>
                        </ul>
          </div>
        </div>
      </nav>


