Files
MermsPanel2025/app/Views/provider/components/patient_listing.php
T
CHIEFSOFT\ameye 07948a23a3 Fix text
2024-09-08 14:28:06 -04:00

69 lines
3.1 KiB
PHP

<div class="card card-statistics h-100 m-b-30">
<div class="card-header d-flex align-items-center justify-content-between">
<div class="card-heading">
<h4 class="card-title">Messages</h4>
</div>
<div class="dropdown">
<a class="btn btn-round btn-inverse-primary btn-xs" href="/patient/addnew">Add New </a>
<a class="btn btn-round btn-inverse-primary btn-xs" href="/patient/findpatient">Find Patient </a>
</div>
</div>
<div class="card-body scrollbar scroll_dark pt-0" style="max-height: 630px;">
<div class="datatable-wrapper table-responsive">
<table id="datatable" class="table table-borderless table-striped">
<thead>
<tr>
<th style="width:20px;">#</th>
<th style="width:40px;">Select</th>
<th>Name</th>
<th style="width:20px;">DOB</th>
<th style="width:20px;">Gender</th>
<th style="width:80px;">Phone</th>
<th style="width:50px;">Status</th>
</tr>
</thead>
<tbody>
<?php
$darr = array();
$patient_list = isset($patient_list) ? $patient_list : $darr;
$icc = 0;
foreach ($patient_list as $prow) {
$icc++;
?>
<tr>
<td><?= $icc ?></td>
<td><a href="/patient/selectPatient/<?= $prow->patient_id ?>"><button type="button" class="btn btn-info btn-sm">Select</button></a></td>
<td><a href="/patient/selectPatient/<?=$prow->patient_id ?>"><?= $prow->firstname ?> <?= $prow->lastname ?></a></td>
<td><?=$prow->dob ?></td>
<td><?=$prow->gender ?></td>
<td><?= $prow->phone ?></td>
<td><span class="badge badge-success-inverse">Active</span></td>
<!-- td> <a class="mr-3" href="javascript:void(0);" onclick="selectPatient(<?= $prow->patient_id ?>)" ><i class="fe fe-edit"></i></a><a href="javascript:void(0);" onclick="calendarPatient(<?= $prow->patient_id ?>)"><i class="fe fe-calendar"></i></a></!-->
</tr>
<?php
}
?>
</tbody>
<tfoot>
<tr>
<th style="width:20px;">#</th>
<th style="width:40px;">Select</th>
<th>Name</th>
<th style="width:20px;">DOB</th>
<th style="width:20px;">Gender</th>
<th style="width:80px;">Phone</th>
<th style="width:50px;">Status</th>
</tr>
</tfoot>
</table>
</div>
</div>
</div>