This repository was archived by the owner on Jul 12, 2019. It is now read-only.
forked from utramig42/JobSmart-WEB
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdashboard.php
More file actions
183 lines (156 loc) · 7.2 KB
/
dashboard.php
File metadata and controls
183 lines (156 loc) · 7.2 KB
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
<?php
include_once 'includes/headers/header-init.php';
// CSS
include_once 'includes/headers/header-styles.php';
// Default Navbar
include_once 'includes/navbar/navbar-main.php';
$fileName = ucfirst(str_replace(".php", '', basename(__FILE__)));
// Require Files Providers.
require_once 'core/dao/Connection.php';
require_once 'core/dao/DashboardModel.php';
$dashboard = new DashboardModel();
$dashboard->loadModal();
?>
<title>Job'Smart - Administrativo </title>
<!-- Table Style CSS -->
<link rel="stylesheet" href="css/tables.css">
<div id="wrapper">
<?php
include_once 'includes/navbar/navbar-sidebar.php';
?>
<div id="content-wrapper">
<div class="container-fluid">
<!-- Breadcrumbs-->
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="index.php">Painel de controle</a>
</li>
<li class="breadcrumb-item"></li>
</ol>
<!-- Icon Cards-->
<div class="row">
<div class="col-xl-3 col-sm-6 mb-3">
<div class="card icon-card text-white bg-primary o-hidden h-100">
<div class="card-body">
<div class="card-body-icon">
<i class="fas fa-fw fa-money-bill"></i>
</div>
<div class="mr-5"> Faturamento do dia <?php echo date('d/m/Y') ?></div>
<div class="h2"> <?php echo number_format($dashboard->billingOfDay(), 2) ?> </div
class="h1">
</div>
</div>
</div>
<div class="col-xl-3 col-sm-6 mb-3">
<div class="card icon-card text-white bg-warning o-hidden h-100">
<div class="card-body">
<div class="card-body-icon">
<i class="fas fa-fw fa-shopping-cart"></i>
</div>
<div class="mr-5"> Produto + Vendido do dia <?php echo date('d/m/Y') ?> </div>
<div class="h2"> <?php echo $dashboard->productOfDay(); ?> </div>
</div>
</div>
</div>
<div class="col-xl-3 col-sm-6 mb-3">
<div class="card icon-card text-white bg-success o-hidden h-100">
<div class="card-body">
<div class="card-body-icon">
<i class="fas fa-fw fa-user"></i>
</div>
<div class="mr-5"> Funcionário Destaque do dia <?php echo date('d/m/Y') ?> </div>
<div class="h2"> <?php echo $dashboard->userOfDay(); ?> </div>
</div>
</div>
</div>
<div class="col-xl-3 col-sm-6 mb-3">
<div class="card icon-card text-white bg-danger o-hidden h-100">
<div class="card-body">
<div class="card-body-icon">
<i class="fas fa-fw fa-exclamation-triangle"></i>
</div>
<div class="mr-5"> Produtos em quantidade Mínima </div>
<div class="h2"><?php echo $dashboard->minimumQuantity(); ?></div>
</div>
<button class="btn btn-danger card-footer text-white clearfix small z-1" data-toggle="modal"
data-target="#minium">
<span class="float-left">Veja os Detalhes</span>
<span class="float-right">
<i class="fas fa-angle-right"></i>
</span>
</button>
</div>
</div>
</div>
<!-- Area Chart Example-->
<div class="card mb-3">
<div class="card-header">
<i class="fas fa-chart-area"></i>
Vendas mensais
</div>
<div class="card-body">
<canvas id="myAreaChart" width="100%" height="30"></canvas>
</div>
<div class="card-footer small text-muted">
Atualizado em <?php echo date('d/m/Y H:i:s') ?>
</div>
</div>
<!-- DataTables Example -->
<div class="card mb-3">
<div class="card-header">
<i class="fas fa-table"></i>
Demonstrativo Funcionarios - <?php echo strftime('%B de %Y', strtotime('today')); ?>
<div class="d-md-inline-block float-right">
<!-- Navbar Search -->
<form class="d-none d-md-inline-block form-inline float-right ml-auto mr-0 mr-md-5 my-2 my-md-0"
id="search-table">
<div class="input-group">
<input type="text" class="form-control" placeholder="Pesquisar por..."
aria-label="Search" aria-describedby="basic-addon2">
<div class="input-group-append">
<button class="btn btn-primary" type="button">
<i class="fas fa-search"></i>
</button>
</div>
</div>
</form>
</div>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-bordered" id="dataTable" width="100%" cellspacing="0">
<thead>
<tr>
<th>Nome</th>
<th>Cargo</th>
<th>Número de vendas</th>
</tr>
</thead>
<tbody>
<?php $dashboard->loadEmployees(); ?>
</tbody>
</table>
</div>
</div>
<div class="card-footer small text-muted">
Atualizado em <?php echo date('d/m/Y H:i:s') ?>
</div>
</div>
</div>
<!-- /.container-fluid -->
<?php
include_once 'includes/footers/footer-init.php';
include_once 'includes/footers/footer-modal.php';
include_once 'includes/footers/footer-scripts.php';
?>
<script src="js/dashboard.js"></script>
<script src="js/controller/TableController.js"></script>
<script>
window.table = new TableController(
document.querySelector("#search-table"),
document.querySelector("table tbody")
);
</script>
<?php
include_once 'includes/footers/footer-final.php';
?>