-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
72 lines (71 loc) · 3.28 KB
/
header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php
session_start();
if($_SESSION['status_login']!=true){
header('location: login.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Fast Laundry</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Load Require CSS -->
<link href="assets/css/bootstrap.min.css" rel="stylesheet">
<!-- Font CSS -->
<link href="assets/css/boxicon.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Open Sans:wght@300;400;600&display=swap" rel="stylesheet">
<!-- Load Tempalte CSS -->
<link rel="stylesheet" href="assets/css/templatemo.css">
<!-- Custom CSS -->
<link rel="stylesheet" href="assets/css/custom.css">
</head>
<body>
<!-- Header -->
<nav id="main_nav" class="navbar navbar-expand-lg navbar-light bg-white shadow">
<div class="container d-flex justify-content-between align-items-center">
<a class="navbar-brand h1" href="home.php">
<i class='bx bx-buildings bx-sm text-dark'></i>
<span class="text-dark h4">Fast</span> <span class="text-primary h4">Laundry</span>
</a>
<div class="align-self-center collapse navbar-collapse flex-fill d-lg-flex justify-content-lg-between" id="navbar-toggler-success">
<div class="flex-fill mx-xl-5 mb-2">
<ul class="nav navbar-nav d-flex justify-content-between mx-xl-5 text-center text-dark">
<li class="nav-item">
<a class="nav-link btn-outline-primary rounded-pill px-3" href="home.php">Home</a>
</li>
<?php
if($_SESSION['role'] != 'owner'){
?>
<li class="nav-item">
<a class="nav-link btn-outline-primary rounded-pill px-3" href="member.php">Member</a>
</li>
<?php
if($_SESSION['role'] != 'kasir'){
?>
<li class="nav-item">
<a class="nav-link btn-outline-primary rounded-pill px-3" href="user.php">User</a>
</li>
<li class="nav-item">
<a class="nav-link btn-outline-primary rounded-pill px-3" href="paket.php">Package List</a>
</li>
<?php
}
?>
<li class="nav-item">
<a class="nav-link btn-outline-primary rounded-pill px-3" href="pesan.php">Checkout</a>
</li>
<?php
}
?>
<li class="nav-item">
<a class="nav-link btn-outline-primary rounded-pill px-3" href="transaksi.php">Transaksi</a>
</li>
<li class="nav-item">
<a class="nav-link btn-outline-primary rounded-pill px-3" aria-current="page" href="logout.php">Logout</a>
</li>
</ul>
</div>
</div>
</div>
</nav>