<?php 
include('config/sessionFrontend.php')
?>
<!DOCTYPE html>
<html lang="id">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
  <title>Leon Gym</title>
  <link href="css/bootstrap.min.css" rel="stylesheet">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css">
  
  <link href="css/style.css" rel="stylesheet">
  <link href="css/membership.css" rel="stylesheet">
</head>
<body>

<nav class="navbar-custom">
  <div class="container">
    <div class="brand">
      <a href="Home.php">LEON GYM</a>
    </div>
    <ul class="nav-links">
      <li><a href="index.php">Home</a></li>
      <li><a href="about.php">About Us</a></li>
      <li><a href="product.php">Products</a></li>
      <li><a href="membership.php">Membership</a></li>
      <?php if ($isLoggedIn): ?>
        <li><a href="Profile.php">Profile</a></li>
      <?php endif; ?>
    </ul>

    <?php if ($isLoggedIn): ?>
      <div class="dropdown">
        <a href="Profile.php" class="btn-signin" role="button" data-bs-toggle="dropdown" aria-expanded="false">
          <?= htmlspecialchars($fullName) ?>
        </a>
        <ul class="dropdown-menu">
          <li><a class="dropdown-item" href="transaksi.php">Transaksi</a></li>
          <li><a class="dropdown-item" href="config/logout.php">Logout</a></li>
        </ul>
      </div>  
    <?php else: ?>
      <a href="login.php" class="btn-signin">SIGN IN</a>
    <?php endif; ?>
  </div>
</nav>
