BBnepal-Accounts/hostel/application/views/hms-admin/dashboard.php

86 lines
2.9 KiB
PHP
Raw Normal View History

2024-07-10 12:43:19 +00:00
<div class="row dash-main-row">
<div class="col-md-10 col-lg-10 p-0">
<h3 class="dash-head">DashBoard</h3>
<div class="dashboard-boxes">
<div class=" dashboard-box">
<img class="dash-img dash-student-img" src="<?php echo base_url(); ?>assets-hms/images/dashboard/students.png" alt="">
<h3 class="dash-no"><?= $student_count ?></h3>
<h6 class="dash-name">Total Students</h6>
</div>
<div class=" dashboard-box">
<img class="dash-img dash-room-img" src="<?php echo base_url(); ?>assets-hms/images/dashboard/rooms.png" alt="">
<h3 class="dash-no"><?= $room_count ?></h3>
<h6 class="dash-name">Total Rooms</h6>
</div>
<div class=" dashboard-box">
<img class="dash-img" src="<?php echo base_url(); ?>assets-hms/images/dashboard/bed.svg" alt="">
<h3 class="dash-no"><?= $bed_count ?></h3>
<h6 class="dash-name">Total Beds</h6>
</div>
<div class=" dashboard-box">
<img class="dash-img" src="<?php echo base_url(); ?>assets-hms/images/dashboard/staff.svg" alt="">
<h3 class="dash-no"><?= $staff_count ?></h3>
<h6 class="dash-name">Total Staff</h6>
</div>
</div>
</div>
</div>
<div class="row dash-main-row">
<div class="col-md-10 col-lg-10 p-0">
<h3 class="dash-tab-head">Vacated Rooms</h3>
<table class="table dash-table">
<thead>
<tr>
<th scope="col" class="dash-th">S.No</th>
<th scope="col" class="dash-th">Block</th>
<th scope="col" class="dash-th">Floor</th>
<th scope="col" class="dash-th">Room</th>
<th scope="col" class="dash-th">Bed no</th>
<th scope="col" class="dash-th">Type</th>
</tr>
</thead>
<tbody>
<?php foreach ($beds_data as $key => $value) { ?>
<tr>
<td ><?= $key + 1 ?></td>
<td><?= $value['block_name'] ?></td>
<td><?= $value['floor_name'] ?></td>
<td><?= $value['room_name'] ?></td>
<td><?= $value['bed_name'] ?></td>
<td><?= $value['room_ac'] ?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
<script src="<?php echo base_url(); ?>assets-hms/js/jquery-3.4.1.min.js"></script>
<script src="<?php echo base_url(); ?>assets-hms/js/popper.min.js"></script>
<script src="<?php echo base_url(); ?>assets-hms/js/bootstrap.min.js"></script>
<script defer src="<?php echo base_url(); ?>assets-hms/js/all.js"></script>
<script>
$(".mobileMenu , .hidesidebar").click(function(){
$(".sideMenu").toggle();
});
</script>
<script>
$('.logo-wrap').click(function() {
window.location.href = '<?php echo base_url().'dashboard';?>';
return false;
});
</script>
</body>
</html>