2024-11-08 13:50:33 +07:00
|
|
|
<?= $this->extend('layouts/main.php') ?>
|
|
|
|
|
|
|
|
|
|
<?= $this->section('content') ?>
|
2024-11-11 13:57:11 +07:00
|
|
|
<style>
|
2024-11-12 15:33:56 +07:00
|
|
|
#table_dashboard tr { cursor: pointer; }
|
2024-11-11 13:57:11 +07:00
|
|
|
</style>
|
2024-11-08 13:50:33 +07:00
|
|
|
|
2024-11-12 15:33:56 +07:00
|
|
|
<!--
|
2024-11-12 09:19:57 +07:00
|
|
|
<div class="d-flex justify-content-between p-0">
|
2024-11-11 14:16:43 +07:00
|
|
|
<div class="custom-card">
|
2024-11-08 13:50:33 +07:00
|
|
|
<div class="custom-card-content">
|
|
|
|
|
<div class="row p-0 d-flex justify-content-between">
|
2024-11-12 15:33:56 +07:00
|
|
|
<div class="col-3 text-start text-orange"> <h5 class="m-0"><i class="bi bi-clock-history"></i></h5> </div>
|
|
|
|
|
<div class="col-9 text-end pe-3"> <h2 class="m-0 custom-card-title">345</h2> </div>
|
2024-11-08 13:50:33 +07:00
|
|
|
</div>
|
|
|
|
|
<hr class="text-orange">
|
|
|
|
|
<h3 class="custom-card-text m-0 p-0 text-orange">Pending</h3>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2024-11-11 14:16:43 +07:00
|
|
|
<div class="custom-card">
|
2024-11-08 13:50:33 +07:00
|
|
|
<div class="custom-card-content">
|
|
|
|
|
<div class="row p-0 d-flex justify-content-between">
|
2024-11-12 15:33:56 +07:00
|
|
|
<div class="col-3 text-start text-peach"> <h5 class="m-0"><i class="bi bi-tv"></i></h5> </div>
|
|
|
|
|
<div class="col-9 text-end pe-3"> <h2 class="m-0 custom-card-title">333</h2> </div>
|
2024-11-08 13:50:33 +07:00
|
|
|
</div>
|
|
|
|
|
<hr class="text-peach">
|
2024-11-12 09:19:57 +07:00
|
|
|
<h3 class="custom-card-text m-0 p-0 text-peach">Part. Collect</h3>
|
2024-11-08 13:50:33 +07:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2024-11-11 14:16:43 +07:00
|
|
|
<div class="custom-card">
|
2024-11-08 13:50:33 +07:00
|
|
|
<div class="custom-card-content">
|
|
|
|
|
<div class="row p-0 d-flex justify-content-between">
|
2024-11-12 15:33:56 +07:00
|
|
|
<div class="col-3 text-start text-pink"> <h5 class="m-0"><i class="bi bi-collection"></i></h5> </div>
|
|
|
|
|
<div class="col-9 text-end pe-3"> <h2 class="m-0 custom-card-title">542</h2></div>
|
2024-11-08 13:50:33 +07:00
|
|
|
</div>
|
|
|
|
|
<hr class="text-pink">
|
2024-11-12 09:19:57 +07:00
|
|
|
<h3 class="custom-card-text m-0 p-0 text-pink">Collected</h3>
|
2024-11-08 13:50:33 +07:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2024-11-11 14:16:43 +07:00
|
|
|
<div class="custom-card">
|
2024-11-08 13:50:33 +07:00
|
|
|
<div class="custom-card-content">
|
|
|
|
|
<div class="row p-0 d-flex justify-content-between">
|
2024-11-12 15:33:56 +07:00
|
|
|
<div class="col-3 text-start text-soft-blue"> <h5 class="m-0"><i class="bi bi-file-medical"></i></h5> </div>
|
|
|
|
|
<div class="col-9 text-end pe-3"> <h2 class="m-0 custom-card-title">436</h2> </div>
|
2024-11-08 13:50:33 +07:00
|
|
|
</div>
|
|
|
|
|
<hr class="text-soft-blue">
|
2024-11-12 09:19:57 +07:00
|
|
|
<h3 class="custom-card-text m-0 p-0 text-soft-blue">Part. Rcv.</h3>
|
2024-11-08 13:50:33 +07:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2024-11-11 14:16:43 +07:00
|
|
|
<div class="custom-card">
|
2024-11-08 13:50:33 +07:00
|
|
|
<div class="custom-card-content">
|
|
|
|
|
<div class="row p-0 d-flex justify-content-between">
|
2024-11-12 15:33:56 +07:00
|
|
|
<div class="col-3 text-start text-blue"> <h5 class="m-0"><i class="bi bi-journal-medical"></i></h5> </div>
|
|
|
|
|
<div class="col-9 text-end pe-3"> <h2 class="m-0 custom-card-title">567</h2> </div>
|
2024-11-08 13:50:33 +07:00
|
|
|
</div>
|
|
|
|
|
<hr class="text-blue">
|
2024-11-12 09:19:57 +07:00
|
|
|
<h3 class="custom-card-text m-0 p-0 text-blue">Received</h3>
|
2024-11-08 13:50:33 +07:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2024-11-11 14:16:43 +07:00
|
|
|
<div class="custom-card">
|
2024-11-08 13:50:33 +07:00
|
|
|
<div class="custom-card-content">
|
|
|
|
|
<div class="row p-0 d-flex justify-content-between">
|
2024-11-12 15:33:56 +07:00
|
|
|
<div class="col-3 text-start text-grey"> <h5 class="m-0"><i class="bi bi-calendar3-week"></i></h5> </div>
|
|
|
|
|
<div class="col-9 text-end pe-3"> <h2 class="m-0 custom-card-title">321</h2> </div>
|
2024-11-08 13:50:33 +07:00
|
|
|
</div>
|
|
|
|
|
<hr class="text-grey">
|
|
|
|
|
<h3 class="custom-card-text m-0 p-0 text-grey">Inprocess</h3>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2024-11-11 14:16:43 +07:00
|
|
|
<div class="custom-card">
|
2024-11-08 13:50:33 +07:00
|
|
|
<div class="custom-card-content">
|
|
|
|
|
<div class="row p-0 d-flex justify-content-between">
|
2024-11-12 15:33:56 +07:00
|
|
|
<div class="col-3 text-start text-soft-green"> <h5 class="m-0"><i class="bi bi-check2"></i></h5> </div>
|
|
|
|
|
<div class="col-9 text-end pe-3"> <h2 class="m-0 custom-card-title">432</h2> </div>
|
2024-11-08 13:50:33 +07:00
|
|
|
</div>
|
|
|
|
|
<hr class="text-soft-green">
|
2024-11-12 09:19:57 +07:00
|
|
|
<h3 class="custom-card-text m-0 p-0 text-soft-green">Part. Val.</h3>
|
2024-11-08 13:50:33 +07:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2024-11-11 14:16:43 +07:00
|
|
|
<div class="custom-card">
|
2024-11-08 13:50:33 +07:00
|
|
|
<div class="custom-card-content">
|
|
|
|
|
<div class="row p-0 d-flex justify-content-between">
|
2024-11-12 15:33:56 +07:00
|
|
|
<div class="col-3 text-start text-green"> <h5 class="m-0"><i class="bi bi-clipboard-check"></i></h5> </div>
|
|
|
|
|
<div class="col-9 text-end pe-3"> <h2 class="m-0 custom-card-title">321</h2></div>
|
2024-11-08 13:50:33 +07:00
|
|
|
</div>
|
|
|
|
|
<hr class="text-green">
|
2024-11-12 09:19:57 +07:00
|
|
|
<h3 class="custom-card-text m-0 p-0 text-green">Validated</h3>
|
2024-11-08 13:50:33 +07:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2024-11-12 15:33:56 +07:00
|
|
|
-->
|
2024-11-08 13:50:33 +07:00
|
|
|
|
2024-11-11 14:16:43 +07:00
|
|
|
<div class="card border-0">
|
|
|
|
|
<div class="body-card">
|
|
|
|
|
<div class="table-responsive">
|
2024-11-12 15:33:56 +07:00
|
|
|
<table id="table_dashboard" class="table">
|
2024-11-11 14:16:43 +07:00
|
|
|
<thead>
|
|
|
|
|
<tr >
|
|
|
|
|
<th>Order</th>
|
|
|
|
|
<th>MR</th>
|
|
|
|
|
<th>Patient</th>
|
|
|
|
|
<th>Request</th>
|
|
|
|
|
<th>Hosp</th>
|
|
|
|
|
<th>Test</th>
|
|
|
|
|
<th>Status</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
2024-11-12 15:33:56 +07:00
|
|
|
<?php
|
|
|
|
|
$i = 1;
|
|
|
|
|
foreach ($data as $row) {
|
|
|
|
|
$colldate = $row['COLLECTIONDATE'];
|
|
|
|
|
$colldate = substr($colldate,0,10);
|
|
|
|
|
$patnumber = $row['PATNUMBER'];
|
|
|
|
|
$patnumber = substr($patnumber,-16);
|
|
|
|
|
$accessnumber = $row['SP_ACCESSNUMBER'];
|
|
|
|
|
?>
|
|
|
|
|
<tr class="table-row viewAccess" data-bs-toggle="modal" data-bs-target="#modal" data-access='<?=$accessnumber;?>'>
|
|
|
|
|
<td class="text-start text-nowrap"><?=$colldate;?></td>
|
|
|
|
|
<td class="text-start text-nowrap"><?=$patnumber;?></td>
|
|
|
|
|
<td class="text-start"><?=$row['NAME'];?></td>
|
|
|
|
|
<td class="text-start"><?=$accessnumber;?></td>
|
|
|
|
|
<td class="text-start"><?=$row['HOSTORDERNUMBER'];?></td>
|
|
|
|
|
<td class="text-start"><?=$row['TESTS'];?></td>
|
2024-11-11 14:16:43 +07:00
|
|
|
<td class="bg-orange text-center align-middle">Pending</td>
|
|
|
|
|
</tr>
|
2024-11-12 15:33:56 +07:00
|
|
|
<?php
|
|
|
|
|
}
|
|
|
|
|
?>
|
2024-11-11 14:16:43 +07:00
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2024-11-12 15:33:56 +07:00
|
|
|
|
|
|
|
|
<div class="modal fade" id="modal" aria-hidden="true" tabindex="-1">
|
|
|
|
|
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable">
|
|
|
|
|
<div class="modal-content">
|
|
|
|
|
hello from modal
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2024-11-11 13:57:11 +07:00
|
|
|
<?= $this->endSection() ?>
|
|
|
|
|
|
|
|
|
|
<?= $this->section('script') ?>
|
|
|
|
|
<script>
|
2024-11-12 15:33:56 +07:00
|
|
|
$(document).ready(function() {
|
|
|
|
|
$('#table_dashboard').DataTable({
|
|
|
|
|
order: [],
|
|
|
|
|
pageLength: 25
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$('.viewAccess').on('click',function(){
|
|
|
|
|
const access = $(this).data('access');
|
|
|
|
|
$('.modal-content').load('<?=base_url();?>dashboard/viewAccess/'+access, function(){
|
|
|
|
|
$('#modal').modal('show');
|
2024-11-11 13:57:11 +07:00
|
|
|
});
|
2024-11-12 15:33:56 +07:00
|
|
|
});
|
2024-11-11 13:57:11 +07:00
|
|
|
</script>
|
2024-11-08 13:50:33 +07:00
|
|
|
<?= $this->endSection() ?>
|