MERGE_CLIENT_ISSUES
This commit is contained in:
commit
8155f7df5c
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
deployment:
|
deployment:
|
||||||
tasks:
|
tasks:
|
||||||
- export DEPLOYPATH=home3/venbaehn/public_html/nhance/devauto/
|
- export DEPLOYPATH=home/venbaehn/public_html/nhance/devauto
|
||||||
- /bin/cp -R * $DEPLOYPATH
|
- /bin/cp /home/venbaehn/repositories/nhance_dev/* $DEPLOYPATH -r
|
||||||
@ -294,9 +294,13 @@ class ClientController extends AdminController
|
|||||||
// print_r($this->request->getFile('client_logo'));die;
|
// print_r($this->request->getFile('client_logo'));die;
|
||||||
$file_name = file_Upload($this->request->getFile('client_logo'), $uploadFilePath);
|
$file_name = file_Upload($this->request->getFile('client_logo'), $uploadFilePath);
|
||||||
$id = $this->request->getPost('PrimaryKey');
|
$id = $this->request->getPost('PrimaryKey');
|
||||||
|
|
||||||
$data = $this->request->getPost();
|
$data = $this->request->getPost();
|
||||||
$data['updated_by'] = get_session_userid();
|
$data['updated_by'] = get_session_userid();
|
||||||
|
|
||||||
|
if(!empty($file_name)){
|
||||||
$data['client_logo'] = $file_name;
|
$data['client_logo'] = $file_name;
|
||||||
|
}
|
||||||
|
|
||||||
if (!isset($data['is_download_btn'])) {
|
if (!isset($data['is_download_btn'])) {
|
||||||
$data['is_download_btn'] = 0;
|
$data['is_download_btn'] = 0;
|
||||||
@ -304,8 +308,6 @@ class ClientController extends AdminController
|
|||||||
$data['is_download_btn'] = 1;
|
$data['is_download_btn'] = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// print_r($data);die;
|
|
||||||
|
|
||||||
$update = $this->clientModel->update($id,$data);
|
$update = $this->clientModel->update($id,$data);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -680,7 +680,7 @@ class MasterController extends AdminController
|
|||||||
$insert = $this->kycDocsModel->insert($data);
|
$insert = $this->kycDocsModel->insert($data);
|
||||||
|
|
||||||
if($insert){
|
if($insert){
|
||||||
$kycDocsData = $this->kycDocsModel->where('kyc_type_id', $data['kyc_type_id'])->findAll();
|
$kycDocsData = $this->kycDocsModel->where('kyc_type_id', $data['kyc_type_id'])->where('is_active',1)->findAll();
|
||||||
echo json_encode(array("status" => true , 'data' => $kycDocsData));
|
echo json_encode(array("status" => true , 'data' => $kycDocsData));
|
||||||
}else{
|
}else{
|
||||||
echo json_encode(array("status" => false));
|
echo json_encode(array("status" => false));
|
||||||
@ -715,8 +715,7 @@ class MasterController extends AdminController
|
|||||||
|
|
||||||
$this->myLogger->logme('error','Edit KYC Docs Onboarding function called');
|
$this->myLogger->logme('error','Edit KYC Docs Onboarding function called');
|
||||||
|
|
||||||
// print_r("id");
|
|
||||||
// print_r($id);die;
|
|
||||||
$editData['kyc_docs'] = $this->kycDocsModel->where(['kyc_type_id' => $id, 'is_active' => 1])->findAll();
|
$editData['kyc_docs'] = $this->kycDocsModel->where(['kyc_type_id' => $id, 'is_active' => 1])->findAll();
|
||||||
|
|
||||||
// Return JSON response
|
// Return JSON response
|
||||||
@ -862,7 +861,12 @@ class MasterController extends AdminController
|
|||||||
$data['created_by'] = get_session_userid();
|
$data['created_by'] = get_session_userid();
|
||||||
$insert = $this->policesModel->insert($data);
|
$insert = $this->policesModel->insert($data);
|
||||||
if($insert){
|
if($insert){
|
||||||
$policiesData = $this->policesModel->where('policy_type_id', $this->request->getPost('policy_type_id'))->findAll();
|
$policiesData = $this->policesModel->select('policies.*, insurers.name as insurer_name')
|
||||||
|
->join('insurers', 'insurers.id = policies.insurer_id')
|
||||||
|
->where('policies.policy_type_id', $this->request->getPost('policy_type_id'))
|
||||||
|
->where('policies.is_active', 1)
|
||||||
|
->findAll();
|
||||||
|
// $policiesData = $this->policesModel->where('policy_type_id', $this->request->getPost('policy_type_id'))->findAll();
|
||||||
echo json_encode(array("status" => true , 'data' => $policiesData));
|
echo json_encode(array("status" => true , 'data' => $policiesData));
|
||||||
}else{
|
}else{
|
||||||
echo json_encode(array("status" => false));
|
echo json_encode(array("status" => false));
|
||||||
@ -896,7 +900,12 @@ class MasterController extends AdminController
|
|||||||
$headerData['page_name'] = 'Edit Policy Type';
|
$headerData['page_name'] = 'Edit Policy Type';
|
||||||
|
|
||||||
$editData['policytype'] = $this->policyTypeModel->where(['id' => $id, 'is_active' => 1])->first();
|
$editData['policytype'] = $this->policyTypeModel->where(['id' => $id, 'is_active' => 1])->first();
|
||||||
$editData['policies'] = $this->policesModel->where(['policy_type_id' => $id, 'is_active' => 1])->findAll();
|
$editData['policies'] = $this->policesModel->select('policies.*, insurers.name as insurer_name')
|
||||||
|
->join('insurers', 'insurers.id = policies.insurer_id')
|
||||||
|
->where('policies.policy_type_id', $id)
|
||||||
|
->where('policies.is_active', 1)
|
||||||
|
->findAll();
|
||||||
|
// $editData['policies'] = $this->policesModel->where(['policy_type_id' => $id, 'is_active' => 1])->findAll();
|
||||||
$editData['insurer'] = $this->insurerModel-> findAll();
|
$editData['insurer'] = $this->insurerModel-> findAll();
|
||||||
echo view('layout/header', $headerData);
|
echo view('layout/header', $headerData);
|
||||||
echo view('policy_type_onboarding', $editData);
|
echo view('policy_type_onboarding', $editData);
|
||||||
@ -933,6 +942,7 @@ class MasterController extends AdminController
|
|||||||
// Retrieve the insurer information
|
// Retrieve the insurer information
|
||||||
$insurer = $this->insurerModel->find($policy['insurer_id']);
|
$insurer = $this->insurerModel->find($policy['insurer_id']);
|
||||||
|
|
||||||
|
// print_r($insurer);die;
|
||||||
// Add the insurer information to the editData array
|
// Add the insurer information to the editData array
|
||||||
if ($insurer) {
|
if ($insurer) {
|
||||||
$editData['policies'][$policy['id']] = [
|
$editData['policies'][$policy['id']] = [
|
||||||
|
|||||||
@ -56,9 +56,6 @@ class ClientModel extends Model
|
|||||||
|
|
||||||
return $this->db->table('clients')
|
return $this->db->table('clients')
|
||||||
->select('clients.*')
|
->select('clients.*')
|
||||||
->select('user_profiles.first_name as user_name')
|
|
||||||
->join('user_profiles', 'user_profiles.id = clients.created_by')
|
|
||||||
->where('clients.is_active', 1)
|
|
||||||
->get()
|
->get()
|
||||||
->getResult();
|
->getResult();
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
.switch {
|
.switch {
|
||||||
position: relative;
|
position: relative;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 60px;
|
width: 54px;
|
||||||
height: 34px;
|
height: 34px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -181,7 +181,7 @@ input:checked + .slider:before {
|
|||||||
<input id="is_download_btn" type="checkbox" name="is_download_btn" <?= (isset($client['is_download_btn']) && $client['is_download_btn'] == 1) ? 'checked' : '' ?>>
|
<input id="is_download_btn" type="checkbox" name="is_download_btn" <?= (isset($client['is_download_btn']) && $client['is_download_btn'] == 1) ? 'checked' : '' ?>>
|
||||||
<span class="slider round" style="height: 27px;"></span>
|
<span class="slider round" style="height: 27px;"></span>
|
||||||
</label>
|
</label>
|
||||||
<label for="is_download_btn">Enable Client Export Option</label>
|
<label for="is_download_btn" style=" position: relative;bottom: 5px;">Enable Client Export Option</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@ -254,6 +254,7 @@ input:checked + .slider:before {
|
|||||||
var OptionsHTML1 = ''
|
var OptionsHTML1 = ''
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
data:formData,
|
||||||
url: form_action,
|
url: form_action,
|
||||||
type: "POST",
|
type: "POST",
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="row float-right" style="position: relative; bottom: 20px; right: 13px;">
|
<div class="row float-right" style="position: relative; bottom: 20px; right: 13px;">
|
||||||
<button type="button" class="btn btn-primary waves-effect waves-light btn-sm btnBack"><span class="fa fa-list" aria-hidden="true" style="padding: 5px 10px;"></span>Back To List</button>
|
<button type="button" id="btnBranchBack" class="btn btn-primary waves-effect waves-light btn-sm btnBack"><span class="fa fa-list" aria-hidden="true" style="padding: 5px 10px;"></span>Back To List</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|||||||
@ -9,6 +9,9 @@
|
|||||||
<?php echo $clientName[0]['client_name'];?></h4>
|
<?php echo $clientName[0]['client_name'];?></h4>
|
||||||
|
|
||||||
</div>
|
</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;">
|
<!-- <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>
|
<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> -->
|
||||||
|
|||||||
@ -129,7 +129,7 @@
|
|||||||
var fileExtension = fileName.split('.').pop().toLowerCase();
|
var fileExtension = fileName.split('.').pop().toLowerCase();
|
||||||
if (allowedExtensions.indexOf(fileExtension) === -1) {
|
if (allowedExtensions.indexOf(fileExtension) === -1) {
|
||||||
form.trigger('reset')
|
form.trigger('reset')
|
||||||
toastr.warning('File type not allowed: ' + fileName, 'Warning');
|
toastr.warning('File type not allowed: ' + fileName, 'Only Allowed pdf, png, jpg and jpeg');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -66,14 +66,20 @@ table.dataTable tbody td {
|
|||||||
</div>
|
</div>
|
||||||
<!-- end row -->
|
<!-- end row -->
|
||||||
|
|
||||||
|
<!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> -->
|
||||||
|
<!-- <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> -->
|
||||||
|
<!-- Include DataTables JS -->
|
||||||
|
<!-- <script src="https://cdn.datatables.net/1.11.6/js/jquery.dataTables.min.js"></script> -->
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
|
||||||
$('#tickets-table').DataTable({
|
$('#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>>" +
|
||||||
buttons: [
|
"<'row'<'col-sm-12'tr>>" +
|
||||||
{
|
"<'row'<'col-sm-5'i><'col-sm-7'p>>",
|
||||||
|
buttons: [{
|
||||||
extend: 'csv',
|
extend: 'csv',
|
||||||
text: 'CSV',
|
text: 'CSV',
|
||||||
title: 'ClientList',
|
title: 'ClientList',
|
||||||
@ -81,15 +87,13 @@ table.dataTable tbody td {
|
|||||||
exportOptions: {
|
exportOptions: {
|
||||||
columns: ':not(:last-child)'
|
columns: ':not(:last-child)'
|
||||||
},
|
},
|
||||||
}
|
}],
|
||||||
],
|
|
||||||
|
|
||||||
|
|
||||||
language: {
|
language: {
|
||||||
search: "_INPUT_",
|
search: "_INPUT_",
|
||||||
searchPlaceholder: "Search..."
|
searchPlaceholder: "Search..."
|
||||||
},
|
},
|
||||||
|
paging: true ,
|
||||||
|
// pagingType: 'full_numbers'
|
||||||
});
|
});
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|||||||
@ -158,8 +158,10 @@ body {
|
|||||||
$('#BtnAdd').hide();
|
$('#BtnAdd').hide();
|
||||||
toastr.warning('Please Add the Client!', 'warning',{timeOut: 2000});
|
toastr.warning('Please Add the Client!', 'warning',{timeOut: 2000});
|
||||||
}else{
|
}else{
|
||||||
|
if ($('#btnPolicyBack')[0].style.display == 'none') {
|
||||||
$('#BtnAdd').show();
|
$('#BtnAdd').show();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -171,8 +173,10 @@ body {
|
|||||||
$('#btnBranchAdd').hide();
|
$('#btnBranchAdd').hide();
|
||||||
toastr.warning('Please Add the Client!', 'warning',{timeOut: 2000});
|
toastr.warning('Please Add the Client!', 'warning',{timeOut: 2000});
|
||||||
}else{
|
}else{
|
||||||
|
if ($('#btnBranchBack')[0].style.display == 'none') {
|
||||||
$('#btnBranchAdd').show();
|
$('#btnBranchAdd').show();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -5,9 +5,9 @@
|
|||||||
<button type="button" id="BtnAdd" class="btn btn-primary waves-effect waves-light btnAdd btn-sm"><span class="fa fa-plus-square" aria-hidden="true" style="padding: 5px 10px;"></span>Add Policy</button>
|
<button type="button" id="BtnAdd" class="btn btn-primary waves-effect waves-light btnAdd btn-sm"><span class="fa fa-plus-square" aria-hidden="true" style="padding: 5px 10px;"></span>Add Policy</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="table-responsive" id="table_list" style="height:200px">
|
<div class="table-responsive" id="table_list">
|
||||||
|
|
||||||
<table class="table table-borderless table-nowrap mb-0">
|
<table class="table table-borderless table-nowrap mb-0" id="table-client-policy">
|
||||||
<thead class="thead-light">
|
<thead class="thead-light">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Insurer</th>
|
<th>Insurer</th>
|
||||||
@ -28,7 +28,7 @@
|
|||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
|
|
||||||
<div class="row float-right" style="position: relative; bottom: 20px; right: 13px;">
|
<div class="row float-right" style="position: relative; bottom: 20px; right: 13px;">
|
||||||
<button type="button" class="btn btn-primary waves-effect waves-light btn-sm btnBack btn-sm"><span class="fa fa-list" aria-hidden="true" style="padding: 5px 10px;"></span>Back To List</button>
|
<button type="button" id="btnPolicyBack" class="btn btn-primary waves-effect waves-light btn-sm btnBack btn-sm"><span class="fa fa-list" aria-hidden="true" style="padding: 5px 10px;"></span>Back To List</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
@ -90,7 +90,7 @@
|
|||||||
<input id="is_addon" type="checkbox" name="is_addon" <?= (isset($client['is_addon']) && $client['is_addon'] == 1) ? 'checked' : '' ?>>
|
<input id="is_addon" type="checkbox" name="is_addon" <?= (isset($client['is_addon']) && $client['is_addon'] == 1) ? 'checked' : '' ?>>
|
||||||
<span class="slider round" style="height: 27px;"></span>
|
<span class="slider round" style="height: 27px;"></span>
|
||||||
</label>
|
</label>
|
||||||
<label for="is_addon">Is AddOn Policy</label>
|
<label for="is_addon" style=" position: relative;bottom: 5px;">Is AddOn Policy</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -222,6 +222,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$('#table-client-policy').DataTable({
|
||||||
|
paging: true ,
|
||||||
|
searching: false
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
/******** for form submit using AJAX *******/
|
/******** for form submit using AJAX *******/
|
||||||
|
|||||||
@ -82,6 +82,7 @@ $(document).ready(function(){
|
|||||||
|
|
||||||
var data = <?= isset($client_relation) ? json_encode($client_relation) : '[]' ?>;
|
var data = <?= isset($client_relation) ? json_encode($client_relation) : '[]' ?>;
|
||||||
if (relation_PrimaryKey !== '') {
|
if (relation_PrimaryKey !== '') {
|
||||||
|
console.log('test case k212')
|
||||||
$('#client_rm_edit').show()
|
$('#client_rm_edit').show()
|
||||||
$('#client_rm_btnSubmit').hide();
|
$('#client_rm_btnSubmit').hide();
|
||||||
$.each(data, function(index, item) {
|
$.each(data, function(index, item) {
|
||||||
@ -91,14 +92,13 @@ $(document).ready(function(){
|
|||||||
if ($option.length > 0) {
|
if ($option.length > 0) {
|
||||||
$option.prop('selected', true);
|
$option.prop('selected', true);
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
|
||||||
$('#account_manager').multiselect('refresh');
|
$('#account_manager').multiselect('refresh');
|
||||||
$('#head').prop('disabled', true);
|
$('#head').prop('disabled', true);
|
||||||
$('#manager').prop('disabled', true);
|
$('#manager').prop('disabled', true);
|
||||||
$('#account_manager').multiselect('disable');
|
$('#account_manager').multiselect('disable');
|
||||||
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="row float-right" style="position: relative; bottom: 20px; right: 13px;">
|
<div class="row float-right" style="position: relative; bottom: 20px; right: 13px;">
|
||||||
<button type="button" class="btn btn-primary waves-effect waves-light btn-sm btnBack"><span class="fa fa-list" aria-hidden="true" style="padding: 5px 10px;"></span>Back To List</button>
|
<button type="button" id="btnBranchBack" class="btn btn-primary waves-effect waves-light btn-sm btnBack"><span class="fa fa-list" aria-hidden="true" style="padding: 5px 10px;"></span>Back To List</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|||||||
@ -50,7 +50,9 @@
|
|||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
|
||||||
$('#tickets-table').DataTable({
|
$('#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>>" +
|
||||||
|
"<'row'<'col-sm-12'tr>>" +
|
||||||
|
"<'row'<'col-sm-5'i><'col-sm-7'p>>" ,
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
extend: 'csv',
|
extend: 'csv',
|
||||||
@ -67,7 +69,7 @@
|
|||||||
search: "_INPUT_",
|
search: "_INPUT_",
|
||||||
searchPlaceholder: "Search..."
|
searchPlaceholder: "Search..."
|
||||||
},
|
},
|
||||||
|
paging: true ,
|
||||||
});
|
});
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|||||||
@ -79,9 +79,11 @@ body {
|
|||||||
$('#btnBranchAdd').hide();
|
$('#btnBranchAdd').hide();
|
||||||
toastr.warning('First Add the Insurer!', 'warning',{timeOut: 2000});
|
toastr.warning('First Add the Insurer!', 'warning',{timeOut: 2000});
|
||||||
}else{
|
}else{
|
||||||
|
if ($('#btnBranchBack')[0].style.display == 'none') {
|
||||||
$('#btnBranchAdd').show();
|
$('#btnBranchAdd').show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
document.getElementById("insurer_branch_contacts_id").addEventListener("click", function(event) {
|
document.getElementById("insurer_branch_contacts_id").addEventListener("click", function(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<div class="table-responsive" id="branch_table" >
|
<div class="table-responsive" id="branch_table" >
|
||||||
|
|
||||||
<table class="table table-borderless table-nowrap mb-0">
|
<table class="table table-borderless table-nowrap mb-0" id="table-kyc-docs">
|
||||||
<thead class="thead-light">
|
<thead class="thead-light">
|
||||||
<tr>
|
<tr>
|
||||||
<th>File Name</th>
|
<th>File Name</th>
|
||||||
@ -22,7 +22,7 @@
|
|||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="row float-right" style="position: relative; bottom: 20px; right: 13px;">
|
<div class="row float-right" style="position: relative; bottom: 20px; right: 13px;">
|
||||||
<button type="button" class="btn btn-primary waves-effect waves-light btn-sm btnBack"><span class="fa fa-list" aria-hidden="true" style="padding: 5px 10px;"></span>Back To List</button>
|
<button type="button" id="btnBranchBack" class="btn btn-primary waves-effect waves-light btn-sm btnBack"><span class="fa fa-list" aria-hidden="true" style="padding: 5px 10px;"></span>Back To List</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
@ -250,9 +250,11 @@ $(document).ready(function () {
|
|||||||
|
|
||||||
$('body').on('click', '#btnSubmit', function() {
|
$('body').on('click', '#btnSubmit', function() {
|
||||||
$('#kyc_docs_list').html("");
|
$('#kyc_docs_list').html("");
|
||||||
|
console.log($('#kyc_docs_list')[0]);
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
loadKYCDocsList();
|
console.log("hjknjkhiulhjulihj----------------------");
|
||||||
}, 100) });
|
// loadKYCDocsList();
|
||||||
|
}, 1000) });
|
||||||
|
|
||||||
function loadKYCDocsList() {
|
function loadKYCDocsList() {
|
||||||
var base_url = '<?= base_url("master/kyc/kycdocs/list/"); ?>';
|
var base_url = '<?= base_url("master/kyc/kycdocs/list/"); ?>';
|
||||||
@ -292,6 +294,7 @@ $(document).ready(function () {
|
|||||||
</tr>
|
</tr>
|
||||||
`;
|
`;
|
||||||
});
|
});
|
||||||
|
console.log($('#kyc_docs_list')[0]);
|
||||||
$('#kyc_docs_list').append(insurerBranchTableInsert);
|
$('#kyc_docs_list').append(insurerBranchTableInsert);
|
||||||
},
|
},
|
||||||
error: function (xhr, status, error) {
|
error: function (xhr, status, error) {
|
||||||
@ -307,6 +310,14 @@ $(document).ready(function () {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
$('#table-kyc-docs').DataTable({
|
||||||
|
paging: true ,
|
||||||
|
searching: false
|
||||||
|
});
|
||||||
|
}, 2000);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -48,7 +48,9 @@
|
|||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
|
||||||
$('#tickets-table').DataTable({
|
$('#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>>" +
|
||||||
|
"<'row'<'col-sm-12'tr>>" +
|
||||||
|
"<'row'<'col-sm-5'i><'col-sm-7'p>>" ,
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
extend: 'csv',
|
extend: 'csv',
|
||||||
@ -65,7 +67,7 @@
|
|||||||
search: "_INPUT_",
|
search: "_INPUT_",
|
||||||
searchPlaceholder: "Search..."
|
searchPlaceholder: "Search..."
|
||||||
},
|
},
|
||||||
|
paging: true ,
|
||||||
});
|
});
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|||||||
@ -77,8 +77,10 @@ body {
|
|||||||
$('#btnBranchAdd').hide();
|
$('#btnBranchAdd').hide();
|
||||||
toastr.warning('First Add the KYC Entity Type!', 'warning',{timeOut: 2000});
|
toastr.warning('First Add the KYC Entity Type!', 'warning',{timeOut: 2000});
|
||||||
}else{
|
}else{
|
||||||
|
if ($('#btnBranchBack')[0].style.display == 'none') {
|
||||||
$('#btnBranchAdd').show();
|
$('#btnBranchAdd').show();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<div class="table-responsive" id="branch_table" >
|
<div class="table-responsive" id="branch_table" >
|
||||||
|
|
||||||
<table class="table table-borderless table-nowrap mb-0">
|
<table class="table table-borderless table-nowrap mb-0" id="table-policies">
|
||||||
<thead class="thead-light">
|
<thead class="thead-light">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Insurer</th>
|
<th>Insurer</th>
|
||||||
@ -23,7 +23,7 @@
|
|||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="row float-right" style="position: relative; bottom: 20px; right: 13px;">
|
<div class="row float-right" style="position: relative; bottom: 20px; right: 13px;">
|
||||||
<button type="button" class="btn btn-primary waves-effect waves-light btn-sm btnBack"><span class="fa fa-list" aria-hidden="true" style="padding: 5px 10px;"></span>Back To List</button>
|
<button type="button" id="btnBranchBack" class="btn btn-primary waves-effect waves-light btn-sm btnBack"><span class="fa fa-list" aria-hidden="true" style="padding: 5px 10px;"></span>Back To List</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
@ -81,7 +81,12 @@ $(document).ready(function () {
|
|||||||
loadPoliciesList();
|
loadPoliciesList();
|
||||||
|
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
$('#table-policies').DataTable({
|
||||||
|
paging: true ,
|
||||||
|
searching: false
|
||||||
|
});
|
||||||
|
}, 2000);
|
||||||
|
|
||||||
// var insurer_branch_action = '<?= base_url("master/insurer/list/"); ?>';
|
// var insurer_branch_action = '<?= base_url("master/insurer/list/"); ?>';
|
||||||
// if ($('#policy_type_id').val() != '') {
|
// if ($('#policy_type_id').val() != '') {
|
||||||
@ -183,9 +188,10 @@ $(document).ready(function () {
|
|||||||
var branchTable = '';
|
var branchTable = '';
|
||||||
var data = <?= isset($policies) ? json_encode($policies) : '[]' ?>;
|
var data = <?= isset($policies) ? json_encode($policies) : '[]' ?>;
|
||||||
$.each(data, function(index, item) {
|
$.each(data, function(index, item) {
|
||||||
|
|
||||||
branchTable += `
|
branchTable += `
|
||||||
<tr>
|
<tr>
|
||||||
<td>${item.insurer_id}</td>
|
<td>${item.insurer_name}</td>
|
||||||
<td>${item.name}</td>
|
<td>${item.name}</td>
|
||||||
<td>
|
<td>
|
||||||
<a class="btnBranchEdit" data-id="${item.id}" href="#"><i data-id="${item.id}" class="mdi mdi-lead-pencil btnBranchEdit" style="font-size:18px;"></i></a>
|
<a class="btnBranchEdit" data-id="${item.id}" href="#"><i data-id="${item.id}" class="mdi mdi-lead-pencil btnBranchEdit" style="font-size:18px;"></i></a>
|
||||||
@ -229,7 +235,7 @@ $(document).ready(function () {
|
|||||||
$.each(res.data, function(index, item) {
|
$.each(res.data, function(index, item) {
|
||||||
tpaBranchTableInsert += `
|
tpaBranchTableInsert += `
|
||||||
<tr>
|
<tr>
|
||||||
<td>${item.insurer_id}</td>
|
<td>${item.insurer_name}</td>
|
||||||
<td>${item.name}</td>
|
<td>${item.name}</td>
|
||||||
<td>
|
<td>
|
||||||
<a class="btnBranchEdit" data-id="${item.id}" href="#"><i data-id="${item.id}" class="mdi mdi-lead-pencil btnBranchEdit" style="font-size:18px;"></i></a>
|
<a class="btnBranchEdit" data-id="${item.id}" href="#"><i data-id="${item.id}" class="mdi mdi-lead-pencil btnBranchEdit" style="font-size:18px;"></i></a>
|
||||||
@ -241,6 +247,8 @@ $(document).ready(function () {
|
|||||||
$('#policies_list').append(tpaBranchTableInsert);
|
$('#policies_list').append(tpaBranchTableInsert);
|
||||||
// $('#policies_list').html("");
|
// $('#policies_list').html("");
|
||||||
// loadPoliciesList();
|
// loadPoliciesList();
|
||||||
|
|
||||||
|
|
||||||
$('#add_branch').hide();
|
$('#add_branch').hide();
|
||||||
$('#branch_table').show();
|
$('#branch_table').show();
|
||||||
$('.btnBack').hide();
|
$('.btnBack').hide();
|
||||||
|
|||||||
@ -596,7 +596,8 @@ var grid_html = '';
|
|||||||
processData: false,
|
processData: false,
|
||||||
contentType: false,
|
contentType: false,
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
|
$('#policyJsonForm')[0].reset();
|
||||||
|
$('.text-danger-2').html('');
|
||||||
if (res.status === false) {
|
if (res.status === false) {
|
||||||
toastr.error('Policy Dose Not Create', 'Error');
|
toastr.error('Policy Dose Not Create', 'Error');
|
||||||
return;
|
return;
|
||||||
@ -871,6 +872,9 @@ var grid_html = '';
|
|||||||
$('#police-tab').css('display', '');
|
$('#police-tab').css('display', '');
|
||||||
$('.nav.nav-pills.navtab-bg').css('display','');
|
$('.nav.nav-pills.navtab-bg').css('display','');
|
||||||
$('.nav.nav-pills.navtab-bg').prev().css('display','');
|
$('.nav.nav-pills.navtab-bg').prev().css('display','');
|
||||||
|
|
||||||
|
$('#policyJsonForm')[0].reset();
|
||||||
|
$('.text-danger-2').html('');
|
||||||
});
|
});
|
||||||
|
|
||||||
// function formatNumber(input) {
|
// function formatNumber(input) {
|
||||||
|
|||||||
@ -52,14 +52,6 @@
|
|||||||
.jodit-status-bar{
|
.jodit-status-bar{
|
||||||
display:none;
|
display:none;
|
||||||
}
|
}
|
||||||
.jodit-container{
|
|
||||||
/* width: 690px !important; */
|
|
||||||
/* margin-top: 3px; */
|
|
||||||
/* margin-bottom: 3px; */
|
|
||||||
/* margin-left: 30px; */
|
|
||||||
/* height: 0px !important; */
|
|
||||||
/* min-height: 100px !important; */
|
|
||||||
}
|
|
||||||
.input-group {
|
.input-group {
|
||||||
width: 64.5% !important;
|
width: 64.5% !important;
|
||||||
}
|
}
|
||||||
@ -409,7 +401,8 @@
|
|||||||
processData: false,
|
processData: false,
|
||||||
contentType: false,
|
contentType: false,
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
|
$('#policyGPATerms')[0].reset();
|
||||||
|
$('.text-danger-2').html('');
|
||||||
console.log(res);
|
console.log(res);
|
||||||
|
|
||||||
if (res.status === false) {
|
if (res.status === false) {
|
||||||
@ -569,6 +562,9 @@
|
|||||||
$('#police-tab').css('display', '');
|
$('#police-tab').css('display', '');
|
||||||
$('.nav.nav-pills.navtab-bg').css('display','');
|
$('.nav.nav-pills.navtab-bg').css('display','');
|
||||||
$('.nav.nav-pills.navtab-bg').prev().css('display','');
|
$('.nav.nav-pills.navtab-bg').prev().css('display','');
|
||||||
|
$('#policyGPATerms')[0].reset();
|
||||||
|
$('.text-danger-2').html('');
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -54,7 +54,9 @@
|
|||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
|
||||||
$('#tickets-table').DataTable({
|
$('#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>>" +
|
||||||
|
"<'row'<'col-sm-12'tr>>" +
|
||||||
|
"<'row'<'col-sm-5'i><'col-sm-7'p>>" ,
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
extend: 'csv',
|
extend: 'csv',
|
||||||
@ -71,7 +73,7 @@
|
|||||||
search: "_INPUT_",
|
search: "_INPUT_",
|
||||||
searchPlaceholder: "Search..."
|
searchPlaceholder: "Search..."
|
||||||
},
|
},
|
||||||
|
paging: true ,
|
||||||
});
|
});
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|||||||
@ -76,8 +76,10 @@ body {
|
|||||||
$('#btnBranchAdd').hide();
|
$('#btnBranchAdd').hide();
|
||||||
toastr.warning('First Add the Policy Type!', 'warning',{timeOut: 2000});
|
toastr.warning('First Add the Policy Type!', 'warning',{timeOut: 2000});
|
||||||
}else{
|
}else{
|
||||||
|
if ($('#btnBranchBack')[0].style.display == 'none') {
|
||||||
$('#btnBranchAdd').show();
|
$('#btnBranchAdd').show();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -9,10 +9,8 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<label for="tpa_name">TPA Name<span
|
<label for="tpa_name">TPA Name<span class="text-danger">*</span></label>
|
||||||
class="text-danger">*</span></label>
|
<input type="text" class="form-control" id="tpa_name" placeholder="Enter TPA Name" value="<?= isset($tpa['name']) ? $tpa['name'] : '' ?>" name="name" required>
|
||||||
<input type="text" class="form-control" id="name"
|
|
||||||
placeholder="Enter TPA Name" value="<?= isset($tpa['name']) ? $tpa['name'] : '' ?>" name="name" required>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group col-md-4">
|
<div class="form-group col-md-4">
|
||||||
<label for="short_name">TPA Short Name<span class="text-danger">*</span></label>
|
<label for="short_name">TPA Short Name<span class="text-danger">*</span></label>
|
||||||
|
|||||||
@ -23,7 +23,7 @@
|
|||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div class="row float-right" style="position: relative; bottom: 20px; right: 13px;">
|
<div class="row float-right" style="position: relative; bottom: 20px; right: 13px;">
|
||||||
<button type="button" class="btn btn-primary waves-effect waves-light btn-sm btnBack"><span class="fa fa-list" aria-hidden="true" style="padding: 5px 10px;"></span>Back To List</button>
|
<button type="button" id="btnBranchBack" class="btn btn-primary waves-effect waves-light btn-sm btnBack"><span class="fa fa-list" aria-hidden="true" style="padding: 5px 10px;"></span>Back To List</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|||||||
@ -48,7 +48,9 @@
|
|||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
|
||||||
$('#tickets-table').DataTable({
|
$('#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>>" +
|
||||||
|
"<'row'<'col-sm-12'tr>>" +
|
||||||
|
"<'row'<'col-sm-5'i><'col-sm-7'p>>" ,
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
extend: 'csv',
|
extend: 'csv',
|
||||||
@ -65,7 +67,7 @@
|
|||||||
search: "_INPUT_",
|
search: "_INPUT_",
|
||||||
searchPlaceholder: "Search..."
|
searchPlaceholder: "Search..."
|
||||||
},
|
},
|
||||||
|
paging: true ,
|
||||||
});
|
});
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|||||||
@ -76,8 +76,10 @@ body {
|
|||||||
$('#btnBranchAdd').hide();
|
$('#btnBranchAdd').hide();
|
||||||
toastr.warning('First Add the TPA!', 'warning',{timeOut: 2000});
|
toastr.warning('First Add the TPA!', 'warning',{timeOut: 2000});
|
||||||
}else{
|
}else{
|
||||||
|
if ($('#btnBranchBack')[0].style.display == 'none') {
|
||||||
$('#btnBranchAdd').show();
|
$('#btnBranchAdd').show();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,9 @@
|
|||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
|
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<div class="col-md-6 col-xl-5">
|
<div class="col-md-6 col-xl-5">
|
||||||
@ -19,6 +21,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="row mt-3 text-center">
|
<div class="row mt-3 text-center">
|
||||||
|
|
||||||
@ -72,10 +76,17 @@
|
|||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12" style="text-align: right;">
|
||||||
|
<a href="<?= base_url("client/deposit/$clientData->id"); ?>"><i class="fas fa-arrow-left" style="font-size: 17px;"></i></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="row" style="margin-bottom:1rem;">
|
<div class="row" style="margin-bottom:1rem;">
|
||||||
<div class="col-6" style="align-self: center;">
|
<div class="col-6" style="align-self: center;">
|
||||||
<h4 class="header-title" style="position: relative;">Transaction Details</h4>
|
<h4 class="header-title" style="position: relative;">Transaction Details</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-6" style="text-align: right; position: relative;top: 53px;">
|
<div class="col-6" style="text-align: right; position: relative;top: 53px;">
|
||||||
<button type="button" id="btnAdd" class="btn btn-primary waves-effect waves-light"
|
<button type="button" id="btnAdd" class="btn btn-primary waves-effect waves-light"
|
||||||
data-toggle="modal" data-target="#addTransactionModal">New</button>
|
data-toggle="modal" data-target="#addTransactionModal">New</button>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user