$employee) { $ci = 0; $tm_col_max_len[$ci] = max($tm_col_max_len[$ci], 1); $ci++; $tm_col_max_len[$ci] = max($tm_col_max_len[$ci], mb_strlen((string) ($key + 1))); $ci++; if ($tm_show_client_branch) { $cb = ($employee['client_short_name'] ?? '') . ' - ' . ($employee['client_branch_name'] ?? ''); $tm_col_max_len[$ci] = max($tm_col_max_len[$ci], mb_strlen($cb)); $ci++; } if ($tm_show_branch) { $tm_col_max_len[$ci] = max($tm_col_max_len[$ci], mb_strlen((string) ($employee['client_branch_name'] ?? ''))); $ci++; } $tm_col_max_len[$ci] = max($tm_col_max_len[$ci], mb_strlen((string) ($employee['name'] ?? ''))); $ci++; $tm_col_max_len[$ci] = max($tm_col_max_len[$ci], mb_strlen((string) ($employee['emp_code'] ?? ''))); $ci++; $tm_col_max_len[$ci] = max($tm_col_max_len[$ci], mb_strlen((string) ($employee['relationship'] ?? ''))); $ci++; $tm_col_max_len[$ci] = max($tm_col_max_len[$ci], mb_strlen((string) ($employee['gender'] ?? ''))); $ci++; $dobStr = ''; if (!empty($employee['dob'])) { $dobStr = date('d/M/Y', strtotime((string) $employee['dob'])); } $tm_col_max_len[$ci] = max($tm_col_max_len[$ci], mb_strlen($dobStr)); $ci++; $tm_col_max_len[$ci] = max($tm_col_max_len[$ci], mb_strlen((string) ($employee['policy_count'] ?? ''))); $ci++; $tm_col_max_len[$ci] = max($tm_col_max_len[$ci], 4); } } $tm_col_min_px = array_fill(0, $tm_col_count, 80); $tm_col_max_px = array_fill(0, $tm_col_count, 360); $tm_col_min_px[0] = 44; $tm_col_max_px[0] = 56; $tm_col_min_px[1] = 48; $tm_col_max_px[1] = 72; $tm_col_min_px[$tm_col_count - 2] = 120; $tm_col_max_px[$tm_col_count - 2] = 400; $tm_col_min_px[$tm_col_count - 1] = 72; $tm_col_max_px[$tm_col_count - 1] = 96; $tm_col_width_px = nhance_dt_column_widths_px($tm_header_labels, $tm_col_max_len, $tm_col_min_px, $tm_col_max_px); $pro_rata_total = 0; $gst_total = 0; ?>
$employee) { ?> - --> */ ?> */ ?>
  S.No  Client/Branch  Branch  Name  EMP Code  Relationship  Gender  Date of Birth  Existing Policy Count  Action 
if(isset($employee['status'])){ switch ($employee['status']) { case 'draft': echo '' . $employee['status'] . ''; break; case 'active': echo '' . $employee['status'] . ''; break; case 'inactive': echo '' . $employee['status'] . ''; break; case 'expired': echo '' . $employee['status'] . ''; break; case 'enrolled': echo '' . $employee['status'] . ''; break; default: echo $employee['status']; break; } }