60 lines
3.1 KiB
PHP
Executable File
60 lines
3.1 KiB
PHP
Executable File
<div class="row">
|
|
<div class="col-12">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<br>
|
|
<h4 class="header-title mb-3"><?= $page_name; ?></h4>
|
|
<div class="table-responsive">
|
|
<table id="scroll-horizontal-datatable_customer" class="table w-100 nowrap">
|
|
<thead class="thead-light">
|
|
<tr>
|
|
<th hidden></th>
|
|
<th>Name</th>
|
|
<th>Mode</th>
|
|
<th>Start At</th>
|
|
<th>Sent At</th>
|
|
<th>Campaign Name</th>
|
|
<th>Status</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($noifications_acknowlegdement as $na) :
|
|
$customer = (int)$na['customer_id'] > 0 ? $na['customers_name'] : "--" ;
|
|
$campaign = "--";
|
|
switch ((int)$na['campaign_id']) {
|
|
case 0: $campaign = "Custom Notify"; break;
|
|
case 1: case 2: $campaign = "Expiry Notify"; break;
|
|
default: $campaign = $na['campaign_name'];
|
|
}
|
|
|
|
if ((int)$na['receiving_status'] == 1) { $class = 'text-success text-center display-1'; $icon = '<i class="ri-chat-check-fill"></i>'; $result = "";}
|
|
else { $class = 'text-danger text-center display-1'; $icon = '<i class="ri-chat-delete-fill"></i>'; $result = "";}
|
|
?>
|
|
<tr>
|
|
|
|
<td hidden><?= $na['child_id']; ?></td>
|
|
<td><?= $customer; ?></td>
|
|
<td><?= $na['receiving_entity']; ?></td>
|
|
<td><?= $na['formatted_start_date_time']; ?></td>
|
|
<td><?= $na['formatted_sent_date_time']; ?></td>
|
|
<td><?= $campaign; ?></td>
|
|
<td><div class="<?= $class; ?>" title="<?= $result; ?>" style="font-size: 1.4rem !important"><?= $icon; ?></div></td>
|
|
<!-- <td><?= $na['receiving_status']; ?></td> -->
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div> <!-- end card body-->
|
|
</div> <!-- end card -->
|
|
</div><!-- end col-->
|
|
</div>
|
|
|
|
<!-- end row-->
|
|
<script>
|
|
$(document).ready(function() {
|
|
$('#scroll-horizontal-datatable_customer').DataTable({
|
|
"order": [[0, "desc"]]
|
|
});
|
|
});
|
|
</script>
|