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

This commit is contained in:
VENKATESHWARAN 2026-02-19 10:42:50 +05:30
commit 51eebb4356
49 changed files with 249 additions and 248 deletions

View File

@ -156,6 +156,7 @@ class MasterController extends AdminController
$this->myLogger->logme('error','Edit Insurer Onboarding function called'); $this->myLogger->logme('error','Edit Insurer Onboarding function called');
$headerData['page_name'] = 'Edit Insurer Master'; $headerData['page_name'] = 'Edit Insurer Master';
print_r($headerData);die;
$types = array( $types = array(
(object) array('id' => 'pvt', 'name' => 'PVT'), (object) array('id' => 'pvt', 'name' => 'PVT'),

View File

@ -290,7 +290,7 @@ $(document).ready(function () {
var student_id = $(this).attr('data-id'); var student_id = $(this).attr('data-id');
$.get('<?php echo base_url('user/deactive/');?>'+student_id, function (data) { $.get('<?php echo base_url('user/deactive/');?>'+student_id, function (data) {
console.log(data); console.log(data);
toastr.success('User removed successfully', 'success'); toastr.success('User removed successfully', 'Success');
window.location.reload() window.location.reload()
}) })
} }

View File

@ -312,7 +312,7 @@ document.addEventListener("DOMContentLoaded", function () {
<?php endif; ?> <?php endif; ?>
<?php if (session()->has('success')) : ?> <?php if (session()->has('success')) : ?>
toastr.success('<?= session()->getFlashdata('success') ?>', 'success'); toastr.success('<?= session()->getFlashdata('success') ?>', 'Success');
<?php endif; ?> <?php endif; ?>
var endDatePicker = flatpickr("#opening_date", { var endDatePicker = flatpickr("#opening_date", {
@ -410,7 +410,7 @@ document.addEventListener("DOMContentLoaded", function () {
console.log(res) console.log(res)
if(res.status == true){ if(res.status == true){
toastr.warning(res.message, 'warning'); toastr.warning(res.message, 'Warning');
$('#cd_ac_no').val(''); $('#cd_ac_no').val('');
} }
}, },
@ -446,10 +446,10 @@ document.addEventListener("DOMContentLoaded", function () {
// console.log(res.status == true); // console.log(res.status == true);
if(res){ if(res){
if (res.status == true) { if (res.status == true) {
toastr.success('CD removed successfully.', 'success'); toastr.success('CD removed successfully.', 'Success');
location.reload(); location.reload();
} else { } else {
toastr.warning('Failed to remove CD.', 'warning'); toastr.warning('Failed to remove CD.', 'Warning');
} }
} }
}, },

View File

@ -609,7 +609,7 @@ $('body').on('click', '.btnBranchEdit', function() {
setTimeout(function() { setTimeout(function() {
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
toastr.warning('Something Wrong!', 'warning'); toastr.warning('Something Wrong!', 'Warning');
}, 1000); }, 1000);
} }
}); });
@ -811,10 +811,10 @@ function removeClientBranch(element) {
// console.log(res.status == true); // console.log(res.status == true);
if (res) { if (res) {
if (res.status == true) { if (res.status == true) {
toastr.success(res.message, 'success'); toastr.success(res.message, 'Success');
location.reload(); location.reload();
} else { } else {
toastr.warning(res.message, 'warning'); toastr.warning(res.message, 'Warning');
} }
} }
}, },
@ -824,7 +824,7 @@ function removeClientBranch(element) {
setTimeout(function() { setTimeout(function() {
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
console.log('Something Wrong!', 'warning'); console.log('Something Wrong!', 'Warning');
}, 1000); }, 1000);
} }
}); });
@ -938,7 +938,7 @@ function validateInput(input, table, field, submitBtnId){
checkDuplicateTableFieldValue(table, field, value, function(isDuplicate) { checkDuplicateTableFieldValue(table, field, value, function(isDuplicate) {
if (isDuplicate) { if (isDuplicate) {
toastr.warning(message, 'WARNING'); toastr.warning(message, 'Warning');
// $(input).val('') // $(input).val('')
$('#'+submitBtnId).prop('disabled', true); $('#'+submitBtnId).prop('disabled', true);
} else{ } else{
@ -972,7 +972,7 @@ function validateDuplicateByClientBranch(input, field, submitButId) {
if (isLocalDuplicate) { if (isLocalDuplicate) {
console.log(`r u n Local`); console.log(`r u n Local`);
console.log(`duplicate found for ${field}`); console.log(`duplicate found for ${field}`);
toastr.warning(message, 'WARNING'); toastr.warning(message, 'Warning');
$('#' + submitButId).prop('disabled', true); $('#' + submitButId).prop('disabled', true);
return; return;
} }
@ -999,7 +999,7 @@ function validateDuplicateByClientBranch(input, field, submitButId) {
if (response.isDuplicate) { if (response.isDuplicate) {
console.log(`r u n Server`); console.log(`r u n Server`);
console.log(`duplicate found for ${field}`); console.log(`duplicate found for ${field}`);
toastr.warning(message, 'WARNING'); toastr.warning(message, 'Warning');
$('#' + submitButId).prop('disabled', true); $('#' + submitButId).prop('disabled', true);
} else { } else {
console.log(`No duplicate for ${field}`); console.log(`No duplicate for ${field}`);
@ -1044,13 +1044,13 @@ function checkAllFieldsValid(submitButId) {
$('#' + submitButId).prop('disabled', true); $('#' + submitButId).prop('disabled', true);
// show correct message based on whats duplicated // show correct message based on whats duplicated
if (emailDuplicates && mobileDuplicates) { if (emailDuplicates && mobileDuplicates) {
toastr.warning("Email and Mobile values are duplicate!", "WARNING"); toastr.warning("Email and Mobile values are duplicate!", "Warning");
console.log('Both Email and Mobile duplicates'); console.log('Both Email and Mobile duplicates');
} else if (emailDuplicates) { } else if (emailDuplicates) {
toastr.warning("Email duplicate!", "WARNING"); toastr.warning("Email duplicate!", "Warning");
console.log('Cross Check Email duplicates'); console.log('Cross Check Email duplicates');
} else if (mobileDuplicates) { } else if (mobileDuplicates) {
toastr.warning("Mobile duplicate!", "WARNING"); toastr.warning("Mobile duplicate!", "Warning");
console.log('Cross Check Mobile duplicates'); console.log('Cross Check Mobile duplicates');
} }
console.log(`btn Dis - true`); console.log(`btn Dis - true`);
@ -1096,9 +1096,9 @@ function removeLevelContacts(id){
console.log('Data fetched successfully:', response); console.log('Data fetched successfully:', response);
if (response.status == true) { if (response.status == true) {
toastr.success(response.message, 'SUCCESS'); toastr.success(response.message, 'Success');
} else { } else {
toastr.warning(response.message, 'WARNING'); toastr.warning(response.message, 'Warning');
} }
}, function(xhr, status, error) { }, function(xhr, status, error) {

View File

@ -212,7 +212,7 @@
setTimeout(function() { setTimeout(function() {
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
toastr.warning('Something Wrong!', 'warning'); toastr.warning('Something Wrong!', 'Warning');
}, 1000); }, 1000);
} }
@ -333,7 +333,7 @@
setTimeout(function() { setTimeout(function() {
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
toastr.warning('Something Wrong!', 'warning'); toastr.warning('Something Wrong!', 'Warning');
}, 1000); }, 1000);
} }
@ -438,7 +438,7 @@
setTimeout(function() { setTimeout(function() {
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
toastr.warning('Something Wrong!', 'warning'); toastr.warning('Something Wrong!', 'Warning');
}, 1000); }, 1000);
} }
}); });

View File

@ -402,7 +402,7 @@
// if(res){ // if(res){
// if (res.status == true) { // if (res.status == true) {
// toastr.success('Client removed successfully.', 'success'); // toastr.success('Client removed successfully.', 'Success');
// location.reload(); // location.reload();
// } else { // } else {
// Swal.fire({ // Swal.fire({
@ -410,7 +410,7 @@
// text: res.message, // text: res.message,
// icon: "warning" // icon: "warning"
// }); // });
// // toastr.warning(res.message, 'warning'); // // toastr.warning(res.message, 'Warning');
// } // }
// } // }
// }, // },
@ -419,7 +419,7 @@
// console.error(status, error); // console.error(status, error);
// $('.loader').fadeOut(); // $('.loader').fadeOut();
// $('.loader-mask').delay(350).fadeOut('slow'); // $('.loader-mask').delay(350).fadeOut('slow');
// console.log('Something Wrong!', 'warning'); // console.log('Something Wrong!', 'Warning');
// } // }
// }); // });
// } // }
@ -466,15 +466,15 @@
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
if (res.status == true) { if (res.status == true) {
toastr.success(res.message, 'success'); toastr.success(res.message, 'Success');
location.reload(); location.reload();
} else { } else {
Swal.fire({ Swal.fire({
title: "warning!", title: "Warning!",
text: res.message, text: res.message,
icon: "warning" icon: "warning"
}); });
// toastr.warning(res.message, 'warning'); // toastr.warning(res.message, 'Warning');
} }
}, },
error: function (xhr, status, error) { error: function (xhr, status, error) {
@ -563,10 +563,10 @@
if(res.status == true){ if(res.status == true){
let client_url = '<?= base_url('client/list/') ?>' + res.client_id + '?client_policy_id=' + res.client_policy_id+'#police-tab'; let client_url = '<?= base_url('client/list/') ?>' + res.client_id + '?client_policy_id=' + res.client_policy_id+'#police-tab';
toastr.success(res.message, 'SUCCESS') toastr.success(res.message, 'Success')
window.location.href = client_url window.location.href = client_url
}else{ }else{
toastr.success(res.message, 'WARNING') toastr.warning(res.message, 'Warning')
} }
$('.close').click() $('.close').click()

View File

@ -200,7 +200,7 @@ body {
if(check_client_id[0].value == '' || check_client_id[0].value == null || check_client_id[0].value == 0){ if(check_client_id[0].value == '' || check_client_id[0].value == null || check_client_id[0].value == 0){
$('#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') { if ($('#btnBranchBack')[0].style.display == 'none') {
$('#btnBranchAdd').show(); $('#btnBranchAdd').show();
@ -215,7 +215,7 @@ body {
if(check_client_id[0].value == '' || check_client_id[0].value == null || check_client_id[0].value == 0){ if(check_client_id[0].value == '' || check_client_id[0].value == null || check_client_id[0].value == 0){
$('#relation_form').hide(); $('#relation_form').hide();
toastr.warning('Please Add the Client!', 'warning',{timeOut: 2000}); toastr.warning('Please Add the Client!', 'Warning',{timeOut: 2000});
}else{ }else{
$('#relation_form').show(); $('#relation_form').show();
} }
@ -228,7 +228,7 @@ body {
if(check_client_id[0].value == '' || check_client_id[0].value == null || check_client_id[0].value == 0){ if(check_client_id[0].value == '' || check_client_id[0].value == null || check_client_id[0].value == 0){
$('#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') { if ($('#btnPolicyBack')[0].style.display == 'none') {
$('#BtnAdd').show(); $('#BtnAdd').show();
@ -243,7 +243,7 @@ body {
if(check_client_id[0].value == '' || check_client_id[0].value == null || check_client_id[0].value == 0){ if(check_client_id[0].value == '' || check_client_id[0].value == null || check_client_id[0].value == 0){
$('#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') { if ($('#btnBranchBack')[0].style.display == 'none') {
$('#btnBranchAdd').show(); $('#btnBranchAdd').show();
@ -259,7 +259,7 @@ body {
if(check_client_id[0].value == '' || check_client_id[0].value == null || check_client_id[0].value == 0){ if(check_client_id[0].value == '' || check_client_id[0].value == null || check_client_id[0].value == 0){
$('#notification-tab').hide(); $('#notification-tab').hide();
toastr.warning('Please Add the Client!', 'warning',{timeOut: 2000}); toastr.warning('Please Add the Client!', 'Warning',{timeOut: 2000});
}else{ }else{
if ($('#notification-tab')[0].style.display == 'none') { if ($('#notification-tab')[0].style.display == 'none') {
$('#notification-tab').show(); $('#notification-tab').show();

View File

@ -59,9 +59,9 @@ $(document).ready(function() {
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
if (res.status == true) { if (res.status == true) {
toastr.success(res.message, 'SUCCESS'); toastr.success(res.message, 'Success');
} else { } else {
toastr.warning(res.message, 'WARNING'); toastr.warning(res.message, 'Warning');
} }
}, },

View File

@ -1686,7 +1686,7 @@ $('#policy_type').change(function() {
} }
if ($(this).val() == 5) { if ($(this).val() == 5) {
toastr.warning('Please Change the Policy Terms after Submit the Policy!', 'INFO'); toastr.warning('Please Change the Policy Terms after Submit the Policy!', 'Info');
} }
if ($(this).val() == '4' || $(this).val() == '5') { if ($(this).val() == '4' || $(this).val() == '5') {
@ -1891,7 +1891,7 @@ function fetchClientBranch() {
// //console.log(res.data.length); // //console.log(res.data.length);
if (res.data.length == 0) { if (res.data.length == 0) {
toastr.warning('The client does not have any branches.', 'warning'); toastr.warning('The client does not have any branches.', 'Warning');
return; return;
} }
@ -2018,15 +2018,15 @@ function removepolicy(element) {
if (res) { if (res) {
if (res.status == true) { if (res.status == true) {
toastr.success('Policy removed successfully.', 'success'); toastr.success('Policy removed successfully.', 'Success');
location.reload(); location.reload();
} else { } else {
Swal.fire({ Swal.fire({
title: "warning!", title: "Warning!",
text: res.message, text: res.message,
icon: "warning" icon: "warning"
}); });
// toastr.warning('Failed to remove policy', 'warning'); // toastr.warning('Failed to remove policy', 'Warning');
} }
} }
}, },
@ -2060,7 +2060,7 @@ $('#policy_no').change(function() {
console.log(res) console.log(res)
if (res.status == true) { if (res.status == true) {
toastr.warning(res.message, 'warning'); toastr.warning(res.message, 'Warning');
$('#policy_no').val(''); $('#policy_no').val('');
} }
}, },
@ -2331,10 +2331,10 @@ function featchClient() {
if (res.status == true) { if (res.status == true) {
let client_url = '<?= base_url('client/list/') ?>' + res.client_id + '?client_policy_id=' + let client_url = '<?= base_url('client/list/') ?>' + res.client_id + '?client_policy_id=' +
res.client_policy_id + '#police-tab'; res.client_policy_id + '#police-tab';
toastr.success(res.message, 'SUCCESS') toastr.success(res.message, 'Success')
window.location.href = client_url; window.location.href = client_url;
} else { } else {
toastr.success(res.message, 'WARNING'); toastr.warning(res.message, 'Warning');
} }
$('.close').click() $('.close').click()

View File

@ -536,7 +536,7 @@ function get_emp_master_data_for_update_ajax(id) {
$('#gender').prop('disabled', false); $('#gender').prop('disabled', false);
$('#dob').prop('disabled', false); $('#dob').prop('disabled', false);
toastr.warning(res.message, 'WARNING'); toastr.warning(res.message, 'Warning');
} }
}, },
error: function(xhr, status, error) { error: function(xhr, status, error) {
@ -583,7 +583,7 @@ function update_emp_master_data_submit_function(event, form) {
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
if (response.status == true) { if (response.status == true) {
toastr.success(response.message, 'SUCCESS'); toastr.success(response.message, 'Success');
$('.close').click(); $('.close').click();
@ -599,7 +599,7 @@ function update_emp_master_data_submit_function(event, form) {
fetchEmpolyeeList(); fetchEmpolyeeList();
} else { } else {
toastr.error(response.message, 'ERROR'); toastr.error(response.message, 'Error');
} }
}, },
error: function(xhr, status, error) { error: function(xhr, status, error) {
@ -616,7 +616,7 @@ function update_emp_master_data_submit_function(event, form) {
console.error('Response Text: ', xhr.responseText); console.error('Response Text: ', xhr.responseText);
} }
toastr.warning('Error uploading file', 'WARNING'); toastr.warning('Error uploading file', 'Warning');
console.error('Upload error:', error); console.error('Upload error:', error);
}, },
complete: function() { complete: function() {
@ -657,9 +657,9 @@ function send_mail_for_individual_employee_ecard(id) {
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
if (res.status == true) { if (res.status == true) {
toastr.success(res.message, 'SUCCESS'); toastr.success(res.message, 'Success');
} else { } else {
toastr.error(res.message, 'ERROR'); toastr.error(res.message, 'Error');
} }
}, },
error: function(xhr, status, error) { error: function(xhr, status, error) {
@ -698,7 +698,7 @@ function validateInput(input, table, field) {
checkDuplicateTableFieldValue(table, field, data, function(isDuplicate) { checkDuplicateTableFieldValue(table, field, data, function(isDuplicate) {
if (isDuplicate) { if (isDuplicate) {
toastr.warning(message, 'WARNING'); toastr.warning(message, 'Warning');
$("#btnSubmit").prop('disabled', true); $("#btnSubmit").prop('disabled', true);
}else{ }else{
$("#btnSubmit").prop('disabled', false); $("#btnSubmit").prop('disabled', false);
@ -800,12 +800,12 @@ function get_emp_history(input, emp_id) {
showModal(); showModal();
} else { } else {
let message = response.message; let message = response.message;
toastr.error(message, 'ERROR'); toastr.error(message, 'Error');
} }
}, function(xhr, status, error) { }, function(xhr, status, error) {
console.error('Error fetching data:', error); console.error('Error fetching data:', error);
console.error(xhr.responseText); console.error(xhr.responseText);
toastr.error('An error occurred while fetching the report page.', 'ERROR'); toastr.error('An error occurred while fetching the report page.', 'Error');
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
@ -844,7 +844,7 @@ function downloadInception(){
empName: empName empName: empName
}, },
success: function(response) { success: function(response) {
if (response.status === 'success') { if (response.status === 'Success') {
$('<a>', { $('<a>', {
href: response.downloadUrl, href: response.downloadUrl,
download: '', download: '',

View File

@ -728,9 +728,9 @@ function sendManualEcard(input)
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
if(res.status == false){ if(res.status == false){
toastr.info(res.message, 'INFO'); toastr.info(res.message, 'Info');
}else{ }else{
toastr.success(res.message, 'SUCCESS'); toastr.success(res.message, 'Success');
} }
}, },

View File

@ -183,7 +183,7 @@ $('#file_upload').hide();
$(document).ready(function() { $(document).ready(function() {
<?php if (session()->has('success1')): ?> <?php if (session()->has('success1')): ?>
toastr.success('<?= session()->getFlashdata('success1') ?>', 'success'); toastr.success('<?= session()->getFlashdata('success1') ?>', 'Success');
<?php endif; ?> <?php endif; ?>
// Initialize select2 // Initialize select2
$("#client_id").select2(); $("#client_id").select2();
@ -247,22 +247,22 @@ $(document).ready(function() {
if(checkValues() == 'client'){ if(checkValues() == 'client'){
toastr.warning('Client is Required', 'warning') toastr.warning('Client is Required', 'Warning')
return false; return false;
}else if(checkValues() == 'policy'){ }else if(checkValues() == 'policy'){
toastr.warning('Policy is Required', 'warning') toastr.warning('Policy is Required', 'Warning')
return false; return false;
}else if(checkValues() == 'branch'){ }else if(checkValues() == 'branch'){
toastr.warning('Branch is Required', 'warning') toastr.warning('Branch is Required', 'Warning')
return false; return false;
}else if(checkValues() == 'event'){ }else if(checkValues() == 'event'){
toastr.warning('Event is Required', 'warning') toastr.warning('Event is Required', 'Warning')
return false; return false;
}else{ }else{
@ -291,7 +291,7 @@ $(document).ready(function() {
// $('#policy_id').mouseover(); // $('#policy_id').mouseover();
console.log('required'); console.log('required');
// alert('please choose policy for this uploaing event '); // alert('please choose policy for this uploaing event ');
toastr.warning('please choose policy for this uploaing event', 'warning') toastr.warning('please choose policy for this uploaing event', 'Warning')
return false; return false;
} else { } else {
@ -330,7 +330,7 @@ $(document).ready(function() {
.data !== "") { .data !== "") {
toastr.success( toastr.success(
'File upload successs, Data validation is in-progress', 'File upload successs, Data validation is in-progress',
'success'); 'Success');
window.location.reload(true); window.location.reload(true);
} else if (response.code === 404 && response.dataStatus === false) { } else if (response.code === 404 && response.dataStatus === false) {
console.error('no data found', response); console.error('no data found', response);
@ -850,7 +850,7 @@ $('#fetch_enrolled_data').click(function()
var action = $('#upload-action-type').val(); var action = $('#upload-action-type').val();
// console.log(client_id + '-' + policy_id); // console.log(client_id + '-' + policy_id);
if (client_id == '0' || policy_id == '0') { if (client_id == '0' || policy_id == '0') {
toastr.warning('please select the client and policy for this uploaing event', 'warning') toastr.warning('please select the client and policy for this uploaing event', 'Warning')
$('#full-width-modal').modal('hide'); $('#full-width-modal').modal('hide');
return; return;
} }

View File

@ -811,13 +811,13 @@
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
if (response.code === 200 && response.dataStatus === true && response.data !== "") { if (response.code === 200 && response.dataStatus === true && response.data !== "") {
toastr.success('File upload success, Data validation is in-progress', 'success'); toastr.success('File upload success, Data validation is in-progress', 'Success');
setTimeout(function() { setTimeout(function() {
window.location.href = '<?= base_url("employee/upload/") ?>'; window.location.href = '<?= base_url("employee/upload/") ?>';
}, 600); }, 600);
} else if (response.code === 404 && response.dataStatus === false) { } else if (response.code === 404 && response.dataStatus === false) {
console.error('No data found', response); console.error('No data found', response);
toastr.error(response.message, 'error'); toastr.error(response.message, 'Error');
setTimeout(function() { setTimeout(function() {
window.location.href = '<?= base_url("employee/upload/") ?>'; window.location.href = '<?= base_url("employee/upload/") ?>';
}, 600); }, 600);
@ -908,9 +908,9 @@
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
if(res.status == false){ if(res.status == false){
toastr.info(res.message, 'INFO'); toastr.info(res.message, 'Info');
}else{ }else{
toastr.success(res.message, 'SUCCESS'); toastr.success(res.message, 'Success');
} }
}, },

View File

@ -89,7 +89,7 @@
echo '<a data-id="' . $file['status'] . '" class="reload" href="#">' . $file['status'] . '</a>'; echo '<a data-id="' . $file['status'] . '" class="reload" href="#">' . $file['status'] . '</a>';
} }
} else if ($file['status'] == 'success') { } else if ($file['status'] == 'Success') {
if ($file['action'] == 'inception' || $file['action'] == 'addition' || $file['action'] == 'dependent_addtion') { if ($file['action'] == 'inception' || $file['action'] == 'addition' || $file['action'] == 'dependent_addtion') {
$tool_tip_text = "Live(s) : {$file['employee_count']}" . " | Total premium : ₹ " . format_indian_number($file['total'], 2, ','); $tool_tip_text = "Live(s) : {$file['employee_count']}" . " | Total premium : ₹ " . format_indian_number($file['total'], 2, ',');
@ -128,7 +128,7 @@
<a class="dropdown-item" href="<?= base_url("util/download-file-list/") . $file['id']; ?>"><i class="mdi mdi-download mr-2 text-muted font-18 vertical-middle"></i>Download</a> <a class="dropdown-item" href="<?= base_url("util/download-file-list/") . $file['id']; ?>"><i class="mdi mdi-download mr-2 text-muted font-18 vertical-middle"></i>Download</a>
<a data-id="<?php echo $file['id'] ?>" data-toggle="modal" data-target="#full-width-modal-emp-list" class="dropdown-item view_emp_list" href="#"><i class="mdi mdi-eye mr-2 text-muted font-18 vertical-middle"></i>View</a> <a data-id="<?php echo $file['id'] ?>" data-toggle="modal" data-target="#full-width-modal-emp-list" class="dropdown-item view_emp_list" href="#"><i class="mdi mdi-eye mr-2 text-muted font-18 vertical-middle"></i>View</a>
<?php if ($file['status'] == 'success') { ?> <?php if ($file['status'] == 'Success') { ?>
<a data-id="<?php echo $file['id'] ?>" class="dropdown-item truncate2" href="#"><i class="mdi mdi-delete mr-2 text-muted font-18 vertical-middle"></i>Truncate</a> <a data-id="<?php echo $file['id'] ?>" class="dropdown-item truncate2" href="#"><i class="mdi mdi-delete mr-2 text-muted font-18 vertical-middle"></i>Truncate</a>
<?php } ?> <?php } ?>
@ -455,7 +455,7 @@ $('#uploadForm').submit(function() {
.data !== "") { .data !== "") {
toastr.success( toastr.success(
'File upload successs, Data validation is in-progress', 'File upload successs, Data validation is in-progress',
'success'); 'Success');
$('.close').click() $('.close').click()
window.location.reload(true); window.location.reload(true);
} else if (response.code === 404 && response.dataStatus === false) { } else if (response.code === 404 && response.dataStatus === false) {

View File

@ -292,7 +292,7 @@
setTimeout(function() { setTimeout(function() {
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
toastr.warning('Something Wrong!', 'warning'); toastr.warning('Something Wrong!', 'Warning');
}, 1000); }, 1000);
} }
}); });
@ -358,7 +358,7 @@
setTimeout(function() { setTimeout(function() {
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
toastr.warning('Something Wrong!', 'warning'); toastr.warning('Something Wrong!', 'Warning');
}, 1000); }, 1000);
} }
}); });
@ -515,10 +515,10 @@
// console.log(res.status == true); // console.log(res.status == true);
if(res){ if(res){
if (res.status == true) { if (res.status == true) {
toastr.success('Insurer branch removed successfully', 'success'); toastr.success('Insurer branch removed successfully', 'Success');
location.reload(); location.reload();
} else { } else {
toastr.warning('Failed to remove insurer branch', 'warning'); toastr.warning('Failed to remove insurer branch', 'Warning');
} }
} }
}, },
@ -527,7 +527,7 @@
console.error(status, error); console.error(status, error);
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
toastr.warning('Failed to remove insurer branch', 'warning'); toastr.warning('Failed to remove insurer branch', 'Warning');
} }
}); });

View File

@ -440,9 +440,9 @@
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
if(res.status == false){ if(res.status == false){
toastr.error(res.message, 'ERROR'); toastr.error(res.message, 'Error');
}else{ }else{
toastr.success(res.message, 'SUCCESS'); toastr.success(res.message, 'Success');
} }
window.location.reload(true); window.location.reload(true);
@ -677,9 +677,9 @@
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
if(res.status == false){ if(res.status == false){
toastr.error(res.message, 'ERROR'); toastr.error(res.message, 'Error');
}else{ }else{
toastr.success(res.message, 'SUCCESS'); toastr.success(res.message, 'Success');
} }
window.location.reload(true); window.location.reload(true);

View File

@ -277,10 +277,10 @@ class csvExport {
// console.log(res.status == true); // console.log(res.status == true);
if(res){ if(res){
if (res.status == true) { if (res.status == true) {
toastr.success('Insurer removed successfully', 'success'); toastr.success('Insurer removed successfully', 'Success');
location.reload(); location.reload();
} else { } else {
toastr.warning('Failed to remove insurer', 'warning'); toastr.warning('Failed to remove insurer', 'Warning');
} }
} }
}, },
@ -289,7 +289,7 @@ class csvExport {
console.error(status, error); console.error(status, error);
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
toastr.warning('Failed to remove insurer', 'warning'); toastr.warning('Failed to remove insurer', 'Warning');
} }
}); });
} }

View File

@ -59,7 +59,7 @@
if(check_insurer_id[0].value == '' || check_insurer_id[0].value == null || check_insurer_id[0].value == 0){ if(check_insurer_id[0].value == '' || check_insurer_id[0].value == null || check_insurer_id[0].value == 0){
$('#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') { if ($('#btnBranchBack')[0].style.display == 'none') {
$('#btnBranchAdd').show(); $('#btnBranchAdd').show();

View File

@ -156,7 +156,7 @@
<?php endif; ?> <?php endif; ?>
<?php if (session()->has('success')) : ?> <?php if (session()->has('success')) : ?>
toastr.success('<?= session()->getFlashdata('success') ?>', 'success'); toastr.success('<?= session()->getFlashdata('success') ?>', 'Success');
<?php endif; ?> <?php endif; ?>
$('#import_excel_btn').hide(); $('#import_excel_btn').hide();
@ -200,7 +200,7 @@
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
$$("#import_export_excel_form")[0].reset() $$("#import_export_excel_form")[0].reset()
toastr.success('File Download successs', 'success'); toastr.success('File Download successs', 'Success');
} else if (response.code === 404 && response.status === false) { } else if (response.code === 404 && response.status === false) {

View File

@ -961,7 +961,7 @@ maxDate.setDate(today.getDate() + 180);
.data !== "") { .data !== "") {
toastr.success( toastr.success(
'File upload successs', 'File upload successs',
'success'); 'Success');
$('.close').click(); $('.close').click();
window.location.reload(true); window.location.reload(true);
} else if (response.code === 404 && response.dataStatus === false) { } else if (response.code === 404 && response.dataStatus === false) {

View File

@ -201,7 +201,7 @@ $(document).ready(function () {
setTimeout(function() { setTimeout(function() {
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
toastr.warning('Something Wrong!', 'warning'); toastr.warning('Something Wrong!', 'Warning');
}, 1000); }, 1000);
} }
}); });
@ -241,7 +241,7 @@ $(document).ready(function () {
setTimeout(function() { setTimeout(function() {
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
toastr.warning('Something Wrong!', 'warning'); toastr.warning('Something Wrong!', 'Warning');
}, 1000); }, 1000);
} }
}); });
@ -304,7 +304,7 @@ $(document).ready(function () {
setTimeout(function() { setTimeout(function() {
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
console.log('Something Wrong!', 'warning'); }, 1000); console.log('Something Wrong!', 'Warning'); }, 1000);
} }
}); });
} }
@ -352,7 +352,7 @@ $(document).ready(function () {
window.location.href = '<?= base_url("master/kyc/list/") ?>' + kyc_docs_id_for_reload; window.location.href = '<?= base_url("master/kyc/list/") ?>' + kyc_docs_id_for_reload;
} else { } else {
toastr.warning('Failed to remove KYC docs', 'warning'); toastr.warning('Failed to remove KYC docs', 'Warning');
} }
} }
}, },
@ -361,7 +361,7 @@ $(document).ready(function () {
console.error(status, error); console.error(status, error);
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
toastr.warning('Failed to remove KYC docs', 'warning'); toastr.warning('Failed to remove KYC docs', 'Warning');
} }
}); });
} }

View File

@ -86,7 +86,7 @@ $(document).ready(function () {
setTimeout(function() { setTimeout(function() {
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
toastr.warning('Something Wrong!', 'warning'); toastr.warning('Something Wrong!', 'Warning');
}, 1000); }, 1000);
} }
}); });

View File

@ -271,12 +271,12 @@ function removeKYC(element) {
// console.log(res.status == true); // console.log(res.status == true);
if(res){ if(res){
if (res.status == true) { if (res.status == true) {
toastr.success('KYC entity removed successfully', 'success'); toastr.success('KYC entity removed successfully', 'Success');
location.reload(); location.reload();
} else { } else {
toastr.warning('Failed to remove KYC entity', 'warning'); toastr.warning('Failed to remove KYC entity', 'Warning');
} }
} }
}, },
@ -286,7 +286,7 @@ function removeKYC(element) {
setTimeout(function() { setTimeout(function() {
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
toastr.warning('Something Wrong!', 'warning'); toastr.warning('Something Wrong!', 'Warning');
}, 1000); }, 1000);
} }
}); });

