-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdashboard.php
80 lines (75 loc) · 2.35 KB
/
dashboard.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
<?php
session_start();
// Check visitor is logged in. If not redirect to login page
if (!$_SESSION['logged_in']) {
header('location: dashboard-login');
}
$title = "Dashboard";
$metaD = "Admin dashboard page";
include 'includes/dashboard-header.php';
include 'includes/dashboard-sidebar.php';
include 'processes/process-populate-dashboard-home.php';
?>
<h1>Recent Activity</h1>
<div class="row">
<div class="col-12">
<h3>Latest Listings</h3>
<table class='table table-striped table-responsive view-listings'>
<thead class='view-listings-head'>
<tr>
<th>Featured Image</th>
<th>Listing No.</th>
<th>Agent</th>
<th>Listing Title</th>
<th>Address</th>
<th>City</th>
<th>Price</th>
<th>Sell Method</th>
</tr>
</thead>
<tbody>
<?php echo $populate_dashboard_listings ?>
</tbody>
</table>
</div>
<a class="a-btn mb-5 ml-3" href="/bay-realty/dashboard-view-listings"><button class="btn btn-md btn-block dash-btn">See All Listings</button></a>
<div class="col-12">
<h3>Newest Agents</h3>
<table class='table table-striped table-responsive view-agents'>
<thead class='agents-head'>
<tr>
<th>Agent Image</th>
<th>Agent ID</th>
<th>Name</th>
<th>Email</th>
<th>Phone</th>
<th>Area</th>
</tr>
</thead>
<tbody>
<?php echo $populate_dashboard_agents ?>
</tbody>
</table>
</div>
<a class="a-btn mb-5 ml-3" href="/bay-realty/dashboard-view-agents"><button class="btn btn-md btn-block dash-btn">See All Agents</button></a>
<div class="col-12">
<h3>User Sign Ups</h3>
<table class="table table-responsive table-striped table-users">
<thead class="users-head">
<tr>
<th>User ID</th>
<th>Name</th>
<th>Email</th>
<th>User Role</th>
</tr>
</thead>
<tbody>
<?php echo $populate_dashboard_users ?>
</tbody>
</table>
</div>
<a class="a-btn mb-5 ml-3" href="/bay-realty/dashboard-view-users"><button class="btn btn-md btn-block dash-btn">See All Users</button></a>
</div>
<?php
include 'includes/dashboard-footer.php';
?>