-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
371 lines (365 loc) · 18 KB
/
index.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
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
<?php
use Pico\Database\PicoDatabaseQueryBuilder;
require_once "inc/auth-with-login-form.php";
require_once "inc/header.php";
?>
<script src="assets/libs/apexcharts/dist/apexcharts.min.js"></script>
<script src="assets/libs/simplebar/dist/simplebar.js"></script>
<script src="assets/js/dashboard.js"></script>
<!-- Row 1 -->
<div class="row">
<div class="col-lg-8 d-flex align-items-strech">
<div class="card w-100">
<div class="card-body">
<div class="d-sm-flex d-block align-items-center justify-content-between mb-9">
<div class="mb-3 mb-sm-0">
<h5 class="card-title fw-semibold">Sales Overview</h5>
</div>
<div>
<select class="form-select">
<option value="1">March 2023</option>
<option value="2">April 2023</option>
<option value="3">May 2023</option>
<option value="4">June 2023</option>
</select>
</div>
</div>
<div id="chart"></div>
</div>
</div>
</div>
<div class="col-lg-4">
<div class="row">
<div class="col-lg-12">
<!-- Yearly Breakup -->
<?php
$query = new PicoDatabaseQueryBuilder($database->getDatabaseType());
?>
<div class="card overflow-hidden">
<div class="card-body p-4">
<h5 class="card-title mb-9 fw-semibold">Yearly Breakup</h5>
<div class="row align-items-center">
<div class="col-8">
<h4 class="fw-semibold mb-3">36,358</h4>
<div class="d-flex align-items-center mb-3">
<span class="me-1 rounded-circle bg-light-success round-20 d-flex align-items-center justify-content-center">
<i class="ti ti-arrow-up-left text-success"></i>
</span>
<p class="text-dark me-1 fs-3 mb-0">+9%</p>
<p class="fs-3 mb-0">last year</p>
</div>
<div class="d-flex align-items-center">
<div class="me-4">
<span class="round-8 bg-primary rounded-circle me-2 d-inline-block"></span>
<span class="fs-2">2023</span>
</div>
<div>
<span class="round-8 bg-light-primary rounded-circle me-2 d-inline-block"></span>
<span class="fs-2">2023</span>
</div>
</div>
</div>
<div class="col-4">
<div class="d-flex justify-content-center">
<div id="breakup"></div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-12">
<!-- Monthly Earnings -->
<div class="card">
<div class="card-body">
<div class="row alig n-items-start">
<div class="col-8">
<h5 class="card-title mb-9 fw-semibold"> Monthly Earnings </h5>
<h4 class="fw-semibold mb-3">$6,820</h4>
<div class="d-flex align-items-center pb-1">
<span class="me-2 rounded-circle bg-light-danger round-20 d-flex align-items-center justify-content-center">
<i class="ti ti-arrow-down-right text-danger"></i>
</span>
<p class="text-dark me-1 fs-3 mb-0">+9%</p>
<p class="fs-3 mb-0">last year</p>
</div>
</div>
<div class="col-4">
<div class="d-flex justify-content-end">
<div class="text-white bg-secondary rounded-circle p-6 d-flex align-items-center justify-content-center">
<i class="ti ti-currency-dollar fs-6"></i>
</div>
</div>
</div>
</div>
</div>
<div id="earning"></div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-4 d-flex align-items-stretch">
<div class="card w-100">
<div class="card-body p-4">
<div class="mb-4">
<h5 class="card-title fw-semibold">Recent Transactions</h5>
</div>
<ul class="timeline-widget mb-0 position-relative mb-n5">
<li class="timeline-item d-flex position-relative overflow-hidden">
<div class="timeline-time text-dark flex-shrink-0 text-end">09:30</div>
<div class="timeline-badge-wrap d-flex flex-column align-items-center">
<span class="timeline-badge border-2 border border-primary flex-shrink-0 my-8"></span>
<span class="timeline-badge-border d-block flex-shrink-0"></span>
</div>
<div class="timeline-desc fs-3 text-dark mt-n1">Payment received from John Doe of $385.90</div>
</li>
<li class="timeline-item d-flex position-relative overflow-hidden">
<div class="timeline-time text-dark flex-shrink-0 text-end">10:00 am</div>
<div class="timeline-badge-wrap d-flex flex-column align-items-center">
<span class="timeline-badge border-2 border border-info flex-shrink-0 my-8"></span>
<span class="timeline-badge-border d-block flex-shrink-0"></span>
</div>
<div class="timeline-desc fs-3 text-dark mt-n1 fw-semibold">New sale recorded <a href="javascript:void(0)" class="text-primary d-block fw-normal">#ML-3467</a>
</div>
</li>
<li class="timeline-item d-flex position-relative overflow-hidden">
<div class="timeline-time text-dark flex-shrink-0 text-end">12:00 am</div>
<div class="timeline-badge-wrap d-flex flex-column align-items-center">
<span class="timeline-badge border-2 border border-success flex-shrink-0 my-8"></span>
<span class="timeline-badge-border d-block flex-shrink-0"></span>
</div>
<div class="timeline-desc fs-3 text-dark mt-n1">Payment was made of $64.95 to Michael</div>
</li>
<li class="timeline-item d-flex position-relative overflow-hidden">
<div class="timeline-time text-dark flex-shrink-0 text-end">09:30 am</div>
<div class="timeline-badge-wrap d-flex flex-column align-items-center">
<span class="timeline-badge border-2 border border-warning flex-shrink-0 my-8"></span>
<span class="timeline-badge-border d-block flex-shrink-0"></span>
</div>
<div class="timeline-desc fs-3 text-dark mt-n1 fw-semibold">New sale recorded <a href="javascript:void(0)" class="text-primary d-block fw-normal">#ML-3467</a>
</div>
</li>
<li class="timeline-item d-flex position-relative overflow-hidden">
<div class="timeline-time text-dark flex-shrink-0 text-end">09:30 am</div>
<div class="timeline-badge-wrap d-flex flex-column align-items-center">
<span class="timeline-badge border-2 border border-danger flex-shrink-0 my-8"></span>
<span class="timeline-badge-border d-block flex-shrink-0"></span>
</div>
<div class="timeline-desc fs-3 text-dark mt-n1 fw-semibold">New arrival recorded
</div>
</li>
<li class="timeline-item d-flex position-relative overflow-hidden">
<div class="timeline-time text-dark flex-shrink-0 text-end">12:00 am</div>
<div class="timeline-badge-wrap d-flex flex-column align-items-center">
<span class="timeline-badge border-2 border border-success flex-shrink-0 my-8"></span>
</div>
<div class="timeline-desc fs-3 text-dark mt-n1">Payment Done</div>
</li>
</ul>
</div>
</div>
</div>
<div class="col-lg-8 d-flex align-items-stretch">
<div class="card w-100">
<div class="card-body p-4">
<h5 class="card-title fw-semibold mb-4">Recent Transactions</h5>
<div class="table-responsive">
<table class="table text-nowrap mb-0 align-middle">
<thead class="text-dark fs-4">
<tr>
<th class="border-bottom-0">
<h6 class="fw-semibold mb-0">Id</h6>
</th>
<th class="border-bottom-0">
<h6 class="fw-semibold mb-0">Assigned</h6>
</th>
<th class="border-bottom-0">
<h6 class="fw-semibold mb-0">Name</h6>
</th>
<th class="border-bottom-0">
<h6 class="fw-semibold mb-0">Priority</h6>
</th>
<th class="border-bottom-0">
<h6 class="fw-semibold mb-0">Budget</h6>
</th>
</tr>
</thead>
<tbody>
<tr>
<td class="border-bottom-0">
<h6 class="fw-semibold mb-0">1</h6>
</td>
<td class="border-bottom-0">
<h6 class="fw-semibold mb-1">Sunil Joshi</h6>
<span class="fw-normal">Web Designer</span>
</td>
<td class="border-bottom-0">
<p class="mb-0 fw-normal">Elite Admin</p>
</td>
<td class="border-bottom-0">
<div class="d-flex align-items-center gap-2">
<span class="badge bg-primary rounded-3 fw-semibold">Low</span>
</div>
</td>
<td class="border-bottom-0">
<h6 class="fw-semibold mb-0 fs-4">$3.9</h6>
</td>
</tr>
<tr>
<td class="border-bottom-0">
<h6 class="fw-semibold mb-0">2</h6>
</td>
<td class="border-bottom-0">
<h6 class="fw-semibold mb-1">Andrew McDownland</h6>
<span class="fw-normal">Project Manager</span>
</td>
<td class="border-bottom-0">
<p class="mb-0 fw-normal">Real Homes WP Theme</p>
</td>
<td class="border-bottom-0">
<div class="d-flex align-items-center gap-2">
<span class="badge bg-secondary rounded-3 fw-semibold">Medium</span>
</div>
</td>
<td class="border-bottom-0">
<h6 class="fw-semibold mb-0 fs-4">$24.5k</h6>
</td>
</tr>
<tr>
<td class="border-bottom-0">
<h6 class="fw-semibold mb-0">3</h6>
</td>
<td class="border-bottom-0">
<h6 class="fw-semibold mb-1">Christopher Jamil</h6>
<span class="fw-normal">Project Manager</span>
</td>
<td class="border-bottom-0">
<p class="mb-0 fw-normal">MedicalPro WP Theme</p>
</td>
<td class="border-bottom-0">
<div class="d-flex align-items-center gap-2">
<span class="badge bg-danger rounded-3 fw-semibold">High</span>
</div>
</td>
<td class="border-bottom-0">
<h6 class="fw-semibold mb-0 fs-4">$12.8k</h6>
</td>
</tr>
<tr>
<td class="border-bottom-0">
<h6 class="fw-semibold mb-0">4</h6>
</td>
<td class="border-bottom-0">
<h6 class="fw-semibold mb-1">Nirav Joshi</h6>
<span class="fw-normal">Frontend Engineer</span>
</td>
<td class="border-bottom-0">
<p class="mb-0 fw-normal">Hosting Press HTML</p>
</td>
<td class="border-bottom-0">
<div class="d-flex align-items-center gap-2">
<span class="badge bg-success rounded-3 fw-semibold">Critical</span>
</div>
</td>
<td class="border-bottom-0">
<h6 class="fw-semibold mb-0 fs-4">$2.4k</h6>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6 col-xl-3">
<div class="card overflow-hidden rounded-2">
<div class="position-relative">
<a href="javascript:void(0)"><img src="../assets/images/products/s4.jpg" class="card-img-top rounded-0" alt="..."></a>
<a href="javascript:void(0)" class="bg-primary rounded-circle p-2 text-white d-inline-flex position-absolute bottom-0 end-0 mb-n3 me-3" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-title="Add To Cart"><i class="ti ti-basket fs-4"></i></a>
</div>
<div class="card-body pt-3 p-4">
<h6 class="fw-semibold fs-4">Boat Headphone</h6>
<div class="d-flex align-items-center justify-content-between">
<h6 class="fw-semibold fs-4 mb-0">$50 <span class="ms-2 fw-normal text-muted fs-3"><del>$65</del></span></h6>
<ul class="list-unstyled d-flex align-items-center mb-0">
<li><a class="me-1" href="javascript:void(0)"><i class="ti ti-star text-warning"></i></a></li>
<li><a class="me-1" href="javascript:void(0)"><i class="ti ti-star text-warning"></i></a></li>
<li><a class="me-1" href="javascript:void(0)"><i class="ti ti-star text-warning"></i></a></li>
<li><a class="me-1" href="javascript:void(0)"><i class="ti ti-star text-warning"></i></a></li>
<li><a class="" href="javascript:void(0)"><i class="ti ti-star text-warning"></i></a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="col-sm-6 col-xl-3">
<div class="card overflow-hidden rounded-2">
<div class="position-relative">
<a href="javascript:void(0)"><img src="../assets/images/products/s5.jpg" class="card-img-top rounded-0" alt="..."></a>
<a href="javascript:void(0)" class="bg-primary rounded-circle p-2 text-white d-inline-flex position-absolute bottom-0 end-0 mb-n3 me-3" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-title="Add To Cart"><i class="ti ti-basket fs-4"></i></a>
</div>
<div class="card-body pt-3 p-4">
<h6 class="fw-semibold fs-4">MacBook Air Pro</h6>
<div class="d-flex align-items-center justify-content-between">
<h6 class="fw-semibold fs-4 mb-0">$650 <span class="ms-2 fw-normal text-muted fs-3"><del>$900</del></span></h6>
<ul class="list-unstyled d-flex align-items-center mb-0">
<li><a class="me-1" href="javascript:void(0)"><i class="ti ti-star text-warning"></i></a></li>
<li><a class="me-1" href="javascript:void(0)"><i class="ti ti-star text-warning"></i></a></li>
<li><a class="me-1" href="javascript:void(0)"><i class="ti ti-star text-warning"></i></a></li>
<li><a class="me-1" href="javascript:void(0)"><i class="ti ti-star text-warning"></i></a></li>
<li><a class="" href="javascript:void(0)"><i class="ti ti-star text-warning"></i></a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="col-sm-6 col-xl-3">
<div class="card overflow-hidden rounded-2">
<div class="position-relative">
<a href="javascript:void(0)"><img src="../assets/images/products/s7.jpg" class="card-img-top rounded-0" alt="..."></a>
<a href="javascript:void(0)" class="bg-primary rounded-circle p-2 text-white d-inline-flex position-absolute bottom-0 end-0 mb-n3 me-3" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-title="Add To Cart"><i class="ti ti-basket fs-4"></i></a>
</div>
<div class="card-body pt-3 p-4">
<h6 class="fw-semibold fs-4">Red Valvet Dress</h6>
<div class="d-flex align-items-center justify-content-between">
<h6 class="fw-semibold fs-4 mb-0">$150 <span class="ms-2 fw-normal text-muted fs-3"><del>$200</del></span></h6>
<ul class="list-unstyled d-flex align-items-center mb-0">
<li><a class="me-1" href="javascript:void(0)"><i class="ti ti-star text-warning"></i></a></li>
<li><a class="me-1" href="javascript:void(0)"><i class="ti ti-star text-warning"></i></a></li>
<li><a class="me-1" href="javascript:void(0)"><i class="ti ti-star text-warning"></i></a></li>
<li><a class="me-1" href="javascript:void(0)"><i class="ti ti-star text-warning"></i></a></li>
<li><a class="" href="javascript:void(0)"><i class="ti ti-star text-warning"></i></a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="col-sm-6 col-xl-3">
<div class="card overflow-hidden rounded-2">
<div class="position-relative">
<a href="javascript:void(0)"><img src="../assets/images/products/s11.jpg" class="card-img-top rounded-0" alt="..."></a>
<a href="javascript:void(0)" class="bg-primary rounded-circle p-2 text-white d-inline-flex position-absolute bottom-0 end-0 mb-n3 me-3" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-title="Add To Cart"><i class="ti ti-basket fs-4"></i></a>
</div>
<div class="card-body pt-3 p-4">
<h6 class="fw-semibold fs-4">Cute Soft Teddybear</h6>
<div class="d-flex align-items-center justify-content-between">
<h6 class="fw-semibold fs-4 mb-0">$285 <span class="ms-2 fw-normal text-muted fs-3"><del>$345</del></span></h6>
<ul class="list-unstyled d-flex align-items-center mb-0">
<li><a class="me-1" href="javascript:void(0)"><i class="ti ti-star text-warning"></i></a></li>
<li><a class="me-1" href="javascript:void(0)"><i class="ti ti-star text-warning"></i></a></li>
<li><a class="me-1" href="javascript:void(0)"><i class="ti ti-star text-warning"></i></a></li>
<li><a class="me-1" href="javascript:void(0)"><i class="ti ti-star text-warning"></i></a></li>
<li><a class="" href="javascript:void(0)"><i class="ti ti-star text-warning"></i></a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<?php
require_once "inc/footer.php";
?>