View File

@ -75,7 +75,7 @@ body {
console.log(check_policy_type_id.val()); console.log(check_policy_type_id.val());
if(check_policy_type_id[0].value == '' || check_policy_type_id[0].value == null || check_policy_type_id[0].value == 0){ if(check_policy_type_id[0].value == '' || check_policy_type_id[0].value == null || check_policy_type_id[0].value == 0){
$('#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') { if ($('#btnBranchBack')[0].style.display == 'none') {
$('#btnBranchAdd').show(); $('#btnBranchAdd').show();

View File

@ -270,11 +270,11 @@ $(document).ready(function(){
<?php endif; ?> <?php endif; ?>
<?php if (session()->has('create_success')) : ?> <?php if (session()->has('create_success')) : ?>
toastr.success('<?= session()->getFlashdata('create_success') ?>', 'success'); toastr.success('<?= session()->getFlashdata('create_success') ?>', 'Success');
<?php endif; ?> <?php endif; ?>
<?php if (session()->has('update_success')) : ?> <?php if (session()->has('update_success')) : ?>
toastr.success('<?= session()->getFlashdata('update_success') ?>', 'success'); toastr.success('<?= session()->getFlashdata('update_success') ?>', 'Success');
<?php endif; ?> <?php endif; ?>

View File

@ -814,13 +814,13 @@
console.log('Parsed respond', respond) console.log('Parsed respond', respond)
if (respond.status == 'success') { if (respond.status == 'success') {
toastr.success(respond.message, 'SUCCESS') toastr.success(respond.message, 'Success')
} else { } else {
toastr.warning(respond.message, 'WARNING') toastr.warning(respond.message, 'Warning')
} }
} else { } else {
toastr.warning('Failed to sent mail', 'WARNING') toastr.warning('Failed to sent mail', 'Success')
} }
}, },
error: function(xhr, status, error) { error: function(xhr, status, error) {
@ -835,16 +835,16 @@
} else { } else {
let alert_msg = 'Template ID not exist' let alert_msg = 'Template ID not exist'
toastr.warning(alert_msg, 'WARNING'); toastr.warning(alert_msg, 'Warning');
} }
} else { } else {
toastr.warning('Please enter the valid mail', 'WARNING'); toastr.warning('Please enter the valid mail', 'Warning');
} }
} else { } else {
toastr.warning('Please enter the valid mail', 'WARNING'); toastr.warning('Please enter the valid mail', 'Warning');
} }
} }
@ -981,10 +981,10 @@
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
if (response.status == true) { if (response.status == true) {
toastr.success(response.message, 'SUCCESS'); toastr.success(response.message, 'Success');
addHTMLInput(response.data); addHTMLInput(response.data);
} else { } else {
toastr.error(response.message, 'ERROR'); toastr.error(response.message, 'Error');
} }
}, },
error: function(xhr, status, error) { error: function(xhr, status, error) {
@ -1001,7 +1001,7 @@
console.error('Response Text: ', xhr.responseText); console.error('Response Text: ', xhr.responseText);
} }
toastr.warning('Error uploading file', 'WARNING'); toastr.warning('Error uploading file', 'Warning');
console.error('Upload error:', error); console.error('Upload error:', error);
}, },
complete: function() { complete: function() {
@ -1033,10 +1033,10 @@
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
if (res.status == true) { if (res.status == true) {
toastr.success(res.message, 'SUCCESS') toastr.success(res.message, 'Success')
addHTMLInput(res.data); addHTMLInput(res.data);
} else { } else {
toastr.warning(res.message, 'WARNING') toastr.warning(res.message, 'Warning')
} }
}, },
error: function(xhr, status, error) { error: function(xhr, status, error) {
@ -1109,13 +1109,13 @@
console.log('Parsed respond', respond) console.log('Parsed respond', respond)
if (respond.status == 'success') { if (respond.status == 'success') {
toastr.success(respond.message, 'SUCCESS') toastr.success(respond.message, 'Success')
} else { } else {
toastr.warning(respond.message, 'WARNING') toastr.warning(respond.message, 'Warning')
} }
} else { } else {
toastr.warning('Failed to sent mail', 'WARNING') toastr.warning('Failed to sent mail', 'Warning')
} }
}, },
error: function(xhr, status, error) { error: function(xhr, status, error) {
@ -1130,16 +1130,16 @@
} else { } else {
let alert_msg = 'Template ID not exist' let alert_msg = 'Template ID not exist'
toastr.warning(alert_msg, 'WARNING'); toastr.warning(alert_msg, 'Warning');
} }
} else { } else {
toastr.warning('Please enter the valid mail', 'WARNING'); toastr.warning('Please enter the valid mail', 'Warning');
} }
} else { } else {
toastr.warning('Please enter the valid mail', 'WARNING'); toastr.warning('Please enter the valid mail', 'Warning');
} }
} }
@ -1321,10 +1321,10 @@
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
if (response.status == true) { if (response.status == true) {
toastr.success(response.message, 'SUCCESS'); toastr.success(response.message, 'Success');
addHTMLInput(response.data); addHTMLInput(response.data);
} else { } else {
toastr.error(response.message, 'ERROR'); toastr.error(response.message, 'Error');
} }
}, },
error: function(xhr, status, error) { error: function(xhr, status, error) {
@ -1341,7 +1341,7 @@
console.error('Response Text: ', xhr.responseText); console.error('Response Text: ', xhr.responseText);
} }
toastr.warning('Error uploading file', 'WARNING'); toastr.warning('Error uploading file', 'Warning');
console.error('Upload error:', error); console.error('Upload error:', error);
}, },
complete: function() { complete: function() {
@ -1373,10 +1373,10 @@
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
if (res.status == true) { if (res.status == true) {
toastr.success(res.message, 'SUCCESS') toastr.success(res.message, 'Success')
addHTMLInput(res.data); addHTMLInput(res.data);
} else { } else {
toastr.warning(res.message, 'WARNING') toastr.warning(res.message, 'Warning')
} }
}, },
error: function(xhr, status, error) { error: function(xhr, status, error) {
@ -1687,7 +1687,7 @@
// setTimeout(function() { // setTimeout(function() {
// $('.loader').fadeOut(); // $('.loader').fadeOut();
// $('.loader-mask').delay(350).fadeOut('slow'); // $('.loader-mask').delay(350).fadeOut('slow');
// toastr.warning('Something Went Wrong!', 'warning'); // toastr.warning('Something Went Wrong!', 'Warning');
// }, 1000); // }, 1000);
// } // }
// }); // });
@ -1747,7 +1747,7 @@
setTimeout(function() { setTimeout(function() {
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
toastr.warning('Something Went Wrong!', 'warning'); toastr.warning('Something Went Wrong!', 'Warning');
}, 1000); }, 1000);
} }
}); });
@ -1807,7 +1807,7 @@
setTimeout(function() { setTimeout(function() {
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
toastr.warning('Something Went Wrong!', 'warning'); toastr.warning('Something Went Wrong!', 'Warning');
}, 1000); }, 1000);
} }
}); });
@ -1867,7 +1867,7 @@
// setTimeout(function() { // setTimeout(function() {
// $('.loader').fadeOut(); // $('.loader').fadeOut();
// $('.loader-mask').delay(350).fadeOut('slow'); // $('.loader-mask').delay(350).fadeOut('slow');
// toastr.warning('Something Went Wrong!', 'warning'); // toastr.warning('Something Went Wrong!', 'Warning');
// }, 1000); // }, 1000);
// } // }
// }); // });
@ -1928,7 +1928,7 @@
setTimeout(function() { setTimeout(function() {
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
toastr.warning('Something Went Wrong!', 'warning'); toastr.warning('Something Went Wrong!', 'Warning');
}, 1000); }, 1000);
} }
}); });
@ -1988,7 +1988,7 @@
// setTimeout(function() { // setTimeout(function() {
// $('.loader').fadeOut(); // $('.loader').fadeOut();
// $('.loader-mask').delay(350).fadeOut('slow'); // $('.loader-mask').delay(350).fadeOut('slow');
// toastr.warning('Something Went Wrong!', 'warning'); // toastr.warning('Something Went Wrong!', 'Warning');
// }, 1000); // }, 1000);
// } // }
// }); // });
@ -2082,7 +2082,7 @@
{ {
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
toastr.warning('Something Wrong!', 'warning'); toastr.warning('Something Wrong!', 'Warning');
}, 1000); }, 1000);
} }
}); });

