= 4) ? $year : $year - 1; $lastFiveYears = []; for ($i = 0; $i < 6; $i++) { $startYear = $currentFYStart - $i; $lastFiveYears[] = "{$startYear}-" . ($startYear + 1); } } $claims = ! empty($lead_edit_data['fin_years_claims_array']) ? $lead_edit_data['fin_years_claims_array'] : [['year' => '', 'claim_amount' => '', 'status' => '', 'policy_type' => '', 'date_of_loss' => '', 'cause_of_loss' => '']]; $leadType = (int) ($lead_edit_data['lead_type'] ?? 0); $showClaimsSection = in_array($leadType, [1, 2, 3], true); $claimHistoryLabel = $leadType === 1 ? 'Mortality Experience' : 'Claims Experience'; ?>
/>

$value) { $isNilClaimRow = ! empty($value['nil_claims']); ?>
>
>
>
>
>
>
>
x +