-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
monthly_sales.php
50 lines (47 loc) · 1.63 KB
/
monthly_sales.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
<?php
$page_title = 'Monthly Sales';
require_once('includes/load.php');
// Checkin What level user has permission to view this page
page_require_level(3);
?>
<?php
$year = date('Y');
$sales = monthlySales($year);
?>
<?php include_once('layouts/header.php'); ?>
<div class="row text-white">
<div class="col-md-12 p-3 p-md-5">
<div class="panel panel-default">
<div class="panel-heading clearfix">
<strong>
<span>Monthly Sales Report</span>
</strong>
</div>
<div class="panel-body">
<table class="table text-white">
<thead>
<tr>
<th class="text-center" style="width: 50px;">#</th>
<th> Product </th>
<th class="text-center" style="width: 15%;"> sold</th>
<th class="text-center" style="width: 15%;"> Total </th>
<th class="text-center" style="width: 15%;"> Date </th>
</tr>
</thead>
<tbody>
<?php foreach ($sales as $sale):?>
<tr>
<td class="text-center"><?php echo count_id();?></td>
<td><?php echo remove_junk($sale['name']); ?></td>
<td class="text-center"><?php echo (int)$sale['qty']; ?></td>
<td class="text-center"><?php echo remove_junk($sale['total_saleing_price']); ?></td>
<td class="text-center"><?php echo $sale['date']; ?></td>
</tr>
<?php endforeach;?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<?php include_once('layouts/footer.php'); ?>