Merge branch 'dev' of bitbucket.org:jubilian/nhance into dev

This commit is contained in:
VENKATESHWARAN 2025-01-06 12:21:32 +05:30
commit 1adf19378c
22 changed files with 279 additions and 29 deletions

View File

@ -484,7 +484,7 @@ class ClientController extends AdminController
// Fetch associated insurer names and balances
$balances = $this->clientPolicyModel->getBalances($id);
$data['balances'] = $balances;
// dd($data);
echo view('layout/header', $headerData);
echo view('client_deposit_list', $data);
echo view('layout/footer');
@ -521,7 +521,7 @@ class ClientController extends AdminController
$data['clientData'] = $this->clientPolicyModel->getClientById($clientId);
$data['deposiamount'] = $this->clientPolicyModel->getDepositSummary($clientId, $insurerId);
// dd($data['depositdata']);
// dd($data['insurerName']);
// print_r($data['depositdata'] );die;
// Load the view for the new list page;
@ -1051,7 +1051,7 @@ class ClientController extends AdminController
$data['policy_status'] = 1;
$data['inception_type'] = $this->request->getPost('inception_type') ? 2 : 1;
$data['client_branch_id'] = $this->request->getPost('client_branch_id');
$data['cd_ac_no'] = $this->request->getPost('cd_ac_no');
$data['cd_ac_pk'] = $this->request->getPost('cd_ac_no');
$data['gst'] = $this->request->getPost('gst');
$data['disclaimer'] = $this->request->getPost('disclaimer');
$data['is_member_modify_allowed'] = $this->request->getPost('is_member_modify_allowed') ? 1 : 0;
@ -1102,7 +1102,7 @@ class ClientController extends AdminController
'insurer_branch_id' => $insurerBranchId,
'issue_type' => 1,
'policy_no' => $this->request->getPost('policy_no'),
'cd_ac_no' => $this->request->getPost('cd_ac_no'),
'cd_ac_pk' => $this->request->getPost('cd_ac_no'),
'policy_issue_date' => date('Y-m-d'),
'policy_start_date' => change_date_format($this->request->getPost('policy_start_date'), 'd-m-Y', 'Y-m-d'),
'policy_end_date' => change_date_format($this->request->getPost('policy_end_date'), 'd-m-Y', 'Y-m-d'),
@ -1112,7 +1112,6 @@ class ClientController extends AdminController
];
$insert = $this->clientPolicyModel->insert($data);
if ($insert) {
@ -1139,6 +1138,7 @@ class ClientController extends AdminController
public function editClientPolicy()
{
// print_r('test'); die;
$this->myLogger->logme('error', 'Client policy function called');
@ -1182,13 +1182,12 @@ class ClientController extends AdminController
$data['inception_type'] = $this->request->getPost('inception_type') ? 2 : 1;
$data['enrolment_visibility'] = $this->request->getPost('enrolment_visibility') ? 1 : 0;
$data['client_branch_id'] = $this->request->getPost('client_branch_id');
$data['cd_ac_no'] = $this->request->getPost('cd_ac_no');
$data['cd_ac_pk'] = $this->request->getPost('cd_ac_no');
$data['gst'] = $this->request->getPost('gst');
$data['disclaimer'] = $this->request->getPost('disclaimer');
$data['policy_start_date'] = change_date_format($this->request->getPost('policy_start_date'), 'd-m-Y', 'Y-m-d');
$data['policy_end_date'] = change_date_format($this->request->getPost('policy_end_date'), 'd-m-Y', 'Y-m-d');
$data['is_member_modify_allowed'] = $this->request->getPost('is_member_modify_allowed') ? 1 : 0;
if ($data['inception_type'] == 2) {
$data['open_date'] = change_date_format($this->request->getPost('open_date'), 'd-m-Y', 'Y-m-d');
$data['close_date'] = change_date_format($this->request->getPost('close_date'), 'd-m-Y', 'Y-m-d');

View File

@ -3880,7 +3880,8 @@ class EmpDataServiceController extends BaseController
foreach($units as $unit)
{
$client_policy_id = $arrayData['client_policy_id'];
$cd_ac_pk = $this->clientPolicyModel->select('cd_ac_pk')->where('id',$client_policy_id)->first();
$amount = $this->employeePolicyModel->query("
SELECT SUM(rata_premimum + gst) AS total_sum
FROM employee_polices
@ -3908,6 +3909,7 @@ class EmpDataServiceController extends BaseController
'updated_by' => $arrayData['user_id'],
'event_name' => $arrayData['event_name'],
'is_active' => 1,
'cd_ac_pk' => $cd_ac_pk['cd_ac_pk']
];
$response = DepositHelper::saveDeposit($data, $arrayData['user_id']);
@ -3964,6 +3966,7 @@ class EmpDataServiceController extends BaseController
'updated_by' => $arrayData['user_id'],
'event_name' => $arrayData['event_name'],
'is_active' => 1,
'cd_ac_pk' => $insurer_id['cd_ac_pk']
];
$response = DepositHelper::saveDeposit($data, $arrayData['user_id']);
@ -3999,7 +4002,7 @@ class EmpDataServiceController extends BaseController
// dd($client_branch_data, $units);
$get_insurer_id_from_client_policy = db_connect()->table('client_policy')
->select('insurer_id')
->select('insurer_id,cd_ac_pk')
->where('id', $arrayData['client_policy_id'])
->get()
->getRowArray();
@ -4077,6 +4080,7 @@ class EmpDataServiceController extends BaseController
'updated_by' => $arrayData['user_id'],
'event_name' => $arrayData['event_name'],
'is_active' => 1,
'cd_ac_pk' => $insurer_id['cd_ac_pk']
];
$response = DepositHelper::saveDeposit($data, $arrayData['user_id']);

View File

@ -1224,7 +1224,7 @@ class MasterController extends AdminController
$data = $this->request->getPost();
$date = (string) $this->request->getPost('opening_date');
$data['opening_date'] = date('Y-m-d', strtotime($date));
// print_rr($data);die();
// Prepare the array with data
$cd_tranction_data = [
'amount' => $data['opening_bal'],
@ -1247,7 +1247,7 @@ class MasterController extends AdminController
$insert = $this->CDMasterModel->insert($data);
if ($insert) {
$cd_tranction_data['cd_ac_pk'] = $this->CDMasterModel->insertID();
$response = DepositHelper::saveDeposit($cd_tranction_data, $loggedInUserID);
session()->setFlashdata('success', "Cash Deposite Master Added Successfully");

View File

@ -225,6 +225,7 @@ class PolicyTransactionController extends BaseController
// print_r($this->request->getPost()); die;
$id = $this->request->getPost('id');
$data = $this->preparePolicyData();
$data['cd_ac_pk'] = $this->request->getPost('cd_ac_no');
// print_r($this->request->getPost()); die;
@ -434,7 +435,7 @@ class PolicyTransactionController extends BaseController
if(isset($data['follow_insurer_id'])){
foreach ($data['follow_insurer_id'] as $index => $insurer) {
// Separate the insurer and insurer branch
list($insurer_branch_id, $insurer_id) = explode('-', $insurer);
@ -534,7 +535,7 @@ class PolicyTransactionController extends BaseController
'created_by' => get_session_userid(),
'policy_no' => $data['policy_no'] ?? null,
'client_branch_id' => $data['client_branch_id'] ?? 0,
'cd_ac_no' => $data['cd_ac_no'] ?? null,
'cd_ac_pk' => $data['cd_ac_no'] ?? null,
'gst' => 18,
];
}

View File

@ -40,7 +40,7 @@ class UserController extends AdminController
$data['UserList'] = $this->userModel->getUserList();
// echo '<pre>';
// print_r($data); die;
$data['roleData'] = $this->roleModel->select('id, role')->findAll();
$data['roleData'] = $this->roleModel->select('id, role')->findAll();
$data['teamData'] = $this->teamModel->select('id, name')->findAll();
$this->loadLayout('UserList', $data);
}

View File

@ -62,6 +62,7 @@ class DepositHelper
'created_by' => $loggedInUserID,
'updated_by' => $data['updated_by'],
'balance' => $newBalance, // Include the new balance in the data array
'cd_ac_pk'=> isset($data['cd_ac_pk'])?$data['cd_ac_pk']:null,
];
// Insert data and get the insert ID

View File

@ -27,6 +27,7 @@ class ClientDepositModel extends Model
"endorsement_no",
"event_name",
"unit",
"cd_ac_pk"
];

View File

@ -52,6 +52,7 @@ class ClientPolicyModel extends Model
"disclaimer",
"is_active",
"is_member_modify_allowed",
"cd_ac_pk"
];
// Callbacks
@ -169,13 +170,14 @@ class ClientPolicyModel extends Model
public function getinsurerswithclientid($id){
return $this->db->table('client_policy')
->select('client_policy.*, cd_master.cd_ac_no')
->select('client_policy.*, cd_master.cd_ac_no as cd_master_account_no')
->select('insurers.name as insurer_name, insurers.short_name as insurer_short')
->select('clients.client_name as client_name')
->join('clients','clients.id=client_policy.client_id')
->join('insurers', 'insurers.id = client_policy.insurer_id')
->join('cd_master', 'cd_master.insurer_id = insurers.id AND cd_master.client_id = client_policy.client_id')
->where('client_policy.client_id', $id)
->where('cd_master.id = client_policy.cd_ac_pk')
->groupBy('client_policy.insurer_id')
->groupBy('client_policy.client_id', $id) // Group by insurer_id
->get()
@ -225,6 +227,7 @@ class ClientPolicyModel extends Model
->select('cash_deposit.*')
->select('insurers.name as insurer_name, insurers.short_name as insurer_short')
->select('clients.client_name as clientname, clients.short_name as clientshort, client_policy.policy_no')
->select('cd_master.cd_ac_no as cd_master_account_no')
// ->select('policies.name as policy_name')
->select('policy_type.policy_type')
->select('user_profiles.first_name as username')
@ -232,11 +235,13 @@ class ClientPolicyModel extends Model
->join('insurers', 'insurers.id = cash_deposit.insurer_id', 'left')
->join('clients', 'clients.id = cash_deposit.client_id', 'left')
->join('client_policy', 'client_policy.id = cash_deposit.client_policy_id', 'left')
->join('cd_master', 'cd_master.id = cash_deposit.cd_ac_pk', 'left')
// ->join('policies', 'policies.id = client_policy.policy_id', 'left')
->join('policy_type', 'policy_type.id = client_policy.policy_type_id', 'left')
->where('cash_deposit.client_id', $clientId)
->where('cash_deposit.insurer_id', $insurerId)
->where('cash_deposit.is_active', 1)
// ->where('cash_deposit.cd_ac_pk = cd_master.id')
->orderBy('cash_deposit.id', 'DESC')
->get()
->getResult();

View File

@ -41,11 +41,12 @@ class InsurerModel extends Model
{
// Fetch the insurer name based on the insurer ID
$query = $this->db->table('client_policy')
->select('insurers.id, insurers.name, cd_master.cd_ac_no')
->select('insurers.id, insurers.name, cd_master.cd_ac_no as cd_master_account_no')
->join('insurers', 'insurers.id = client_policy.insurer_id')
->join('cd_master', 'cd_master.insurer_id = insurers.id AND cd_master.client_id = client_policy.client_id')
->where('client_policy.insurer_id', $insurerId)
->where('client_policy.client_id', $client_id)
->where('cd_master.id = client_policy.cd_ac_pk')
->get();
if ($query->resultID->num_rows > 0) {

View File

@ -76,6 +76,7 @@ class PolicyTransactionModel extends Model
'ct_tran_id',
'remarks',
'month',
'cd_ac_pk'
];

View File

@ -182,7 +182,9 @@ $(document).ready(function () {
$('#tickets-table').DataTable({
dom: "<'row'<'col-sm-0'f><'col-sm-9 text-right'B>>" ,
dom: "<'row'<'col-sm-0'f><'col-sm-9 text-right'B>>" + // Keep your original alignment for the search and buttons
"<'row'<'col-sm-12'tr>>" + // Table rows
"<'row'<'col-sm-6'i><'col-sm-6'p>>",
buttons: [
{
extend: 'csv',

View File

@ -209,6 +209,28 @@ table.dataTable tbody td {
</div>
</div>
<script>
document.addEventListener("DOMContentLoaded", function() {
// Get all rows of the table
const rows = document.querySelectorAll('#scroll-horizontal-datatable tbody tr');
rows.forEach(row => {
// Add a click event listener to each row
row.addEventListener('click', function(event) {
// Find the dropdown toggle button inside the clicked row
const dropdownToggle = row.querySelector('.dropdown-toggle');
// Check if the clicked element is not the dropdown button itself to avoid unnecessary clicks
if (dropdownToggle && !event.target.closest('.dropdown-menu')) {
// Manually trigger Bootstrap's dropdown toggle using Bootstrap's Dropdown class
const dropdown = new bootstrap.Dropdown(dropdownToggle);
dropdown.toggle(); // Toggle the dropdown visibility
}
});
});
});
</script>
<script>
// Datatable document ready
$(document).ready(function() {

View File

@ -16,6 +16,11 @@ table.dataTable thead th {
max-width: 98% !important;
}
.dropdown-menu {
position: absolute !important;
z-index: 1050 !important; /* Ensures dropdown appears above other elements */
transform: none !important; /* Prevents Bootstrap's default offset positioning */
}
</style>
<div class="row" id="client_list">
@ -158,7 +163,40 @@ table.dataTable thead th {
</div>
</div>
</div><!-- /.modal -->
<script>
document.addEventListener("DOMContentLoaded", function () {
const table = document.getElementById("tickets-table");
// Add click event listener to rows
table.querySelectorAll("tbody tr").forEach(row => {
row.addEventListener("click", function (event) {
// Check if the clicked element is inside the dropdown
if (event.target.closest(".dropdown-toggle") || event.target.closest(".dropdown-menu")) {
return; // Do nothing if the dropdown or its menu is clicked
}
// Trigger dropdown menu programmatically
const dropdownToggle = this.querySelector(".dropdown-toggle");
if (dropdownToggle) {
const dropdown = new bootstrap.Dropdown(dropdownToggle); // Bootstrap instance
dropdown.toggle(); // Toggle dropdown visibility
}
});
});
// Close dropdowns when clicking outside the table
document.addEventListener("click", function (event) {
if (!event.target.closest("#tickets-table")) {
const openDropdowns = document.querySelectorAll(".dropdown-menu.show");
openDropdowns.forEach(menu => {
menu.classList.remove("show");
});
}
});
});
</script>
<script>

View File

@ -33,7 +33,7 @@
<?php foreach ($clientData as $value): ?>
<td><?php echo $value->insurer_name;?></td>
<td><?php echo $value->cd_ac_no;?></td>
<td><?php echo $value->cd_master_account_no;?></td>
<td>
<?php

View File

@ -533,7 +533,7 @@
var formData = new FormData($('#policy_form')[0]);
var policy_form_action = $('#policy_form_action').val();
console.log(formData+'form data');
$.ajax({
data: formData,
url: policy_form_action,
@ -702,8 +702,8 @@
$.get(url_for_cd, function(response){
//console.log(response)
//console.log(response.data)
// console.log(response)
// console.log(response.data)
if(response.status == false && response.insurer_id != 'undefined'){
toastr.warning('The CD Account Number not found.', 'Warning');
@ -1649,7 +1649,7 @@
$.each(data, function(index, item) {
const option = $('<option>', {
value: item.cd_ac_no,
value: item.id,
text: item.cd_ac_no
});

View File

@ -209,6 +209,29 @@ table.dataTable tbody td {
</div>
</div>
<script>
document.addEventListener("DOMContentLoaded", function() {
// Get all rows of the table
const rows = document.querySelectorAll('#scroll-horizontal-datatable tbody tr');
rows.forEach(row => {
// Add a click event listener to each row
row.addEventListener('click', function(event) {
// Find the dropdown toggle button inside the clicked row
const dropdownToggle = row.querySelector('.dropdown-toggle');
// Check if the clicked element is not the dropdown button itself to avoid unnecessary clicks
if (dropdownToggle && !event.target.closest('.dropdown-menu')) {
// Manually trigger Bootstrap's dropdown toggle using Bootstrap's Dropdown class
const dropdown = new bootstrap.Dropdown(dropdownToggle);
dropdown.toggle(); // Toggle the dropdown visibility
}
});
});
});
</script>
<script>
// Datatable document ready
$(document).ready(function() {

View File

@ -107,6 +107,12 @@ table.dataTable tbody td {
.disabled-option {
color: gray;
}
.dropdown-menu {
position: absolute !important;
z-index: 1050 !important; /* Ensures dropdown appears above other elements */
transform: none !important; /* Prevents Bootstrap's default offset positioning */
}
</style>
<div class="row" id="inception_list">
@ -411,7 +417,40 @@ table.dataTable tbody td {
</div>
</div>
</div>
<script>
document.addEventListener("DOMContentLoaded", function () {
const table = document.getElementById("tickets-table");
// Add click event listener to rows
table.querySelectorAll("tbody tr").forEach(row => {
row.addEventListener("click", function (event) {
// Check if the clicked element is inside the dropdown
if (event.target.closest(".dropdown-toggle") || event.target.closest(".dropdown-menu")) {
return; // Do nothing if the dropdown or its menu is clicked
}
// Trigger dropdown menu programmatically
const dropdownToggle = this.querySelector(".dropdown-toggle");
if (dropdownToggle) {
const dropdown = new bootstrap.Dropdown(dropdownToggle); // Bootstrap instance
dropdown.toggle(); // Toggle dropdown visibility
}
});
});
// Close dropdowns when clicking outside the table
document.addEventListener("click", function (event) {
if (!event.target.closest("#tickets-table")) {
const openDropdowns = document.querySelectorAll(".dropdown-menu.show");
openDropdowns.forEach(menu => {
menu.classList.remove("show");
});
}
});
});
</script>
<script>
document.getElementById('invoice_status').addEventListener('change', function () {

View File

@ -232,7 +232,40 @@ table.dataTable thead th {
<!-- end table row -->
<?php include('policy_transaction_endorsement_form.php'); ?>
<script>
document.addEventListener("DOMContentLoaded", function () {
const table = document.getElementById("tickets-table");
// Add click event listener to rows
table.querySelectorAll("tbody tr").forEach(row => {
row.addEventListener("click", function (event) {
// Check if the clicked element is inside the dropdown
if (event.target.closest(".dropdown-toggle") || event.target.closest(".dropdown-menu")) {
return; // Do nothing if the dropdown or its menu is clicked
}
// Trigger dropdown menu programmatically
const dropdownToggle = this.querySelector(".dropdown-toggle");
if (dropdownToggle) {
const dropdown = new bootstrap.Dropdown(dropdownToggle); // Bootstrap instance
dropdown.toggle(); // Toggle dropdown visibility
}
});
});
// Close dropdowns when clicking outside the table
document.addEventListener("click", function (event) {
if (!event.target.closest("#tickets-table")) {
const openDropdowns = document.querySelectorAll(".dropdown-menu.show");
openDropdowns.forEach(menu => {
menu.classList.remove("show");
});
}
});
});
</script>
<script>
var client_list = ''; // local variable for storing the client branch list

View File

@ -1494,7 +1494,7 @@ function getPolicyTransactionDataForEdit(input) {
$('#policy_tranction_policy_number').val(res.data.policy_no);
// $('#cd_ac_no_for_edit').val(res.data.cd_ac_no);
$('#cd_ac_no').val(res.data.cd_ac_no);
$('#cd_ac_no').val(res.data.id);
// $('#entity_type_id').val(res.data.entity_type_id);
getKYCEntityDocument(res.data.entity_type_id, res.data.client_id);
@ -1567,7 +1567,7 @@ function getPolicyTransactionDataForEdit(input) {
}
setTimeout(function() {
$('#cd_ac_no').val(res.data.cd_ac_no);
$('#cd_ac_no').val(res.data.id);
$('#client_branch_id').val(res.data.client_branch_id).change();
$('#source_client_policy_id').val(res.data.source_client_policy_id).change();
$('#base_policy').val(res.data.base_policy).select2();
@ -1578,7 +1578,7 @@ function getPolicyTransactionDataForEdit(input) {
setTimeout(function(){
// $('select[name="cd_ac_no_for_child[]"]').val(res.data.cd_ac_no ?? "");
$('select[name="cd_ac_no_for_child[]"] option').each(function() {
if ($(this).val() == res.data.cd_ac_no) {
if ($(this).val() == res.data.id) {
$(this).prop('selected', true);
$('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow');
@ -2732,7 +2732,7 @@ function appendCDAccountNumber(data, unique_id, new_cd_ac_no = null)
$.each(data, function(index, item) {
var option = $('<option>', {
value: item.cd_ac_no,
value: item.id,
text: item.cd_ac_no,
});
if (new_cd_ac_no == item.cd_ac_no) {
@ -3281,7 +3281,7 @@ $("#CDMasterForm").submit(function(event) {
var formData = new FormData($('#CDMasterForm')[0]);
formData.append('client_id', client_id);
formData.append('insurer_id', insurer_id);
formData.append('insurer_id', insurer_id);console.log(formData);
$.ajax({
data:formData,
@ -3297,7 +3297,7 @@ $("#CDMasterForm").submit(function(event) {
if(res.status == true){
appendCDAccountNumber(res.data, unique_id, res.cd_ac_no)
$('#cd_ac_no').val(res.cd_ac_no)
$('#cd_ac_no').val(res.id)
toastr.success(res.message, 'Success');
}else{
toastr.error(res.message, 'Error');

View File

@ -45,6 +45,12 @@ table.dataTable tbody td {
.addbtnStyle{
margin-left: 20px !important;
}
.dropdown-menu {
position: absolute !important;
z-index: 1050 !important; /* Ensures dropdown appears above other elements */
transform: none !important; /* Prevents Bootstrap's default offset positioning */
}
</style>
<style>
@ -339,6 +345,40 @@ table.dataTable tbody td {
</div>
</div>
</div>
<script>
document.addEventListener("DOMContentLoaded", function () {
const table = document.getElementById("tickets-table");
// Add click event listener to rows
table.querySelectorAll("tbody tr").forEach(row => {
row.addEventListener("click", function (event) {
// Check if the clicked element is inside the dropdown
if (event.target.closest(".dropdown-toggle") || event.target.closest(".dropdown-menu")) {
return; // Do nothing if the dropdown or its menu is clicked
}
// Trigger dropdown menu programmatically
const dropdownToggle = this.querySelector(".dropdown-toggle");
if (dropdownToggle) {
const dropdown = new bootstrap.Dropdown(dropdownToggle); // Bootstrap instance
dropdown.toggle(); // Toggle dropdown visibility
}
});
});
// Close dropdowns when clicking outside the table
document.addEventListener("click", function (event) {
if (!event.target.closest("#tickets-table")) {
const openDropdowns = document.querySelectorAll(".dropdown-menu.show");
openDropdowns.forEach(menu => {
menu.classList.remove("show");
});
}
});
});
</script>
<script>

View File

@ -21,6 +21,8 @@ table.dataTable tbody td {
background-color: #f0f0f0;
color: #666;
}
</style>
<div class="row" id="client_list">
@ -323,6 +325,44 @@ table.dataTable tbody td {
</div>
<!-- end of Client form content modal -->
<script>
document.addEventListener("DOMContentLoaded", function () {
const table = document.getElementById("client_list");
// Add click event listener to rows
table.querySelectorAll("tbody tr").forEach(row => {
row.addEventListener("click", function (event) {
// Check if the clicked element is inside the dropdown or its menu
if (event.target.closest(".dropdown-toggle") || event.target.closest(".dropdown-menu")) {
return; // Do nothing if the dropdown or its menu is clicked
}
// Trigger dropdown menu programmatically
const dropdownToggle = this.querySelector(".dropdown-toggle");
if (dropdownToggle) {
const dropdown = new bootstrap.Dropdown(dropdownToggle); // Bootstrap instance
dropdown.toggle(); // Toggle dropdown visibility
}
});
});
// Close dropdowns when clicking outside the table or dropdown
document.addEventListener("click", function (event) {
// Check if click is outside of table and dropdown
const isClickInsideTable = event.target.closest("#client_list");
const isClickInsideDropdown = event.target.closest(".dropdown-toggle, .dropdown-menu");
if (!isClickInsideTable && !isClickInsideDropdown) {
// Close all dropdowns that are open
const openDropdowns = document.querySelectorAll(".dropdown-menu.show");
openDropdowns.forEach(menu => {
menu.classList.remove("show"); // Remove the 'show' class to hide the dropdown
});
}
});
});
</script>
<script>
var client_list = ''; // local variable for storing the client list

View File

@ -8,7 +8,7 @@
<div class="col-md-4"></div>
<div class="col-md-4">
<i class="font-24"></i>
<h4>CD Account No : <?php echo isset($insurerName->cd_ac_no) && !empty($insurerName->cd_ac_no) ? $insurerName->cd_ac_no : 'N/A' ?></h4>
<h4>CD Account No : <?php echo isset($insurerName->cd_master_account_no) && !empty($insurerName->cd_master_account_no) ? $insurerName->cd_master_account_no : 'N/A' ?></h4>
</div>
</div>
</div>