diff --git a/app/Views/client_policy.php b/app/Views/client_policy.php index 6fd9d35..e208933 100755 --- a/app/Views/client_policy.php +++ b/app/Views/client_policy.php @@ -2301,7 +2301,7 @@ $(document).ready(function () { si_mapping = ` SI Mapping`; } - if(showExpired == false && checkDateStatus(item.policy_end_date) != 'Expired'){ + if(showExpired == false && checkDateStatus(item.policy_end_date) == 'Expired'){ policyTable += ` @@ -2360,11 +2360,11 @@ $(document).ready(function () { ${auto_si_menu} ${si_mapping}`; // Conditionally render the delete option based on the role - if (role != 3 && role != 4) { - policyTable += - ` - Delete`; - } + if (role != 3 && role != 4) { + policyTable += + ` + Delete`; + } policyTable += `