-
Notifications
You must be signed in to change notification settings - Fork 0
/
dashboard.php
213 lines (204 loc) · 8.19 KB
/
dashboard.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<?php
include 'config.php';
// if (!isset($_SESSION['username'])) {
// header("Location: admin-login.php");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="css/bootstrap.min.css" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css"
/>
<link rel="stylesheet" href="css/dataTables.bootstrap5.min.css" />
<link rel="stylesheet" href="css/style.css" />
<title>DISBAR</title>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-secondary fixed-top">
<div class="container-fluid">
<button
class="navbar-toggler"
type="button"
data-bs-toggle="offcanvas"
data-bs-target="#sidebar"
aria-controls="offcanvasExample"
>
<span class="navbar-toggler-icon" data-bs-target="#sidebar"></span>
</button>
<a
class="navbar-brand me-auto ms-lg-0 ms-3 text-uppercase fw-bold"
href="#"
>DISBAR
</a>
<button
class="navbar-toggler"
type="button"
data-bs-toggle="collapse"
data-bs-target="#topNavBar"
aria-controls="topNavBar"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="topNavBar">
<ul class="navbar-nav ms-auto">
<a class="navbar-brand" href="#"><i class="bi bi-bell"></i></a>
<li class="nav-item dropdown">
<a
class="nav-link dropdown-toggle ms-2"
href="#"
role="button"
data-bs-toggle="dropdown"
aria-expanded="false"
>
<i class="bi bi-person-fill"></i>
</a>
<ul class="dropdown-menu dropdown-menu-end">
<li><a class="dropdown-item" href="#">Profil</a></li>
<li><a class="dropdown-item" href="admin-login.php">Keluar</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<div class="offcanvas offcanvas-start sidebar-nav bg-secondary"tabindex="-1" id="sidebar">
<div class="offcanvas-body p-0">
<nav class="navbar-dark my-3">
<ul class="navbar-nav">
<li>
<a href="#" class="nav-link px-3 active mb-2">
<span class="me-2"><i class="bi bi-speedometer2"></i></span>
<span>Dashboard</span>
</a>
</li>
<li>
<!-- <a href="pesanan.php" class="nav-link px-3 mb-3">
<span class="me-2"><i class="bi bi-bag"></i></span>
<span>Pesanan</span>
</a> -->
</li>
<li>
<a href="./aa/produk.php" class="nav-link px-3">
<span class="me-2"><i class="bi bi-archive"></i></span>
<span>Produk</span>
</a>
</li>
<li>
<a href="./aa/kategory.php" class="nav-link px-3">
<span class="me-2"><i class="bi bi-archive"></i></span>
<span>Kategory</span>
</a>
</li>
<li>
<li>
<a href="keluar.php" class="nav-link px-3">
<span class="me-2"><i class="bi bi-archive"></i></span>
<span>Keluar</span>
</a>
</li>
</ul>
</nav>
</div>
</div>
<main class="mt-5 pt-3">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<h4>Dashboard</h4>
</div>
</div>
</div>
<div class="container-fluid px-4">
<div class="row g-3 my-2">
<div class="col-md-3">
<div class="p-3 bg-primary shadow-sm d-flex justify-content-around align-items-center rounded text-light">
<div>
<h3 class="fs-2">0</h3>
<p class="fs-5">Products</p>
</div>
<i class="fas fa-gift fs-1 primary-text border rounded-full secondary-bg p-3"></i>
</div>
</div>
<div class="col-md-3">
<div class="p-3 bg-primary shadow-sm d-flex justify-content-around align-items-center rounded text-light">
<div>
<h3 class="fs-2">0</h3>
<p class="fs-5">Penjualan</p>
</div>
<i
class="fas fa-hand-holding-usd fs-1 primary-text border rounded-full secondary-bg p-3"></i>
</div>
</div>
<div class="col-md-3">
<div class="p-3 bg-primary shadow-sm d-flex justify-content-around align-items-center rounded text-light">
<div>
<h3 class="fs-2">0</h3>
<p class="fs-5">Terkirim</p>
</div>
<i class="fas fa-truck fs-1 primary-text border rounded-full secondary-bg p-3"></i>
</div>
</div>
<div class="col-md-3">
<div class="p-3 bg-primary shadow-sm d-flex justify-content-around align-items-center rounded text-light">
<div>
<h3 class="fs-2">%0</h3>
<p class="fs-5">Pendapatan</p>
</div>
<i class="fas fa-chart-line fs-1 primary-text border rounded-full secondary-bg p-3"></i>
</div>
</div>
</div>
<div class="row my-5">
<h3 class="fs-4 mb-3">Recent Orders</h3>
<div class="col">
<table class="table bg-white rounded shadow-sm table-hover">
<thead>
<tr>
<th scope="col" width="50">#</th>
<th scope="col">Product</th>
<th scope="col">Customer</th>
<th scope="col">Price</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td>Sayur Bayam</td>
<td>JThoriq</td>
<td>Rp.5000</td>
</tr>
<tr>
<th scope="row">2</th>
<td>Ayam Potong</td>
<td>Firman</td>
<td>Rp.28.000</td>
</tr>
<tr>
<th scope="row">3</th>
<td>Minyak Goreng</td>
<td>Arim</td>
<td>RP 18.000</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</main>
<script src="./js/bootstrap.bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/chart.min.js"></script>
<script src="./js/jquery-3.5.1.js"></script>
<script src="./js/jquery.dataTables.min.js"></script>
<script src="./js/dataTables.bootstrap5.min.js"></script>
<script src="./js/script.js"></script>
</body>
</html>