<?php

session_start();
// If the user is not logged in redirect to the login page...
if (!isset($_SESSION['loggedin'])) {
	header('Location: index.html');
	exit;
}



if(!isset($page_title)) {$page_title = 'Staff Secure Area';}
?>


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="css/mystyle.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
    <title><?php echo $page_title; ?></title>
</head>
<body>

<navigation>
<div class="navbar">
  <a href="staffhome.php">Home</a>
  <div class="dropdown">
    <button class="dropbtn"> Cars 
      <i class="fa fa-caret-down"></i>
    </button>
    <div class="dropdown-content">
      <a href="showcars.php">Show All</a>
      <a href="searchcars.php">Search</a>
      
      
 
    </div>
  </div> 
  <div class="dropdown">
    <button class="dropbtn"> Invoice
      <i class="fa fa-caret-down"></i>
    </button>
    <div class="dropdown-content">
    <a href="showmyinvoices.php">Show my invoice</a>
      
    </div>
  </div> 
  
  <div class="dropdown">
    <button class="dropbtn"> Profile 
      <i class="fa fa-caret-down"></i>
    </button>
    <div class="dropdown-content">
      <a href="showprofile.php">Show </a>
      <a href="updateprofile.php">Update </a>
    </div>
  </div> 


  <a href="logout.php">Log Out</a>
</div>
</navigation>

<header>
  <h1> Staff Portal Secure Area </h1>
  <h1> Welcome to the Canary Wharf Prestegious Car Showroom  </h1>
</header>