99 lines
4.0 KiB
PHP
Executable File
99 lines
4.0 KiB
PHP
Executable File
<div class="row" id="client_list">
|
|
<div class="col-12">
|
|
<div class="card">
|
|
<div class="card-body">
|
|
<div class="row" style="margin-bottom:1rem;">
|
|
<div class="col-6" style="align-self: center;">
|
|
|
|
<h4 style="position: relative;">Client Deposit -
|
|
<?php echo $clientName[0]['client_name'];?></h4>
|
|
|
|
</div>
|
|
<div class="col-6" style="text-align: right;">
|
|
<a href="<?= base_url("client/list"); ?>"><i class="fas fa-arrow-left" style="font-size: 17px;"></i></a>
|
|
</div>
|
|
<!-- <div class="col-6" style="text-align: right; position: relative;top: 53px;">
|
|
<a href="<?= base_url("client/client_deposit"); ?>" type="button" id="btnAdd" class="btn btn-primary waves-effect waves-light" data-toggle="" data-placement="top" title="Add" data-trigger="hover">ADD</a>
|
|
</div> -->
|
|
</div>
|
|
<table class="table table-sm 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">Insurer Name</th>
|
|
<th class="font-weight-medium">CD Account Number</th>
|
|
<th class="font-weight-medium">Current Balance</th>
|
|
<th class="font-weight-medium">Action</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
<?php foreach ($clientData as $value): ?>
|
|
|
|
<td><?php echo $value->insurer_name;?></td>
|
|
<td><?php echo $value->cd_master_account_no;?></td>
|
|
|
|
<td>₹
|
|
<?php
|
|
$insurerId = $value->insurer_id;
|
|
// Check if the balance information exists for the insurer
|
|
if (isset($balances[$insurerId])) {
|
|
$balance = $balances[$insurerId]->balance;
|
|
echo $balance;
|
|
} else {
|
|
echo "N/A"; // Display "Not Available" if balance information is not present
|
|
}
|
|
?>
|
|
</td>
|
|
<td>
|
|
<a class="dropdown-item"
|
|
href="<?= base_url("client/view_deposit/{$value->insurer_id}?client_id={$value->client_id}"); ?>">
|
|
<i class="mdi mdi-eye mr-2 text-muted font-18 vertical-middle"></i>View Deposit
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div><!-- end col -->
|
|
</div>
|
|
<!-- end row -->
|
|
|
|
<script>
|
|
$(document).ready(function() {
|
|
|
|
$('#tickets-table').DataTable({
|
|
dom: "<'row'<'col-sm-0'f><'col-sm-9 text-right'B>>",
|
|
buttons: [{
|
|
extend: 'csv',
|
|
text: 'CSV',
|
|
title: 'Client Deposit Details - ' + ' <?php echo $clientName[0]['client_name'];?>',
|
|
className: 'my_class',
|
|
exportOptions: {
|
|
columns: ':not(:last-child)'
|
|
},
|
|
},
|
|
{
|
|
extend: 'pdf',
|
|
text: 'PDF',
|
|
title: 'Client Deposit Details - ' + ' <?php echo $clientName[0]['client_name'];?>',
|
|
exportOptions: {
|
|
columns: ':not(:last-child)'
|
|
},
|
|
}
|
|
],
|
|
|
|
|
|
language: {
|
|
search: "_INPUT_",
|
|
searchPlaceholder: "Search..."
|
|
},
|
|
|
|
});
|
|
|
|
})
|
|
</script>
|