$employee) { $end_col_max_len[0] = max($end_col_max_len[0], mb_strlen((string) ($key + 1))); $end_col_max_len[1] = max($end_col_max_len[1], mb_strlen(trim((string) ($employee['name'] ?? '')) . '( ' . trim((string) ($employee['emp_code'] ?? '')) . ' )')); $policyLine = (isset($employee['policy_type']) ? (string) $employee['policy_type'] : '') . ' - ' . (isset($employee['policy_no']) ? (string) $employee['policy_no'] : ''); $end_col_max_len[2] = max($end_col_max_len[2], mb_strlen($policyLine)); $end_col_max_len[3] = max($end_col_max_len[3], mb_strlen((string) ($employee['endorsement_id'] ?? ''))); $end_col_max_len[4] = max($end_col_max_len[4], mb_strlen((string) ($employee['insurer_short_name'] ?? ''))); $end_col_max_len[5] = max($end_col_max_len[5], mb_strlen((string) ($employee['remarks'] ?? ''))); $act = $employee['actions'] ?? ''; $actionLabel = $act === 'c' ? 'Correction' : ($act === 'si' ? 'SI Enhancement' : ($act === 'd' ? 'Deletion' : (string) $act)); $end_col_max_len[6] = max($end_col_max_len[6], mb_strlen($actionLabel)); $end_col_max_len[7] = max($end_col_max_len[7], mb_strlen((string) ($employee['status'] ?? ''))); $end_col_max_len[8] = max($end_col_max_len[8], 4); } $end_col_min_px = [48, 120, 160, 110, 120, 120, 120, 96, 52]; $end_col_max_px = [64, 280, 400, 200, 240, 360, 200, 160, 72]; $end_col_width_px = nhance_dt_column_widths_px($end_header_labels, $end_col_max_len, $end_col_min_px, $end_col_max_px); ?>
| S.No | Name/code | Policy name | Endorsement ID | Insurer name | Remarks | Endorsement Type | Status | Action |
|---|---|---|---|---|---|---|---|---|
| ( ) | - | ' . $employee['status'] . ''; } elseif ($employee['status'] == 'inprogress') { echo '' . $employee['status'] . ''; } elseif ($employee['status'] == 'complete') { echo '' . $employee['status'] . ''; } ?> |