<?php
 session_start();
define("APPURL", "http://localhost/hotel-booking/");
 ?>



<!DOCTYPE html>
<html lang="en">
  <head>
    <title>ShiaStay Hotels — Where Comfort Meets Elegance</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="ShiaStay Hotels — Premium hotel accommodations with world-class service and unmatched comfort.">

    <link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500;600;700&display=swap" rel="stylesheet">

    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">

    <link rel="stylesheet" href="<?php echo APPURL; ?>/css/animate.css">
    <link rel="stylesheet" href="<?php echo APPURL; ?>/css/owl.carousel.min.css">
    <link rel="stylesheet" href="<?php echo APPURL; ?>/css/owl.theme.default.min.css">
    <link rel="stylesheet" href="<?php echo APPURL; ?>/css/magnific-popup.css">
    <link rel="stylesheet" href="<?php echo APPURL; ?>/css/bootstrap-datepicker.css">
    <link rel="stylesheet" href="<?php echo APPURL; ?>/css/jquery.timepicker.css">
    <link rel="stylesheet" href="<?php echo APPURL; ?>/css/flaticon.css">
    <link rel="stylesheet" href="<?php echo APPURL; ?>/css/style.css">
    <link rel="stylesheet" href="<?php echo APPURL; ?>/css/luxstay.css?v=<?php echo time(); ?>">
  </head>
  <body>



    <!-- Main Navigation -->
		<nav class="navbar navbar-expand-lg navbar-dark ftco_navbar bg-dark ftco-navbar-light" id="ftco-navbar">
	    <div class="container">
	    	<a class="navbar-brand" href="<?php echo APPURL; ?>home.php">ShiaStay<span> Hotels</span></a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#ftco-nav" aria-controls="ftco-nav" aria-expanded="false" aria-label="Toggle navigation">
          <span class="fa fa-bars"></span>
        </button>
        <div class="collapse navbar-collapse" id="ftco-nav">
          <ul class="navbar-nav ml-auto">
          	<li class="nav-item active"><a href="<?php echo APPURL; ?>home.php" class="nav-link">Home</a></li>
          	<li class="nav-item"><a href="<?php echo APPURL; ?>about.php" class="nav-link">About</a></li>
          	<li class="nav-item"><a href="<?php echo APPURL; ?>rooms.php" class="nav-link">Rooms</a></li>
            <li class="nav-item"><a href="<?php echo APPURL; ?>contact.php" class="nav-link">Contact</a></li>

		  <?php if(!isset($_SESSION['username'])) : ?>
            <li class="nav-item"><a href="<?php echo APPURL; ?>index.php" class="nav-link">Login</a></li>
		  <?php else: ?>
		  <li class="nav-item dropdown">
          <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-expanded="false">
            <i class="fa fa-user-circle mr-1"></i><?php echo htmlspecialchars($_SESSION['username']); ?>
                </a>
                <div class="dropdown-menu" aria-labelledby="navbarDropdown">
                  <a class="dropdown-item" href="<?php echo APPURL; ?>/bookings/my-bookings.php"><i class="fa fa-calendar-check-o mr-1"></i> My Reservations</a>
                  <div class="dropdown-divider"></div>
                  <a class="dropdown-item" href="<?php echo APPURL; ?>/auth/logout.php"><i class="fa fa-sign-out mr-1"></i> Sign Out</a>
                </div>
              </li>
		  <?php endif ?>
        </ul>
	      </div>
	    </div>
	  </nav>
    <!-- END nav -->