View File

@ -266,7 +266,7 @@ $(document).ready(function () {
setTimeout(function() { setTimeout(function() {
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
toastr.warning('Something Wrong!', 'warning'); toastr.warning('Something Wrong!', 'Warning');
}, 1000); }, 1000);
} }
}); });
@ -315,7 +315,7 @@ $(document).ready(function () {
setTimeout(function() { setTimeout(function() {
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
toastr.warning('Something Wrong!', 'warning'); toastr.warning('Something Wrong!', 'Warning');
}, 1000); }, 1000);
} }
}); });
@ -385,7 +385,7 @@ $(document).ready(function () {
setTimeout(function() { setTimeout(function() {
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
toastr.warning('Something Wrong!', 'warning'); toastr.warning('Something Wrong!', 'Warning');
}, 1000); }, 1000);
} }
}); });
@ -420,13 +420,13 @@ function removePolicies(element) {
// console.log(res.status == true); // console.log(res.status == true);
if(res){ if(res){
if (res.status == true) { if (res.status == true) {
toastr.success('Policy removed successfully', 'success'); toastr.success('Policy removed successfully', 'Success');
// $('#branch_table').empty(); // $('#branch_table').empty();
// location.reload(); // location.reload();
window.location.href = '<?= base_url("master/policy/list/") ?>' + policy_id_for_reload; window.location.href = '<?= base_url("master/policy/list/") ?>' + policy_id_for_reload;
} else { } else {
toastr.warning('Failed to remove policy', 'warning'); toastr.warning('Failed to remove policy', 'Warning');
} }
} }
}, },
@ -435,7 +435,7 @@ function removePolicies(element) {
console.error(status, error); console.error(status, error);
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
toastr.warning('Failed to remove policy', 'warning'); toastr.warning('Failed to remove policy', 'Warning');
} }
}); });
} }

