-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
170 lines (166 loc) · 8.07 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
<?php
include "src/header.php";
if (isset($_GET["report_date"])) {
$dateParam = $_GET["report_date"];
} else {
$dateParam = date('Y-m');
}
?>
<!-- ============================================================== -->
<!-- Page wrapper -->
<!-- ============================================================== -->
<div class="page-wrapper">
<!-- ============================================================== -->
<!-- Bread crumb and right sidebar toggle -->
<!-- ============================================================== -->
<div class="page-breadcrumb">
<div class="row">
<div class="col-7 align-self-center">
<h3 class="page-title text-truncate text-dark font-weight-medium mb-1">ESAS Cloud</h3>
<div class="d-flex align-items-center">
<nav aria-label="breadcrumb">
<ol class="breadcrumb m-0 p-0">
<li class="breadcrumb-item"><a href="index.html">Dashboard</a>
</li>
</ol>
</nav>
</div>
</div>
<div class="col-5 align-self-center">
<div class="customize-input float-right">
<div class="form-group">
Select report month:
<?php
echo "<input type='month' id='report-date' onchange='selectDate()' class='form-control bg-white border-0 custom-shadow' value='".$dateParam."'>"
?>
</div>
</div>
</div>
</div>
</div>
<!-- ============================================================== -->
<!-- End Bread crumb and right sidebar toggle -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- Container fluid -->
<!-- ============================================================== -->
<div class="container-fluid">
<!-- *************************************************************** -->
<!-- Start First Cards -->
<!-- *************************************************************** -->
<div class="card-group">
<div class="card border-right">
<div class="card-body">
<div class="d-flex d-lg-flex d-md-block align-items-center">
<div>
<div class="d-inline-flex align-items-center">
<h2 class="text-dark mb-1 font-weight-medium" id="totalCustomer"></h2>
</div>
<h6 class="text-muted font-weight-normal mb-0 w-100 text-truncate">Total Customers</h6>
</div>
<div class="ml-auto mt-md-3 mt-lg-0">
<span class="opacity-7 text-muted"><i data-feather="user-plus"></i></span>
</div>
</div>
</div>
</div>
<div class="card border-right">
<div class="card-body">
<div class="d-flex d-lg-flex d-md-block align-items-center">
<div>
<h2 class="text-dark mb-1 w-100 text-truncate font-weight-medium" id="totalUsage"></h2>
<h6 class="text-muted font-weight-normal mb-0 w-100 text-truncate">Current Storage Usage (GB)
</h6>
</div>
<div class="ml-auto mt-md-3 mt-lg-0">
<span class="opacity-7 text-muted"><i data-feather="grid"></i></span>
</div>
</div>
</div>
</div>
<div class="card">
<div class="card-body">
<div class="d-flex d-lg-flex d-md-block align-items-center">
<div>
<h2 class="text-dark mb-1 font-weight-medium" id="totalRevenue"></h2>
<h6 class="text-muted font-weight-normal mb-0 w-100 text-truncate">Current total revenue</h6>
</div>
<div class="ml-auto mt-md-3 mt-lg-0">
<span class="opacity-7 text-muted"><i data-feather="dollar-sign"></i></span>
</div>
</div>
</div>
</div>
</div>
<!-- *************************************************************** -->
<!-- End First Cards -->
<!-- *************************************************************** -->
<!-- *************************************************************** -->
<!-- Start Sales Charts Section -->
<!-- *************************************************************** -->
<div class="row">
<div class="col-lg-6 col-md-12">
<div class="card">
<div class="card-body">
<h4 class="card-title">Current Usage By Customer</h4>
<div id="campaign-v2" class="mt-2" style="height:283px; width:100%;"></div>
<ul class="list-style-none mb-0" id="customer">
</ul>
</div>
</div>
</div>
<div class="col-lg-6 col-md-12">
<div class="card">
<div class="card-body">
<h4 class="card-title">Revenue By Month</h4>
<div class="net-income mt-4 position-relative" style="height:294px;"></div>
<ul class="list-inline text-center mt-5 mb-2">
<li class="list-inline-item text-muted font-italic">Revenue per month before tax (RM)</li>
</ul>
</div>
</div>
</div>
</div>
<!-- *************************************************************** -->
<!-- End Sales Charts Section -->
<!-- *************************************************************** -->
<!-- *************************************************************** -->
<!-- Start Location and Earnings Charts Section -->
<!-- *************************************************************** -->
<div class="row">
<div class="col-md-12 col-lg-12">
<div class="card">
<div class="card-body">
<div class="d-flex align-items-start">
<h4 class="card-title mb-0">Storage Usage Statistics</h4>
</div>
<div class="pl-4 mb-5">
<div class="stats ct-charts position-relative" style="height: 315px;"></div>
</div>
<ul class="list-inline text-center mt-4 mb-0">
<li class="list-inline-item text-muted font-italic">Storage Usage by month (Petabytes)</li>
</ul>
</div>
</div>
</div>
</div>
<!-- *************************************************************** -->
<!-- End Location and Earnings Charts Section -->
<!-- *************************************************************** -->
</div>
<!-- ============================================================== -->
<!-- End Container fluid -->
<!-- ============================================================== -->
</div>
<!-- ============================================================== -->
<!-- End Page wrapper -->
<!-- ============================================================== -->
<?php
include "src/footer.php";
?>
</body>
<script src="src/dist/js/report.js"></script>
<script src="src/dist/js/pages/dashboards/customer.js"></script>
<script src="src/dist/js/pages/dashboards/revenue.js"></script>
<script src="src/dist/js/pages/dashboards/storage.js"></script>
</html>