diff --git a/app/Controllers/LeadsController.php b/app/Controllers/LeadsController.php index b12d4030..230c7688 100644 --- a/app/Controllers/LeadsController.php +++ b/app/Controllers/LeadsController.php @@ -3478,7 +3478,8 @@ class LeadsController extends BaseController if ($key == "claim_history") { - $formattedValue = $value == "1" ? "Yes" : "No"; + $formattedValue = $value == "1" ? "Yes" : "No"; + $formattedKey = "Claim Experience"; } // Kint::dump($formattedValue); @@ -3923,7 +3924,7 @@ class LeadsController extends BaseController ]); } - if (!empty($rfq_data['fin_years_claims'])) { + if (!empty($rfq_data['fin_years_claims']) && $claim_history == 1) { $claim_details = json_decode($rfq_data['fin_years_claims'], true) ?? [];