View File

@ -1461,7 +1461,7 @@ $('body').on('click', '.btnPolicyMaster', function() {
}); });
} else if (gmc_policy_type_id != 'GPA' && gmc_policy_type_id != 'GMC') { } else if (gmc_policy_type_id != 'GPA' && gmc_policy_type_id != 'GMC') {
// toastr.warning('The terms has no data ', 'warning'); // toastr.warning('The terms has no data ', 'Warning');
} }
$(document).ready(function() { $(document).ready(function() {

View File

@ -844,7 +844,7 @@ $('body').on('click', '.btnPolicyMaster', function() {
}); });
} else if (gpa_policy_type_id != 'GPA' && gpa_policy_type_id != 'GMC') { } else if (gpa_policy_type_id != 'GPA' && gpa_policy_type_id != 'GMC') {
// toastr.warning("This policy has no policy terms.", 'warning'); // toastr.warning("This policy has no policy terms.", 'Warning');
} }
}); });

View File

@ -255,7 +255,7 @@ $(document).on('submit', 'form[id^="GridForm_"]', function(event) {
console.log('checkFamiliFloatersKeysDuplicate', isEqual) console.log('checkFamiliFloatersKeysDuplicate', isEqual)
if(isEqual){ if(isEqual){
toastr.warning('Family floaters alerdey exist', 'warning'); toastr.warning('Family floaters alerdey exist', 'Warning');
return false; return false;
} }
@ -671,7 +671,7 @@ $(document).on('change', 'select[id^="grid_"]', function(event)
setTimeout(function() { setTimeout(function() {
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
toastr.warning('Something Wrong!', 'warning'); toastr.warning('Something Wrong!', 'Warning');
}, 1000); }, 1000);
} }
}); });
@ -2000,7 +2000,7 @@ function checkDuplicate(unique_id = null)
if (siDuplicates) { if (siDuplicates) {
// highlightDuplicates(duplicateIndices); // highlightDuplicates(duplicateIndices);
toastr.warning('Duplicates found!', 'warning'); toastr.warning('Duplicates found!', 'Warning');
return true; return true;
} else { } else {
return false; return false;
@ -2042,7 +2042,7 @@ function checkDuplicate(unique_id = null)
if (siDuplicates) { if (siDuplicates) {
// highlightDuplicates(duplicateIndices); // highlightDuplicates(duplicateIndices);
toastr.warning('Duplicates found!', 'warning'); toastr.warning('Duplicates found!', 'Warning');
return true; return true;
} else { } else {
return false; return false;
@ -2083,7 +2083,7 @@ function checkDuplicate(unique_id = null)
} }
if (ageDuplicates) { if (ageDuplicates) {
toastr.warning('Duplicates found!', 'warning'); toastr.warning('Duplicates found!', 'Warning');
return true; return true;
} else { } else {
return false; return false;
@ -2130,7 +2130,7 @@ function checkDuplicate(unique_id = null)
} }
if (siDuplicates || ageDuplicates) { if (siDuplicates || ageDuplicates) {
toastr.warning('Duplicates found!', 'warning'); toastr.warning('Duplicates found!', 'Warning');
return true; return true;
} else { } else {
return false; return false;
@ -2170,7 +2170,7 @@ function checkDuplicate(unique_id = null)
} }
if (ageDuplicates) { if (ageDuplicates) {
toastr.warning('Duplicates found!', 'warning'); toastr.warning('Duplicates found!', 'Warning');
return true; return true;
} else { } else {
return false; return false;
@ -2216,7 +2216,7 @@ function checkDuplicate(unique_id = null)
} }
if (siDuplicates || ageDuplicates) { if (siDuplicates || ageDuplicates) {
toastr.warning('Duplicates found!', 'warning'); toastr.warning('Duplicates found!', 'Warning');
return true; return true;
} else { } else {
return false; return false;
@ -2263,7 +2263,7 @@ function checkDuplicate(unique_id = null)
} }
if (siDuplicates || ageDuplicates) { if (siDuplicates || ageDuplicates) {
toastr.warning('Duplicates found!', 'warning'); toastr.warning('Duplicates found!', 'Warning');
return true; return true;
} else { } else {
return false; return false;
@ -2303,7 +2303,7 @@ function checkDuplicate(unique_id = null)
} }
if (duplicatesFound) { if (duplicatesFound) {
toastr.warning('Duplicates found!', 'warning'); toastr.warning('Duplicates found!', 'Warning');
return true; return true;
} else { } else {
return false; return false;
@ -2353,7 +2353,7 @@ function checkDuplicate(unique_id = null)
} }
if (duplicatesFound) { if (duplicatesFound) {
toastr.warning('Duplicates found!', 'warning'); toastr.warning('Duplicates found!', 'Warning');
return true; return true;
} else { } else {
return false; return false;
@ -2398,7 +2398,7 @@ function checkDuplicate(unique_id = null)
} }
if (duplicatesFound) { if (duplicatesFound) {
toastr.warning('Duplicates found!', 'warning'); toastr.warning('Duplicates found!', 'Warning');
return true; return true;
} else { } else {
return false; return false;
@ -2452,7 +2452,7 @@ function checkDuplicate(unique_id = null)
} }
if (duplicatesFound) { if (duplicatesFound) {
toastr.warning('Duplicates found!', 'warning'); toastr.warning('Duplicates found!', 'Warning');
return true; return true;
} else { } else {
return false; return false;
@ -2488,7 +2488,7 @@ function checkDuplicate(unique_id = null)
if (siDuplicates) { if (siDuplicates) {
toastr.warning('Duplicates found!', 'warning'); toastr.warning('Duplicates found!', 'Warning');
return true; return true;
} else { } else {
return false; return false;
@ -2529,7 +2529,7 @@ function checkDuplicate(unique_id = null)
if (siDuplicates) { if (siDuplicates) {
toastr.warning('Duplicates found!', 'warning'); toastr.warning('Duplicates found!', 'Warning');
return true; return true;
} else { } else {
return false; return false;
@ -3147,7 +3147,7 @@ function checkCheckboxes()
toastr.warning('You must select at least one checkbox.', 'Warning'); toastr.warning('You must select at least one checkbox.', 'Warning');
return false; return false;
} else if (checkedCount == uncheckedCount) { } else if (checkedCount == uncheckedCount) {
toastr.warning('You can not select all of the checkboxes', 'Waraning'); toastr.warning('You can not select all of the checkboxes', 'Warning');
return false; return false;
} }
return true; return true;
@ -3589,7 +3589,7 @@ function removeTab(input, tabID, tabName)
text: res.message, text: res.message,
icon: "success" icon: "success"
}); });
// toastr.success('Policy removed successfully.', 'success'); // toastr.success('Policy removed successfully.', 'Success');
} else { } else {
if(res.rr_count > 0){ if(res.rr_count > 0){
Swal.fire({ Swal.fire({
@ -3605,7 +3605,7 @@ function removeTab(input, tabID, tabName)
}); });
} }
// toastr.warning('Failed to remove policy', 'warning'); // toastr.warning('Failed to remove policy', 'Warning');
} }
} }
}, },
@ -3614,7 +3614,7 @@ function removeTab(input, tabID, tabName)
console.error(status, error); console.error(status, error);
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
console.log('Something Wrong!', 'warning'); console.log('Something Wrong!', 'Warning');
} }
}); });
} }
@ -3704,7 +3704,7 @@ function renameRackRateTab(input, unique_id = null, tabName = null)
$('#rack_rate_name').val(newTabName); $('#rack_rate_name').val(newTabName);
// toastr.success('Policy removed successfully.', 'success'); // toastr.success('Policy removed successfully.', 'Success');
} else { } else {
if(res.rr_count > 0){ if(res.rr_count > 0){
Swal.fire({ Swal.fire({
@ -3723,7 +3723,7 @@ function renameRackRateTab(input, unique_id = null, tabName = null)
} }
// toastr.warning('Failed to remove policy', 'warning'); // toastr.warning('Failed to remove policy', 'Warning');
} }
} }
}, },
@ -3732,7 +3732,7 @@ function renameRackRateTab(input, unique_id = null, tabName = null)
console.error(status, error); console.error(status, error);
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
console.log('Something Wrong!', 'warning'); console.log('Something Wrong!', 'Warning');
} }
}); });
} }
@ -4021,7 +4021,7 @@ function checkValideUnits(unique_id = null)
console.log('checkValideUnits function uncommonValues', uncommonValues); console.log('checkValideUnits function uncommonValues', uncommonValues);
if (uncommonValues.length > 0) { if (uncommonValues.length > 0) {
toastr.warning('Given unit does not exist in the branch!', 'warning'); toastr.warning('Given unit does not exist in the branch!', 'Warning');
return true; return true;
} else { } else {
return false; return false;
@ -4049,7 +4049,7 @@ function checkValideUnits(unique_id = null)
console.log('checkValideUnits function uncommonValues', uncommonValues); console.log('checkValideUnits function uncommonValues', uncommonValues);
if (uncommonValues.length > 0) { if (uncommonValues.length > 0) {
toastr.warning('Given unit does not exist in the branch!', 'warning'); toastr.warning('Given unit does not exist in the branch!', 'Warning');
return true; return true;
} else { } else {
return false; return false;
@ -4078,7 +4078,7 @@ function checkValideUnits(unique_id = null)
console.log('checkValideUnits function uncommonValues', uncommonValues); console.log('checkValideUnits function uncommonValues', uncommonValues);
if (uncommonValues.length > 0) { if (uncommonValues.length > 0) {
toastr.warning('Given unit does not exist in the branch!', 'warning'); toastr.warning('Given unit does not exist in the branch!', 'Warning');
return true; return true;
} else { } else {
return false; return false;
@ -4107,7 +4107,7 @@ function checkValideUnits(unique_id = null)
console.log('checkValideUnits function uncommonValues', uncommonValues); console.log('checkValideUnits function uncommonValues', uncommonValues);
if (uncommonValues.length > 0) { if (uncommonValues.length > 0) {
toastr.warning('Given unit does not exist in the branch!', 'warning'); toastr.warning('Given unit does not exist in the branch!', 'Warning');
return true; return true;
} else { } else {
return false; return false;
@ -4137,7 +4137,7 @@ function checkValideUnits(unique_id = null)
console.log('checkValideUnits function uncommonValues', uncommonValues); console.log('checkValideUnits function uncommonValues', uncommonValues);
if (uncommonValues.length > 0) { if (uncommonValues.length > 0) {
toastr.warning('Given unit does not exist in the branch!', 'warning'); toastr.warning('Given unit does not exist in the branch!', 'Warning');
return true; return true;
} else { } else {
return false; return false;
@ -4166,7 +4166,7 @@ function checkValideUnits(unique_id = null)
console.log('checkValideUnits function uncommonValues', uncommonValues); console.log('checkValideUnits function uncommonValues', uncommonValues);
if (uncommonValues.length > 0) { if (uncommonValues.length > 0) {
toastr.warning('Given unit does not exist in the branch!', 'warning'); toastr.warning('Given unit does not exist in the branch!', 'Warning');
return true; return true;
} else { } else {
return false; return false;
@ -4195,7 +4195,7 @@ function checkValideUnits(unique_id = null)
console.log('checkValideUnits function uncommonValues', uncommonValues); console.log('checkValideUnits function uncommonValues', uncommonValues);
if (uncommonValues.length > 0) { if (uncommonValues.length > 0) {
toastr.warning('Given unit does not exist in the branch!', 'warning'); toastr.warning('Given unit does not exist in the branch!', 'Warning');
return true; return true;
} else { } else {
return false; return false;
@ -4224,7 +4224,7 @@ function checkValideUnits(unique_id = null)
console.log('checkValideUnits function uncommonValues', uncommonValues); console.log('checkValideUnits function uncommonValues', uncommonValues);
if (uncommonValues.length > 0) { if (uncommonValues.length > 0) {
toastr.warning('Given unit does not exist in the branch!', 'warning'); toastr.warning('Given unit does not exist in the branch!', 'Warning');
return true; return true;
} else { } else {
return false; return false;
@ -4253,7 +4253,7 @@ function checkValideUnits(unique_id = null)
console.log('checkValideUnits function uncommonValues', uncommonValues); console.log('checkValideUnits function uncommonValues', uncommonValues);
if (uncommonValues.length > 0) { if (uncommonValues.length > 0) {
toastr.warning('Given unit does not exist in the branch!', 'warning'); toastr.warning('Given unit does not exist in the branch!', 'Warning');
return true; return true;
} else { } else {
return false; return false;
@ -4282,7 +4282,7 @@ function checkValideUnits(unique_id = null)
console.log('checkValideUnits function uncommonValues', uncommonValues); console.log('checkValideUnits function uncommonValues', uncommonValues);
if (uncommonValues.length > 0) { if (uncommonValues.length > 0) {
toastr.warning('Given unit does not exist in the branch!', 'warning'); toastr.warning('Given unit does not exist in the branch!', 'Warning');
return true; return true;
} else { } else {
return false; return false;
@ -4311,7 +4311,7 @@ function checkValideUnits(unique_id = null)
console.log('checkValideUnits function uncommonValues', uncommonValues); console.log('checkValideUnits function uncommonValues', uncommonValues);
if (uncommonValues.length > 0) { if (uncommonValues.length > 0) {
toastr.warning('Given unit does not exist in the branch!', 'warning'); toastr.warning('Given unit does not exist in the branch!', 'Warning');
return true; return true;
} else { } else {
return false; return false;
@ -4343,7 +4343,7 @@ function checkValideUnits(unique_id = null)
console.log('checkValideUnits function uncommonValues', uncommonValues); console.log('checkValideUnits function uncommonValues', uncommonValues);
if (uncommonValues.length > 0) { if (uncommonValues.length > 0) {
toastr.warning('Given unit does not exist in the branch!', 'warning'); toastr.warning('Given unit does not exist in the branch!', 'Warning');
return true; return true;
} else { } else {
return false; return false;
@ -4371,7 +4371,7 @@ function checkValideUnits(unique_id = null)
console.log('checkValideUnits function uncommonValues', uncommonValues); console.log('checkValideUnits function uncommonValues', uncommonValues);
if (uncommonValues.length > 0) { if (uncommonValues.length > 0) {
toastr.warning('Given unit does not exist in the branch!', 'warning'); toastr.warning('Given unit does not exist in the branch!', 'Warning');
return true; return true;
} else { } else {
return false; return false;

View File

@ -178,7 +178,7 @@ function copyHeaders(unique_id) {
// //console.log('excel_headers[formatType]', typeof excel_headers[formatType]) // //console.log('excel_headers[formatType]', typeof excel_headers[formatType])
if (excel_headers[formatType] == undefined) { if (excel_headers[formatType] == undefined) {
toastr.error('Headers not found', 'Warning'); toastr.warning('Headers not found', 'Warning');
return; return;
} }
@ -203,7 +203,7 @@ function copyHeaders(unique_id) {
//console.log('headerString', headerString); //console.log('headerString', headerString);
navigator.clipboard.writeText(headerString).then(function() { navigator.clipboard.writeText(headerString).then(function() {
toastr.success('Headers copied to clipboard', 'success'); toastr.success('Headers copied to clipboard', 'Success');
}, function(err) { }, function(err) {
toastr.error(err, 'Could not copy headers:'); toastr.error(err, 'Could not copy headers:');
}); });
@ -493,7 +493,7 @@ function generateTable(unique_id) {
// console.log(secondKey) // console.log(secondKey)
if ($('.duplicate').length > 0) { if ($('.duplicate').length > 0) {
//console.log('test'); //console.log('test');
toastr.warning("Duplicates found!", "warning"); toastr.warning("Duplicates found!", "Warning");
$('.excel_table_class').empty(); $('.excel_table_class').empty();
$('.excel_textarea').val(''); $('.excel_textarea').val('');
} }

View File

@ -599,7 +599,7 @@ $(document).on('change', 'input[type="checkbox"][name="co_share_type[]"]', funct
let isAnyChecked = $('input[type="checkbox"][name="co_share_type[]"]:checked').length > 1; let isAnyChecked = $('input[type="checkbox"][name="co_share_type[]"]:checked').length > 1;
if (isAnyChecked) { if (isAnyChecked) {
toastr.warning('Only one leader can be selected.', 'WARNING!'); toastr.warning('Only one leader can be selected.', 'Warning!');
$(this).prop('checked', false); $(this).prop('checked', false);
} }
}); });
@ -667,7 +667,7 @@ $(document).on('click', '[name="co_share_type[]"]', function() {
if(insurer == ""){ if(insurer == ""){
toastr.warning('Please select the insurer.', 'WARNING!'); toastr.warning('Please select the insurer.', 'Warning!');
$(this).prop('checked', false); $(this).prop('checked', false);
}else{ }else{
if(client_id && insurer_id){ if(client_id && insurer_id){
@ -1443,7 +1443,7 @@ $('#setInsurerCount').on('input', function() {
addInsurerColumn(); addInsurerColumn();
} }
} else { } else {
toastr.warning('Please enter the insurer count', 'WARNING'); toastr.warning('Please enter the insurer count', 'Warning');
} }
}); });

View File

@ -412,11 +412,11 @@ document.addEventListener("DOMContentLoaded", function () {
<?php endif; ?> <?php endif; ?>
<?php if (session()->has('create_success')) : ?> <?php if (session()->has('create_success')) : ?>
toastr.success('<?= session()->getFlashdata('create_success') ?>', 'success'); toastr.success('<?= session()->getFlashdata('create_success') ?>', 'Success');
<?php endif; ?> <?php endif; ?>
<?php if (session()->has('update_success')) : ?> <?php if (session()->has('update_success')) : ?>
toastr.success('<?= session()->getFlashdata('update_success') ?>', 'success'); toastr.success('<?= session()->getFlashdata('update_success') ?>', 'Success');
<?php endif; ?> <?php endif; ?>

View File

@ -1182,7 +1182,7 @@ $(document).ready(function(){
}else{ }else{
toastr.warning('Please select the Owner type', 'WARNING'); toastr.warning('Please select the Owner type', 'Warning');
} }
@ -1285,7 +1285,7 @@ $(document).on('change', 'input[type="checkbox"][name="co_share_type[]"]', funct
let isAnyChecked = $('input[type="checkbox"][name="co_share_type[]"]:checked').length > 1; let isAnyChecked = $('input[type="checkbox"][name="co_share_type[]"]:checked').length > 1;
if (isAnyChecked) { if (isAnyChecked) {
toastr.warning('Only one leader can be selected.', 'WARNING!'); toastr.warning('Only one leader can be selected.', 'Warning!');
$(this).prop('checked', false); $(this).prop('checked', false);
} }
}); });
@ -1356,7 +1356,7 @@ $(document).on('click', '[name="co_share_type[]"]', function() {
// console.log('insurer_id', insurer_id); // console.log('insurer_id', insurer_id);
if(insurer == ""){ if(insurer == ""){
toastr.warning('Please select the insurer.', 'WARNING!'); toastr.warning('Please select the insurer.', 'Warning!');
$(this).prop('checked', false); $(this).prop('checked', false);
}else{ }else{
@ -1426,7 +1426,7 @@ $(document).ready(function() {
if(!client_id){ if(!client_id){
$(this).val('').select2(); $(this).val('').select2();
toastr.warning('Please select the Client', 'WARNING'); toastr.warning('Please select the Client', 'Warning');
} }
}); });
@ -2248,7 +2248,7 @@ function co_share_percentage_calculation(input, extra = null){
}); });
if (val_sum > 100) { if (val_sum > 100) {
toastr.warning('Sum of the co-share is greater than 100', 'WARNING'); toastr.warning('Sum of the co-share is greater than 100', 'Warning');
} }
// // Find the empty input(s) // // Find the empty input(s)
@ -2761,7 +2761,7 @@ function addCDAccountNumber(input)
if(client_id == '' || insurer_id == ''){ if(client_id == '' || insurer_id == ''){
toastr.warning('Client, Insurer, or both do not exist.', 'WARNING!'); toastr.warning('Client, Insurer, or both do not exist.', 'Warning!');
$(input).val('') $(input).val('')
return false; return false;
} }
@ -2769,7 +2769,7 @@ function addCDAccountNumber(input)
if (isAnyLeaderChecked) { if (isAnyLeaderChecked) {
if(cop_yes){ if(cop_yes){
$('#cd_ac_no_'+uniqueid).val(''); $('#cd_ac_no_'+uniqueid).val('');
toastr.warning('Please select the Leader.', 'WARNING!'); toastr.warning('Please select the Leader.', 'Warning!');
return false; return false;
} }
} }
@ -2777,7 +2777,7 @@ function addCDAccountNumber(input)
if(!leader){ if(!leader){
if(cop_yes){ if(cop_yes){
$('#cd_ac_no_'+uniqueid).val(''); $('#cd_ac_no_'+uniqueid).val('');
toastr.warning('The CD account number not for the Leader.', 'WARNING!'); toastr.warning('The CD account number not for the Leader.', 'Warning!');
return false; return false;
} }
} }
@ -3635,7 +3635,7 @@ $('#policy_no').change(function(){
// if (!leader) { // if (!leader) {
// $(this).val(''); // $(this).val('');
// toastr.warning('Please select the Leader.', 'WARNING!'); // toastr.warning('Please select the Leader.', 'Warning!');
// } // }
// }); // });
@ -3660,7 +3660,7 @@ $('#setInsurerCount').on('click', function() {
addInsurerColumn(); // Ensure this function is defined properly addInsurerColumn(); // Ensure this function is defined properly
// } // }
// } else { // } else {
// toastr.warning('Please enter a valid insurer count', 'WARNING'); // toastr.warning('Please enter a valid insurer count', 'Warning');
// } // }
}); });
@ -4477,7 +4477,7 @@ function validateInput(input, table, field){
checkDuplicateTableFieldValue(table, field, value, function(isDuplicate) { checkDuplicateTableFieldValue(table, field, value, function(isDuplicate) {
if (isDuplicate) { if (isDuplicate) {
toastr.warning(message, 'WARNING'); toastr.warning(message, 'Warning');
$(input).val('') $(input).val('')
} }
}); });
@ -4549,7 +4549,7 @@ function checkCDAmountForBasePremium(input) {
// Validate inputs // Validate inputs
if (!base_premium || !cd_ac_no) { if (!base_premium || !cd_ac_no) {
toastr.warning('Base premium or CD account number is missing', 'WARNING'); toastr.warning('Base premium or CD account number is missing', 'Warning');
return; return;
} }
@ -4569,16 +4569,16 @@ function checkCDAmountForBasePremium(input) {
if (!response.base_premium_greater_than_balance) { if (!response.base_premium_greater_than_balance) {
console.log('Base premium is less than or equal to CD balance:', 'SUCCESS'); console.log('Base premium is less than or equal to CD balance:', 'SUCCESS');
} else { } else {
toastr.warning('Base premium greater than CD Amount', 'WARNING'); toastr.warning('Base premium greater than CD Amount', 'Warning');
$(input).val("0") $(input).val("0")
} }
} else { } else {
toastr.error(response.message || 'Unable to fetch data', 'ERROR'); toastr.error(response.message || 'Unable to fetch data', 'Error');
} }
}, function(xhr, status, error) { }, function(xhr, status, error) {
console.error('Error fetching data:', error); console.error('Error fetching data:', error);
console.error(xhr.responseText); console.error(xhr.responseText);
toastr.error('An error occurred while checking the CD amount.', 'ERROR'); toastr.error('An error occurred while checking the CD amount.', 'Error');
}); });
} }

View File

@ -511,11 +511,11 @@ $(document).ready(function(){
<?php endif; ?> <?php endif; ?>
<?php if (session()->has('create_success')) : ?> <?php if (session()->has('create_success')) : ?>
toastr.success('<?= session()->getFlashdata('create_success') ?>', 'success'); toastr.success('<?= session()->getFlashdata('create_success') ?>', 'Success');
<?php endif; ?> <?php endif; ?>
<?php if (session()->has('update_success')) : ?> <?php if (session()->has('update_success')) : ?>
toastr.success('<?= session()->getFlashdata('update_success') ?>', 'success'); toastr.success('<?= session()->getFlashdata('update_success') ?>', 'Success');
<?php endif; ?> <?php endif; ?>
@ -1210,7 +1210,7 @@ $(document).ready(function(){
myModal.show(); myModal.show();
}else{ }else{
$('#client_id').val('').change(); $('#client_id').val('').change();
toastr.warning('Please select the client type', 'WARNING') toastr.warning('Please select the client type', 'Warning')
} }
} }
@ -1362,7 +1362,7 @@ $('#cd_ac_no_data').change(function(){
console.log('CD Account Number Responcce', res) console.log('CD Account Number Responcce', res)
if(res.status == true){ if(res.status == true){
toastr.warning(res.message, 'warning'); toastr.warning(res.message, 'Warning');
$('#cd_ac_no_data').val(''); $('#cd_ac_no_data').val('');
} }
}, },
@ -1647,10 +1647,10 @@ function removePolicyTransaction(input, pt_id) {
console.log('Data fetched successfully:', response); console.log('Data fetched successfully:', response);
if (response.status === true) { if (response.status === true) {
toastr.success(response.message, 'SUCCESS'); toastr.success(response.message, 'Success');
window.location.reload(); window.location.reload();
} else { } else {
toastr.warning(response.message, 'WARNING'); toastr.warning(response.message, 'Warning');
} }
}, function(xhr, status, error) { }, function(xhr, status, error) {
console.error('Error fetching data:', error); console.error('Error fetching data:', error);

View File

@ -108,7 +108,7 @@ $(document).ready(function () {
setTimeout(function() { setTimeout(function() {
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
toastr.warning('Something Wrong!', 'warning'); toastr.warning('Something Wrong!', 'Warning');
}, 1000); }, 1000);
} }
}); });

View File

@ -315,10 +315,10 @@ function removePolciyType(element) {
// console.log(res.status == true); // console.log(res.status == true);
if(res){ if(res){
if (res.status == true) { if (res.status == true) {
toastr.success('Policy type removed successfully', 'success'); toastr.success('Policy type removed successfully', 'Success');
location.reload(); location.reload();
} else { } else {
toastr.warning('Failed to remove policy type', 'warning'); toastr.warning('Failed to remove policy type', 'Warning');
} }
} }
}, },
@ -327,7 +327,7 @@ function removePolciyType(element) {
console.error(status, error); console.error(status, error);
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
toastr.warning('Failed to remove policy type', 'warning'); toastr.warning('Failed to remove policy type', 'Warning');
} }
}); });
} }

View File

@ -74,7 +74,7 @@ body {
if(check_policy_type_id[0].value == '' || check_policy_type_id[0].value == null || check_policy_type_id[0].value == 0){ if(check_policy_type_id[0].value == '' || check_policy_type_id[0].value == null || check_policy_type_id[0].value == 0){
$('#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') { if ($('#btnBranchBack')[0].style.display == 'none') {
$('#btnBranchAdd').show(); $('#btnBranchAdd').show();

View File

@ -195,18 +195,18 @@ $(document).ready(function() {
if (response.status) { if (response.status) {
if (response.status == true) { if (response.status == true) {
toastr.success(response.message, 'SUCCESS'); toastr.success(response.message, 'Success');
} else { } else {
toastr.warning(response.message, 'WARNING'); toastr.warning(response.message, 'Warning');
} }
} else { } else {
toastr.error(response.message || 'Unable to get responce', 'ERROR'); toastr.error(response.message || 'Unable to get responce', 'Error');
} }
}, },
error: function(xhr, status, error) { error: function(xhr, status, error) {
console.error('Error fetching data:', error); console.error('Error fetching data:', error);
console.error(xhr.responseText); console.error(xhr.responseText);
toastr.error('An error occurred while Auto SI Form Submit.', 'ERROR'); toastr.error('An error occurred while Auto SI Form Submit.', 'Error');
}, },
}); });
}); });
@ -296,7 +296,7 @@ function getRackRateSIAmountAndAutoSiDataForAutoSI(client_policy_id) {
icon: 'warning', icon: 'warning',
}) })
} else { } else {
toastr.error(response.message || 'Unable to fetch data', 'ERROR'); toastr.error(response.message || 'Unable to fetch data', 'Error');
addRow(); addRow();
} }
} }
@ -307,7 +307,7 @@ function getRackRateSIAmountAndAutoSiDataForAutoSI(client_policy_id) {
}, function(xhr, status, error) { }, function(xhr, status, error) {
console.error('Error fetching data:', error); console.error('Error fetching data:', error);
console.error(xhr.responseText); console.error(xhr.responseText);
toastr.error('An error occurred while checking the SI amount.', 'ERROR'); toastr.error('An error occurred while checking the SI amount.', 'Error');
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');

View File

@ -234,7 +234,7 @@ function getCoShareStatementDetails(pt_id){
appendTableData(response.data) appendTableData(response.data)
} else { } else {
toastr.warning(response.message, 'WARNING'); toastr.warning(response.message, 'Warning');
} }
}, function(xhr, status, error) { }, function(xhr, status, error) {
console.error('Error fetching data:', error); console.error('Error fetching data:', error);

View File

@ -522,7 +522,7 @@ function getClientPolicyDataBasedOnClientAndInsuer(){
appendPolicies(response.data) appendPolicies(response.data)
} else { } else {
toastr.warning(response.message, 'WARNING'); toastr.warning(response.message, 'Warning');
} }
}, function(xhr, status, error) { }, function(xhr, status, error) {
console.error('Error fetching data:', error); console.error('Error fetching data:', error);

View File

@ -609,7 +609,7 @@ document.addEventListener("DOMContentLoaded", function () {
$('#email_corporate').val(''); $('#email_corporate').val('');
$('#mobile').val(''); $('#mobile').val('');
toastr.warning(res.message, 'WARNING'); toastr.warning(res.message, 'Warning');
} }
}, },
error: function (xhr, status, error) { error: function (xhr, status, error) {
@ -656,7 +656,7 @@ document.addEventListener("DOMContentLoaded", function () {
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
if(response.status == true){ if(response.status == true){
toastr.success(response.message, 'SUCCESS'); toastr.success(response.message, 'Success');
$('.close').click(); $('.close').click();
@ -671,7 +671,7 @@ document.addEventListener("DOMContentLoaded", function () {
window.location.reload(); window.location.reload();
}else{ }else{
toastr.error(response.message, 'ERROR'); toastr.error(response.message, 'Error');
} }
}, },
error: function(xhr, status, error) { error: function(xhr, status, error) {
@ -688,7 +688,7 @@ document.addEventListener("DOMContentLoaded", function () {
console.error('Response Text: ', xhr.responseText); console.error('Response Text: ', xhr.responseText);
} }
toastr.warning('Error uploading file', 'WARNING'); toastr.warning('Error uploading file', 'Warning');
console.error('Upload error:', error); console.error('Upload error:', error);
}, },
complete: function() { complete: function() {
@ -729,9 +729,9 @@ document.addEventListener("DOMContentLoaded", function () {
// $('.loader-mask').delay(350).fadeOut('slow'); // $('.loader-mask').delay(350).fadeOut('slow');
// if(res.status == true){ // if(res.status == true){
// toastr.success(res.message, 'SUCCESS'); // toastr.success(res.message, 'Success');
// }else{ // }else{
// toastr.error(res.message, 'ERROR'); // toastr.error(res.message, 'Error');
// } // }
// }, // },
// error: function (xhr, status, error) { // error: function (xhr, status, error) {
@ -754,7 +754,7 @@ document.addEventListener("DOMContentLoaded", function () {
}) })
if(selected.length == 0){ if(selected.length == 0){
toastr.warning('Please select atleast one employee', 'WARNING'); toastr.warning('Please select atleast one employee', 'Warning');
return; return;
} }
$('#employee_ids').val(selected); $('#employee_ids').val(selected);
@ -1033,12 +1033,12 @@ for (let i = 0; i < selected_count.length; i++) {
if (response.code === 200) { if (response.code === 200) {
console.log(`Iteration ${i}: Success - ${response.message}`); console.log(`Iteration ${i}: Success - ${response.message}`);
} else { } else {
toastr.error(response.message, 'ERROR'); toastr.error(response.message, 'Error');
} }
}, },
error: function(xhr, status, error) { error: function(xhr, status, error) {
console.error('AJAX Error:', error); console.error('AJAX Error:', error);
toastr.error('An error occurred. Please try again.', 'ERROR'); toastr.error('An error occurred. Please try again.', 'Error');
}, },
complete: function() { complete: function() {
// Increment the completed requests counter // Increment the completed requests counter
@ -1046,7 +1046,7 @@ for (let i = 0; i < selected_count.length; i++) {
// Check if all AJAX requests have completed // Check if all AJAX requests have completed
if (completedRequests === selected_count.length) { if (completedRequests === selected_count.length) {
toastr.success('All employees have been successfully mapped.', 'SUCCESS'); toastr.success('All employees have been successfully mapped.', 'Success');
$('#map_emp_modal').modal('hide'); $('#map_emp_modal').modal('hide');
window.location.reload(); window.location.reload();
} }
@ -1063,7 +1063,7 @@ function unmapEmployees(){
}) })
if(selected.length == 0){ if(selected.length == 0){
toastr.warning('Please select atleast one employee', 'WARNING'); toastr.warning('Please select atleast one employee', 'Warning');
return; return;
} }
@ -1108,10 +1108,10 @@ function unmapEmployees(){
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
if (res.status === true) { if (res.status === true) {
toastr.success(res.message, 'SUCCESS'); toastr.success(res.message, 'Success');
window.location.reload(); window.location.reload();
} else { } else {
toastr.error(res.message, 'ERROR'); toastr.error(res.message, 'Error');
} }
}, },
error: function (xhr, status, error) { error: function (xhr, status, error) {

View File

@ -282,7 +282,7 @@ $(document).ready(function () {
setTimeout(function() { setTimeout(function() {
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
toastr.warning('Something Wrong!', 'warning'); toastr.warning('Something Wrong!', 'Warning');
}, 1000); }, 1000);
} }
}); });
@ -341,7 +341,7 @@ $(document).ready(function () {
setTimeout(function() { setTimeout(function() {
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
toastr.warning('Something Wrong!', 'warning'); toastr.warning('Something Wrong!', 'Warning');
}, 1000); }, 1000);
} }
}); });
@ -387,7 +387,7 @@ $(document).ready(function () {
setTimeout(function() { setTimeout(function() {
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
toastr.warning('Something Wrong!', 'warning'); toastr.warning('Something Wrong!', 'Warning');
}, 1000); }, 1000);
} }
}); });
@ -547,7 +547,7 @@ function removeTPABranch(element) {
toastr.success('TPA branch removed successfully', 'success'); toastr.success('TPA branch removed successfully', 'success');
location.reload(); location.reload();
} else { } else {
toastr.warning('Failed to remove TPA branch', 'warning'); toastr.warning('Failed to remove TPA branch', 'Warning');
} }
} }
}, },
@ -556,7 +556,7 @@ function removeTPABranch(element) {
console.error(status, error); console.error(status, error);
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
toastr.warning('Failed to remove TPA branch', 'warning'); toastr.warning('Failed to remove TPA branch', 'Warning');
} }
}); });
} }

