151 lines
6.5 KiB
PHP
151 lines
6.5 KiB
PHP
<style>
|
|
|
|
.badge2 {
|
|
box-shadow: none;
|
|
}
|
|
|
|
.badge2-secondary2 {
|
|
color: #fff;
|
|
background-color: #187607;
|
|
}
|
|
|
|
.badge2 {
|
|
display: inline-block;
|
|
padding: .25em .4em;
|
|
font-size: 75%;
|
|
font-weight: 700;
|
|
line-height: 1;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
vertical-align: baseline;
|
|
border-radius: .25rem;
|
|
transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
|
|
}
|
|
|
|
</style>
|
|
|
|
<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</th>
|
|
<th class="font-weight-medium">Policy status</th>
|
|
<th class="font-weight-medium">Sum Insured</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>';
|
|
}elseif ($employee['status'] == 'enrolled') {
|
|
echo '<span class="badge2 badge2-secondary2">' . $employee['status'] . '</span>';
|
|
}else{
|
|
echo $employee['status'];
|
|
}
|
|
?>
|
|
</td>
|
|
<td> <?php echo $employee['basic_cover_si']?> </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>
|
|
|
|
|
|
<script>
|
|
|
|
$(document).ready(function(){
|
|
|
|
$('#tickets-table').DataTable({
|
|
dom: "<'row'<'col-sm-0'f><'col-sm-9 text-right'B>>" +
|
|
"<'row'<'col-sm-12'tr>>" +
|
|
"<'row'<'col-sm-5'i><'col-sm-7'p>>",
|
|
"buttons": [{
|
|
"extend": 'csv',
|
|
"text": 'CSV',
|
|
"title": 'Employee-List',
|
|
"className": 'my_class',
|
|
"exportOptions": {
|
|
"columns": ':not(:last-child)'
|
|
},
|
|
}],
|
|
"initComplete": function(settings, json) {
|
|
$('.my_class').css({
|
|
"position": "relative",
|
|
"left": "82px"
|
|
});
|
|
},
|
|
language: {
|
|
search: "_INPUT_",
|
|
searchPlaceholder: "Search..."
|
|
},
|
|
paging: true ,
|
|
// pagingType: 'full_numbers'
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|