This repository has been archived by the owner on Mar 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dashboard.php
115 lines (113 loc) · 3.65 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
<?php require_once 'includes/header.php'; ?>
<?php
include_once 'php_action/fetchDashboard.php';
?>
<div class="content-wrapper">
<div class="container-fluid">
<!-- Breadcrumbs-->
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="#">Dashboard</a>
</li>
</ol>
<hr>
<h1 class="text-center"><span class="badge badge-success">Selamat Datang Kembali <?php echo $_SESSION['user_name']; ?></span></h1>
<hr>
<!-- Icon Cards-->
<div class="row">
<div class="col-xl-3 col-sm-6 mb-3">
<div class="card text-white bg-primary o-hidden h-100">
<div class="card-body">
<div class="card-body-icon">
<i class="fa fa-fw fa-btc"></i>
</div>
<div class="mr-5"><?php
if ($jumlahBrand == 0) {
echo "0";
}
else {
echo $jumlahBrand;
}
?> Total Jenis Barang</div>
</div>
<a class="card-footer text-white clearfix small z-1" href="brands.php">
<span class="float-left">Lihat Data</span>
<span class="float-right">
<i class="fa fa-angle-right"></i>
</span>
</a>
</div>
</div>
<div class="col-xl-3 col-sm-6 mb-3">
<div class="card text-white bg-success o-hidden h-100">
<div class="card-body">
<div class="card-body-icon">
<i class="fa fa-fw fa-shopping-cart"></i>
</div>
<div class="mr-5"><?php
if ($jumlahProduct == 0) {
echo "0";
}
else {
echo $jumlahProduct;
}
?> Total Barang</div>
</div>
<a class="card-footer text-white clearfix small z-1" href="products.php">
<span class="float-left">Lihat Data</span>
<span class="float-right">
<i class="fa fa-angle-right"></i>
</span>
</a>
</div>
</div>
<div class="col-xl-3 col-sm-6 mb-3">
<div class="card text-white bg-warning o-hidden h-100">
<div class="card-body">
<div class="card-body-icon">
<i class="fa fa-fw fa-shopping-cart"></i>
</div>
<div class="mr-5"><?php
if ($jumlahCategory == 0) {
echo "0";
}
else {
echo $jumlahCategory;
}
?> Total Barang Rusak</div>
</div>
<a class="card-footer text-white clearfix small z-1" href="categories.php">
<span class="float-left">Lihat Data</span>
<span class="float-right">
<i class="fa fa-angle-right"></i>
</span>
</a>
</div>
</div>
<div class="col-xl-3 col-sm-6 mb-3">
<div class="card text-white bg-danger o-hidden h-100">
<div class="card-body">
<div class="card-body-icon">
<i class="fa fa-fw fa-support"></i>
</div>
<div class="mr-5"><?php
if ($jumlahProductRusak == 0) {
echo "0";
}
else {
echo $jumlahProductRusak;
}
?> Produk Dalam Perbaikan</div>
</div>
<a class="card-footer text-white clearfix small z-1" href="products.php">
<span class="float-left">Lihat Data</span>
<span class="float-right">
<i class="fa fa-angle-right"></i>
</span>
</a>
</div>
</div>
</div>
<!-- Example DataTables Card-->
</div>
<?php require_once 'includes/footer.php'; ?>