|
1 | 1 | <?php |
2 | 2 | include_once 'functions/menu/offcanva-menu.php'; |
3 | 3 | include_once 'functions/authentication.php'; |
4 | | - |
| 4 | +include_once 'functions/tables/datatables.php'; |
5 | 5 | ?> |
6 | 6 | <!DOCTYPE html> |
7 | 7 | <html data-bs-theme="light" lang="en"> |
|
47 | 47 | <div class="row align-items-center no-gutters"> |
48 | 48 | <div class="col me-2"> |
49 | 49 | <div class="text-uppercase text-primary fw-bold text-xs mb-1"><span>CURRENT SALES</span></div> |
50 | | - <div class="text-dark fw-bold h5 mb-0"><span><customer></span></div> |
| 50 | + <div class="text-dark fw-bold h5 mb-0"><span>₱<?php echo get_current_sales() ?? 0?></span></div> |
51 | 51 | </div> |
52 | 52 | <div class="col-auto"><i class="fas fa-calendar fa-2x text-gray-300"></i></div> |
53 | 53 | </div> |
|
60 | 60 | <div class="row align-items-center no-gutters"> |
61 | 61 | <div class="col me-2"> |
62 | 62 | <div class="text-uppercase text-warning fw-bold text-xs mb-1"><span>MONTLY SALES</span></div> |
63 | | - <div class="text-dark fw-bold h5 mb-0"><span>0</span></div> |
| 63 | + <div class="text-dark fw-bold h5 mb-0"><span>₱<?php echo get_sales() ?? 0 ?></span></div> |
64 | 64 | </div> |
65 | 65 | <div class="col-auto"><i class="fas fa-calendar fa-2x text-gray-300"></i></div> |
66 | 66 | </div> |
|
73 | 73 | <div class="row align-items-center no-gutters"> |
74 | 74 | <div class="col me-2"> |
75 | 75 | <div class="text-uppercase text-warning fw-bold text-xs mb-1"><span>ANNUAL SALES</span></div> |
76 | | - <div class="text-dark fw-bold h5 mb-0"><span>0</span></div> |
| 76 | + <div class="text-dark fw-bold h5 mb-0"><span>₱<?php echo get_sales('annual') ?? 0 ?></span></div> |
77 | 77 | </div> |
78 | 78 | <div class="col-auto"><i class="fas fa-calendar fa-2x text-gray-300"></i></div> |
79 | 79 | </div> |
|
83 | 83 | </div> |
84 | 84 | <div class="card shadow"> |
85 | 85 | <div class="card-header py-3"> |
86 | | - <p class="text-primary m-0 fw-bold">Customer List</p> |
| 86 | + <p class="text-primary m-0 fw-bold">Transaction List</p> |
87 | 87 | </div> |
88 | 88 | <div class="card-body"> |
89 | 89 | <div class="table-responsive table mt-2" id="dataTable-1" role="grid" aria-describedby="dataTable_info"> |
90 | 90 | <table class="table my-0 table-display" id="dataTable"> |
91 | 91 | <thead> |
92 | 92 | <tr> |
93 | | - <th>Fullname</th> |
94 | | - <th>Address</th> |
95 | | - <th>Phone</th> |
| 93 | + <th>Cottage</th> |
| 94 | + <th>Price</th> |
| 95 | + <th>Type</th> |
96 | 96 | <th>Created At</th> |
97 | | - <th>Total Sales</th> |
98 | 97 | </tr> |
99 | 98 | </thead> |
100 | 99 | <tbody> |
101 | 100 | <tr> |
102 | | - <td><img class="rounded-circle me-2" width="30" height="30" src="assets/img/logo.png">Airi Satou</td> |
| 101 | + <td><img class="rounded-circle me-2" width="30" height="30" src="assets/img/icon.png">Airi Satou</td> |
103 | 102 | <td><address></td> |
104 | 103 | <td><phone></td> |
105 | 104 | <td><created_at></td> |
106 | | - <td><sales></td> |
107 | 105 | </tr> |
108 | 106 | </tbody> |
109 | 107 | <tfoot> |
|
0 commit comments