View File

@ -271,10 +271,10 @@ function removeTPA(element) {
// console.log(res.status == true); // console.log(res.status == true);
if(res){ if(res){
if (res.status == true) { if (res.status == true) {
toastr.success('TPA removed successfully', 'success'); toastr.success('TPA removed successfully', 'Success');
location.reload(); location.reload();
} else { } else {
toastr.warning('Failed to remove TPA', 'warning'); toastr.warning('Failed to remove TPA', 'Warning');
} }
} }
}, },
@ -283,7 +283,7 @@ function removeTPA(element) {
console.error(status, error); console.error(status, error);
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
toastr.warning('Failed to remove TPA', 'warning'); toastr.warning('Failed to remove TPA', 'Warning');
} }
}); });
} }

View File

@ -74,7 +74,7 @@ body {
if(check_tpa_id[0].value == '' || check_tpa_id[0].value == null || check_tpa_id[0].value == 0){ if(check_tpa_id[0].value == '' || check_tpa_id[0].value == null || check_tpa_id[0].value == 0){
$('#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') { if ($('#btnBranchBack')[0].style.display == 'none') {
$('#btnBranchAdd').show(); $('#btnBranchAdd').show();

View File

@ -663,7 +663,7 @@ function getClientPolicyDataBasedOnClientAndInsuer(){
appendPolicies(response.data) appendPolicies(response.data)
} else { } else {
toastr.warning(response.message, 'WARNING'); toastr.warning(response.message, 'Warning');
} }
}, function(xhr, status, error) { }, function(xhr, status, error) {
console.error('Error fetching data:', error); console.error('Error fetching data:', error);

View File

@ -386,7 +386,7 @@ $('#cost_center').change(function() {
console.log(res) console.log(res)
if (res.status == true) { if (res.status == true) {
toastr.warning(res.message, 'warning'); toastr.warning(res.message, 'Warning');
$('#cost_center').val(''); $('#cost_center').val('');
} }
}, },

View File

@ -577,10 +577,10 @@ function removeVehicleMasterData(element) {
// console.log(res.status == true); // console.log(res.status == true);
if (res) { if (res) {
if (res.status == true) { if (res.status == true) {
toastr.success('Vehicle Data removed successfully.', 'success'); toastr.success('Vehicle Data removed successfully.', 'Success');
location.reload(); location.reload();
} else { } else {
toastr.warning('Failed to remove Vehicle Data.', 'warning'); toastr.warning('Failed to remove Vehicle Data.', 'Warning');
} }
} }
}, },
@ -589,7 +589,7 @@ function removeVehicleMasterData(element) {
console.error(status, error); console.error(status, error);
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
console.log('Something Wrong!', 'warning'); console.log('Something Wrong!', 'Warning');
} }
}); });
} }

