<?php
require_once __DIR__ . "/../config.inc.php";
?>
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title><?= e(SITE_NAME) ?></title>
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body class="bg-light">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
  <div class="container">
    <a class="navbar-brand" href="index.php"><?= e(SITE_NAME) ?></a>
    <div class="d-flex gap-2">
      <?php if (user_logged_in()): ?>
        <span class="navbar-text text-white me-2">Hi, <?= e($_SESSION['user_name']) ?></span>
        <a class="btn btn-outline-light btn-sm" href="my_orders.php">My Orders</a>
        <a class="btn btn-outline-light btn-sm" href="change_password.php">Change Password</a>
        <a class="btn btn-warning btn-sm" href="logout.php">Logout</a>
      <?php else: ?>
        <a class="btn btn-outline-light btn-sm" href="login.php">Login</a>
        <a class="btn btn-success btn-sm" href="signup.php">Sign Up</a>
      <?php endif; ?>
    </div>
  </div>
</nav>

<div class="container py-4">