-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidebar.php
45 lines (45 loc) · 2.79 KB
/
sidebar.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
<div class="col-lg-3">
<nav class="navbar navbar-expand-lg bg-light rounded border mt-2">
<div class="container-fluid">
<button class="navbar-toggler" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasNavbar"
aria-controls="offcanvasNavbar" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="offcanvas offcanvas-start" tabindex="-1" id="offcanvasNavbar"
aria-labelledby="offcanvasNavbarLabel" style="width:250px">
<div class="offcanvas-header">
<h5 class="offcanvas-title" id="offcanvasNavbarLabel">Offcanvas</h5>
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body">
<ul class="navbar-nav nav-pills flex-column justify-content-end flex-grow-1">
<li class="nav-item">
<a class="nav-link ps-2 <?php echo ((isset($_GET['x']) && $_GET['x'] == 'home') || !isset($_GET['x'])) ? 'active link-light' : 'link-dark'; ?>"
aria-current="page" href="home"><i class="bi bi-house-door"></i> Dashboard</a>
</li>
<li class="nav-item">
<a class="nav-link ps-2 <?php echo (isset($_GET['x']) && $_GET['x'] == 'order') ? 'active link-light' : 'link-dark'; ?>"
href="order"><i class="bi bi-cart4"></i>
Order</a>
</li>
<li class="nav-item">
<a class="nav-link ps-2 <?php echo (isset($_GET['x']) && $_GET['x'] == 'customer') ? 'active link-light' : 'link-dark'; ?>"
href="customer"><i class="bi bi-person-badge"></i>
Customer</a>
</li>
<li class="nav-item">
<a class="nav-link ps-2 <?php echo (isset($_GET['x']) && $_GET['x'] == 'product') ? 'active link-light' : 'link-dark'; ?>"
href="product"><i class="bi bi-card-checklist"></i>
Product</a>
</li>
<li class="nav-item">
<a class="nav-link ps-2 <?php echo (isset($_GET['x']) && $_GET['x'] == 'report') ? 'active link-light' : 'link-dark'; ?>"
href="report"><i class="bi bi-clipboard2-data-fill"></i>
Report</a>
</li>
</ul>
</div>
</div>
</div>
</nav>
</div>