View File

@ -3549,12 +3549,12 @@ function ajaxRequest(formData) {
console.log(res); console.log(res);
if (res.status == 'success' && res.code == 200) { if (res.status == 'success' && res.code == 200) {
toastr.success('Mail send Successfully', 'SUCCESS') toastr.success('Mail send Successfully', 'Success')
} else { } else {
if (res.messgae) { if (res.messgae) {
toastr.error(res.messgae, 'ERROR') toastr.error(res.messgae, 'Error')
} else { } else {
toastr.error('Mail send failed', 'ERROR') toastr.error('Mail send failed', 'Error')
} }
} }
@ -3611,7 +3611,7 @@ function getInsurerBranchContacts(input){
$('.loader').fadeOut(); $('.loader').fadeOut();
$('.loader-mask').delay(350).fadeOut('slow'); $('.loader-mask').delay(350).fadeOut('slow');
if(res.status == false){ if(res.status == false){
toastr.warning(res.message, 'WARNING') toastr.warning(res.message, 'Warning')
}else{ }else{
appendInsurerContact(res.data) appendInsurerContact(res.data)
} }
@ -3770,7 +3770,7 @@ function getMailContent(id){
console.log(response); console.log(response);
$('#'+id).val(response.data) $('#'+id).val(response.data)
} else { } else {
toastr.error(response.message || 'Unable to fetch data', 'ERROR'); toastr.error(response.message || 'Unable to fetch data', 'Error');
} }
}, function(xhr, status, error) { }, function(xhr, status, error) {
console.error('Error fetching data:', error); console.error('Error fetching data:', error);
@ -5157,9 +5157,9 @@ function autoCaluculationForPremiumChildTable(input) {
console.log('Data sent successfully:', response); console.log('Data sent successfully:', response);
if (response.status == true) { if (response.status == true) {
toastr.success(response.message, 'SUCCESS'); toastr.success(response.message, 'Success');
} else { } else {
toastr.warning(response.message, 'WARNING'); toastr.warning(response.message, 'Warning');
} }
window.location.reload(); window.location.reload();
@ -5228,9 +5228,9 @@ function autoCaluculationForPremiumChildTable(input) {
console.log('Data sent successfully:', response); console.log('Data sent successfully:', response);
if (response.status == true) { if (response.status == true) {
toastr.success(response.message, 'SUCCESS'); toastr.success(response.message, 'Success');
} else { } else {
toastr.warning(response.message, 'WARNING'); toastr.warning(response.message, 'Warning');
} }
window.location.href = '<?= base_url('rfq/list/') ?>' + lead_id + '/' + 2; window.location.href = '<?= base_url('rfq/list/') ?>' + lead_id + '/' + 2;