85 lines
4.9 KiB
PHP
85 lines
4.9 KiB
PHP
<div class="row" id="client_list">
|
|
<div class="col-12">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<div class="row" style="padding-bottom: 10px;">
|
|
<div class="col-6" style="align-self: center;">
|
|
<h4 class="header-title" style="position: relative;">Employees</h4>
|
|
</div>
|
|
|
|
</div>
|
|
<table class="table table-hover m-0 table-centered dt-responsive nowrap w-100" cellspacing="0"
|
|
id="tickets-table">
|
|
<thead class="bg-light">
|
|
<tr>
|
|
<th class="font-weight-medium">SNO</th>
|
|
<!-- <th class="font-weight-medium">Employee code</th> -->
|
|
<th class="font-weight-medium">Name/code</th>
|
|
<th class="font-weight-medium">Policy name</th>
|
|
<th class="font-weight-medium">Insurer name</th>
|
|
<th class="font-weight-medium">TPA ID</th>
|
|
<th class="font-weight-medium">UHID ID</th>
|
|
<th class="font-weight-medium">Policy status</th>
|
|
<th class="font-weight-medium">Premium</th>
|
|
<th class="font-weight-medium">Action</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody class="font-12">
|
|
<?php
|
|
if(isset($employees))
|
|
{
|
|
foreach ($employees as $key => $employee) { ?>
|
|
|
|
<tr>
|
|
<td><b><?php echo ($key + 1)?></b></td>
|
|
<!-- <td><?php echo $employee['emp_code']?></td> -->
|
|
<td><?php echo $employee['name']?>( <?php echo $employee['emp_code']?> )</td>
|
|
<td><?php echo $employee['policy_name']?></td>
|
|
<td><?php echo $employee['insurer_short_name']?></td>
|
|
<td><?php echo $employee['tpa_id']?></td>
|
|
<td><?php echo $employee['uhid']?></td>
|
|
<td>
|
|
<?php
|
|
if ($employee['status'] == 'draft') {
|
|
echo '<span class="badge badge-secondary">' . $employee['status'] . '</span>';
|
|
} elseif ($employee['status'] == 'active') {
|
|
echo '<span class="badge badge-success">' . $employee['status'] . '</span>';
|
|
} elseif ($employee['status'] == 'inactive') {
|
|
echo '<span class="badge badge-warning">' . $employee['status'] . '</span>';
|
|
}elseif ($employee['status'] == 'expired') {
|
|
echo '<span class="badge badge-danger">' . $employee['status'] . '</span>';
|
|
}else{
|
|
echo $employee['status'];
|
|
}
|
|
?>
|
|
</td>
|
|
<td><?php echo $employee['premium']?></td>
|
|
<td>
|
|
<div class="btn-group dropdown">
|
|
<a href="javascript: void(0);"
|
|
class="dropdown-toggle arrow-none btn btn-light btn-sm" data-toggle="dropdown"
|
|
aria-expanded="false"><i class="mdi mdi-dots-horizontal"></i></a>
|
|
<div class="dropdown-menu dropdown-menu-right">
|
|
<a class="dropdown-item" href="#"><i
|
|
class="mdi mdi-pencil mr-2 text-muted font-18 vertical-middle"></i>Edit
|
|
Ticket</a>
|
|
<a class="dropdown-item" href="#"><i
|
|
class="mdi mdi-check-all mr-2 text-muted font-18 vertical-middle"></i>Close</a>
|
|
<a class="dropdown-item" href="#"><i
|
|
class="mdi mdi-delete mr-2 text-muted font-18 vertical-middle"></i>Remove</a>
|
|
<a class="dropdown-item" href="#"><i
|
|
class="mdi mdi-star mr-2 font-18 text-muted vertical-middle"></i>Mark as
|
|
Unread</a>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<?php }}?>
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div><!-- end col -->
|
|
</div>
|