$value) { $key = $key + 1; // Calculate data counts per user for toggling rules // Cast to int — DB drivers may return branch ids as string or int $prePolicyCount = 0; if (!empty($pre_policy_data)) { foreach ($pre_policy_data as $p) { if (!empty($value['pre_hr_id']) && (int) $value['pre_branch_id'] === (int) $p['branch_id']) { $prePolicyCount++; } } } $postPolicyCount = 0; if (!empty($post_policy_data)) { foreach ($post_policy_data as $p) { if (!empty($value['post_hr_id']) && (int) $value['post_branch_id'] === (int) $p['branch_id']) { $postPolicyCount++; } } } $cdCount = !empty($post_cd_data) ? count($post_cd_data) : 0; ?>
> Pre enrollment
$policies) { $statusText = $policies['policy_status'] == 1 ? 'Active' : 'In-Active'; $statusClass = $policies['policy_status'] == 1 ? 'active' : 'inactive'; // if ( // in_array($policies['branch_id'].'-'.$policies['policy_no'], $listed_pre) // && // $value['pre_branch_id'] != $policies['branch_id'] // ) { // continue; // } else { // $listed_pre[] = $policies['branch_id'].'-'.$policies['policy_no']; // } if (empty($value['pre_hr_id']) || (int) $value['pre_branch_id'] !== (int) $policies['branch_id']) { continue; } ?>
>
> Active policies
$policies) { $statusText = $policies['policy_status'] == 1 ? 'Active' : 'In-Active'; $statusClass = $policies['policy_status'] == 1 ? 'active' : 'inactive'; // if( // in_array($policies['branch_id'].'-'.$policies['policy_no'] , $listed_post) // && // $value['post_branch_id'] != $policies['branch_id'] // ) // { // continue; // } // else // { // $listed_post[] = $policies['branch_id'].'-'.$policies['policy_no']; // } if (empty($value['post_hr_id']) || (int) $value['post_branch_id'] !== (int) $policies['branch_id']) { continue; } ?>
>   
> CD statement
$cd) { ?>
>
> Claims
> Insights

There is no HR data