-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhome.php
More file actions
384 lines (373 loc) · 17.2 KB
/
home.php
File metadata and controls
384 lines (373 loc) · 17.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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
<?php include 'db_connect.php' ?>
<style>
span.float-right.summary_icon {
font-size: 3rem;
position: absolute;
right: 1rem;
top: 0;
}
.imgs{
margin: .5em;
max-width: calc(100%);
max-height: calc(100%);
}
.imgs img{
max-width: calc(100%);
max-height: calc(100%);
cursor: pointer;
}
#imagesCarousel,#imagesCarousel .carousel-inner,#imagesCarousel .carousel-item{
height: 60vh !important;background: black;
}
#imagesCarousel .carousel-item.active{
display: flex !important;
}
#imagesCarousel .carousel-item-next{
display: flex !important;
}
#imagesCarousel .carousel-item img{
margin: auto;
}
#imagesCarousel img{
width: auto!important;
height: auto!important;
max-height: calc(100%)!important;
max-width: calc(100%)!important;
}
</style>
<div class="containe-fluid">
<div class="row mt-3 ml-3 mr-3">
<div class="col-lg-12">
<div class="">
<div class="">
<h4 class="page-title"><?php echo "Welcome back ". $_SESSION['login_name']."!" ?></h4>
<hr>
<marquee onMouseOver="this.stop()" onMouseOut="this.start()">For any software development or website designing work contact me at <a href="mailto:codecampbdofficial@gmail.com" >codecampbdofficial@gmail.com </a> Or Contact <a href="https://www.facebook.com/dev.mhrony/" target="_blank" >Facebook</a> </marquee>
<hr>
<div class="row">
<div class="col-md-4 mb-3">
<div class="card card-1">
<div class="card-body card-1 bg-primary p-0">
<div class="card-body text-white py-4">
<div class="d-flex flex-row">
<div class="col-3 align-self-center">
<div class="round">
<span class="float-right summary_icon"> <i class="fa fa-home "></i></span>
</div>
</div>
<div class="col-9 align-self-center text-right">
<div class="m-l-10">
<h3 class="text1">
<?php echo $conn->query("SELECT * FROM houses")->num_rows ?>
</h3>
<p>Total Houses</p>
</div>
</div>
</div>
</div>
</div>
<!-- <div class="card-footer">
<div class="row">
<div class="col-lg-12">
<a href="index.php?page=houses" class="text-primary float-right">View List <span class="fa fa-angle-right"></span></a>
</div>
</div>
</div> -->
</div>
</div>
<div class="col-md-4 mb-3">
<div class="card card-1">
<div class="card-body card-1 bg-warning p-0">
<div class="card-body text-white py-4">
<div class="d-flex flex-row">
<div class="col-3 align-self-center">
<div class="round">
<span class="float-right summary_icon"> <i class="fa fa-user-friends "></i></span>
</div>
</div>
<div class="col-9 align-self-center text-right">
<div class="m-l-10">
<h3 class="text1">
<?php echo $conn->query("SELECT * FROM tenants where status = 1 ")->num_rows ?>
</h3>
<p>Total Tenants</p>
</div>
</div>
</div>
</div>
</div>
<!-- <div class="card-footer">
<div class="row">
<div class="col-lg-12">
<a href="index.php?page=tenants" class="text-primary float-right">View List <span class="fa fa-angle-right"></span></a>
</div>
</div>
</div> -->
</div>
</div>
<div class="col-md-4 mb-3">
<div class="card card-1">
<div class="card-body card-1 bg-success p-0">
<div class="card-body text-white py-4">
<div class="d-flex flex-row">
<div class="col-3 align-self-center">
<div class="round">
<span class="float-right summary_icon"> <i class="fa fa-file-invoice "></i></span>
</div>
</div>
<div class="col-9 align-self-center text-right">
<div class="m-l-10">
<h3 class="text1">
<?php
$payment = $conn->query("SELECT sum(amount) as paid FROM payments where date(date_created) = '".date('Y-m-d')."' ");
echo $payment->num_rows > 0 ? number_format($payment->fetch_array()['paid'],2) : 0;
?>
</h3>
<p>Payments This Month</p>
</div>
</div>
</div>
</div>
</div>
<!-- <div class="card-footer">
<div class="row">
<div class="col-lg-12">
<a href="index.php?page=invoices" class="text-primary float-right">View Payments <span class="fa fa-angle-right"></span></a>
</div>
</div>
</div> -->
</div>
</div>
<div class="col-md-4 mb-3">
<div class="card card-1">
<div class="card-body card-1 bg-danger p-0">
<div class="card-body text-white py-4">
<div class="d-flex flex-row">
<div class="col-3 align-self-center">
<div class="round">
<span class="float-right summary_icon"> <i class="fa fa-list"></i></span>
</div>
</div>
<div class="col-9 align-self-center text-right">
<div class="m-l-10">
<h3 class="text1">
<?php echo $conn->query("SELECT * FROM tenants where status = 1 ")->num_rows ?>
</h3>
<p>Total Reports</p>
</div>
</div>
</div>
</div>
</div>
<!-- <div class="card-footer">
<div class="row">
<div class="col-lg-12">
<a href="index.php?page=tenants" class="text-primary float-right">View List <span class="fa fa-angle-right"></span></a>
</div>
</div>
</div> -->
</div>
<!-- Author Name: MH RONY.
GigHub Link: https://github.com/dev-mhrony
Facebook Link:https://www.facebook.com/dev.mhrony
Youtube Link: https://www.youtube.com/channel/UChYhUxkwDNialcxj-OFRcDw
for any PHP, Laravel, Python, Dart, Flutter work contact me at developer.mhrony@gmail.com
Visit My Website : developerrony.com
-->
</div>
<div class="col-md-4 mb-3">
<div class="card card-1">
<div class="card-body card-1 bg-info p-0">
<div class="card-body text-white py-4">
<div class="d-flex flex-row">
<div class="col-3 align-self-center">
<div class="round">
<span class="float-right summary_icon"> <i class="fa fa-home"></i></span>
</div>
</div>
<div class="col-9 align-self-center text-right">
<div class="m-l-10">
<h3 class="text1">
<?php echo $conn->query("SELECT * FROM tenants where status = 1 ")->num_rows ?>
</h3>
<p>Total House Type</p>
</div>
</div>
</div>
</div>
</div>
<!-- <div class="card-footer">
<div class="row">
<div class="col-lg-12">
<a href="index.php?page=tenants" class="text-primary float-right">View List <span class="fa fa-angle-right"></span></a>
</div>
</div>
</div> -->
</div>
</div>
<div class="col-md-4 mb-3">
<div class="card card-1">
<div class="card-body card-1 bg-secondary p-0">
<div class="card-body text-white py-4">
<div class="d-flex flex-row">
<div class="col-3 align-self-center">
<div class="round">
<span class="float-right summary_icon"> <i class="fa fa-users"></i></span>
</div>
</div>
<div class="col-9 align-self-center text-right">
<div class="m-l-10">
<h3 class="text1">
<?php echo $conn->query("SELECT * FROM tenants where status = 1 ")->num_rows ?>
</h3>
<p>Total Users</p>
</div>
</div>
</div>
</div>
</div>
<!-- <div class="card-footer">
<div class="row">
<div class="col-lg-12">
<a href="index.php?page=tenants" class="text-primary float-right">View List <span class="fa fa-angle-right"></span></a>
</div>
</div>
</div> -->
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Author Name: MH RONY.
GigHub Link: https://github.com/dev-mhrony
Facebook Link:https://www.facebook.com/dev.mhrony
Youtube Link: https://www.youtube.com/channel/UChYhUxkwDNialcxj-OFRcDw
for any PHP, Laravel, Python, Dart, Flutter work contact me at developer.mhrony@gmail.com
Visit My Website : developerrony.com
-->
<div class="container-fluid">
<div class="row">
<div class="col-md-12 mb-3">
<div id="piechart" style="width: 100%; height: 500px;"></div>
</div>
</div>
</div>
<script src="https://unpkg.com/feather-icons@4.29.1/dist/feather.min.js"></script>
<script>
feather.replace();
</script>
<!-- Author Name: MH RONY.
GigHub Link: https://github.com/dev-mhrony
Facebook Link:https://www.facebook.com/dev.mhrony
Youtube Link: https://www.youtube.com/channel/UChYhUxkwDNialcxj-OFRcDw
for any PHP, Laravel, Python, Dart, Flutter work contact me at developer.mhrony@gmail.com
Visit My Website : developerrony.com
-->
<script>
$('#manage-records').submit(function(e){
e.preventDefault()
start_load()
$.ajax({
url:'ajax.php?action=save_track',
data: new FormData($(this)[0]),
cache: false,
contentType: false,
processData: false,
method: 'POST',
type: 'POST',
success:function(resp){
resp=JSON.parse(resp)
if(resp.status==1){
alert_toast("Data successfully saved",'success')
setTimeout(function(){
location.reload()
},800)
}
}
})
})
$('#tracking_id').on('keypress',function(e){
if(e.which == 13){
get_person()
}
})
$('#check').on('click',function(e){
get_person()
})
function get_person(){
start_load()
$.ajax({
url:'ajax.php?action=get_pdetails',
method:"POST",
data:{tracking_id : $('#tracking_id').val()},
success:function(resp){
if(resp){
resp = JSON.parse(resp)
if(resp.status == 1){
$('#name').html(resp.name)
$('#address').html(resp.address)
$('[name="person_id"]').val(resp.id)
$('#details').show()
end_load()
}else if(resp.status == 2){
alert_toast("Unknow tracking id.",'danger');
end_load();
}
}
}
})
}
</script>
<!-- Author Name: MH RONY.
GigHub Link: https://github.com/dev-mhrony
Facebook Link:https://www.facebook.com/dev.mhrony
Youtube Link: https://www.youtube.com/channel/UChYhUxkwDNialcxj-OFRcDw
for any PHP, Laravel, Python, Dart, Flutter work contact me at developer.mhrony@gmail.com
Visit My Website : developerrony.com
-->
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
google.charts.load('current', {'packages':['corechart']});
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
['Types', 'Booking'],
['Single-Family Home', 11],
['Townhouse', 2],
['Condominium', 2],
['Duplex', 2],
['Tiny House', 7]
]);
var options = {
title: 'Booking Trend'
};
var chart = new google.visualization.PieChart(document.getElementById('piechart'));
draw();
// Redraw the chart when the window is resized
window.addEventListener('resize', draw);
function draw() {
// Get the dimensions of the container
var chartContainer = document.getElementById('piechart');
var width = chartContainer.offsetWidth;
var height = chartContainer.offsetHeight;
// Set chart options
options.width = width;
options.height = height;
// Draw the chart with updated options
chart.draw(data, options);
}
}
</script>
<!-- Author Name: MH RONY.
GigHub Link: https://github.com/dev-mhrony
Facebook Link:https://www.facebook.com/dev.mhrony
Youtube Link: https://www.youtube.com/channel/UChYhUxkwDNialcxj-OFRcDw
for any PHP, Laravel, Python, Dart, Flutter work contact me at developer.mhrony@gmail.com
Visit My Website : developerrony.com
-->
<footer class="footer d-flex flex-column flex-md-row align-items-center justify-content-between px-4 py-3 border-top small">
<p class="text-muted mb-1 mb-md-0">Copyright © 2024 Tenant Management System Software - Design and Develop By <a href="https://www.facebook.com/dev.mhrony/" target="_blank"> MH RONY </a> </p>
</footer>