diff --git a/app/Views/policy_grid.php b/app/Views/policy_grid.php index 27c53f10..a86cdd40 100644 --- a/app/Views/policy_grid.php +++ b/app/Views/policy_grid.php @@ -102,7 +102,7 @@ } grid_html = ` -
+
@@ -124,7 +124,7 @@ } grid_html = ` -
+
@@ -149,7 +149,7 @@ } grid_html = ` -
+
@@ -184,7 +184,7 @@ } grid_html = ` -
+
@@ -217,7 +217,7 @@ } grid_html = ` -
+
@@ -252,7 +252,7 @@ } grid_html = ` -
+
@@ -287,7 +287,7 @@ grid_html = ` -
+
@@ -316,7 +316,7 @@ grid_html = ` -
+
@@ -345,7 +345,7 @@ } grid_html = ` -
+
@@ -378,7 +378,7 @@ grid_html = ` -
+
@@ -422,83 +422,7 @@ $('#si_or_bp').change(function(){ var selectedValue = $(this).val(); - var client_policy_id = $('#grid'); - $('#client_policy_id').val(client_policy_id); - console.log("client_policy_id", client_policy_id); - $('.loader').fadeIn(); - $('.loader-mask').fadeIn(); - - $.ajax({ - url: '' , - type: "GET", - data: { client_policy_id: client_policy_id}, - dataType: 'json', - success: function (res) { - $('#nameOfThePolicy').html(' - ' + res.policy_name); - $('#grid_emp_count').val(res.count); - - if (res.status === false) { - toastr.error(res.status); - return; - } - var policy_grid_id_value = ''; - if (res.premiumData && res.premiumData.length > 0 && res.premiumData[0].policy_grid_id) { - policy_grid_id_value = res.premiumData[0].policy_grid_id; - } - - $('#grid_content_input').empty(); - var policeGridOptionHTML = ''; - policeGridOptionHTML += ` `; - $.each(res.data, function(index, item) { - policeGridOptionHTML += ''; - }); - $('#grid').html(policeGridOptionHTML); - - - if (res.premiumData && res.premiumData.length > 0) { - addGridHTML(false, res.premiumData[0], res.premiumData[0].policy_grid_id, res.premiumData[0].si_or_bp); - - res.premiumData.shift(); - $.each(res.premiumData, function(index, item){ - if (item.si_or_bp == '1') { - appendGridtHtml('1_1_1_1', item); - }else{ - appendGridtHtml(item.policy_grid_id, item); - } - }); - - } else { - console.log("res.premiumData is undefined, null, or empty."); - } - - $('#bs-example-modal-lg').modal('show'); - - - $("#gpa_si").trigger("keyup"); - $("#basic_gpa_premium").trigger("keyup"); - - $("#sum_insured").trigger("keyup"); - $("#premium").trigger("keyup"); - - $("input[name='si[]']").trigger("keyup"); - $("input[name='premium[]']").trigger("keyup") - - setTimeout(function() { - $('.loader').fadeOut(); - $('.loader-mask').delay(350).fadeOut('slow'); - }, 1000); - }, - error: function (xhr, status, error) { - console.error(xhr.responseText); - console.error(status, error); - setTimeout(function() { - $('.loader').fadeOut(); - $('.loader-mask').delay(350).fadeOut('slow'); - toastr.warning('Something Wrong!', 'warning'); - }, 1000); - } - }); si_or_bp_two(selectedValue); @@ -913,7 +837,7 @@ else if(ui_type == '3'){ html = ` -
+
@@ -935,7 +859,7 @@ html =` -
+
@@ -959,7 +883,7 @@ html = ` -
+
@@ -987,7 +911,7 @@ }else if(ui_type == '6'){ html =` -
+
@@ -1017,7 +941,7 @@ }else if(ui_type == '7'){ html = ` -
+
@@ -1045,7 +969,7 @@ }else if(ui_type == '8'){ html = ` -
+
@@ -1069,7 +993,7 @@ }else if(ui_type == '9'){ html = ` -
+
@@ -1093,7 +1017,7 @@ }else if(ui_type == '10'){ html = ` -
+
@@ -1121,7 +1045,7 @@ }else if(ui_type == '11'){ html = ` -
+