$file) { $batch_col_max_len[0] = max($batch_col_max_len[0], mb_strlen((string) ($key + 1))); $batch_col_max_len[1] = max($batch_col_max_len[1], mb_strlen((string) ($file['batch_code'] ?? ''))); $batch_col_max_len[2] = max($batch_col_max_len[2], mb_strlen((string) ($file['file_name'] ?? ''))); $batch_col_max_len[3] = max($batch_col_max_len[3], mb_strlen((string) ($file['client_short_name'] ?? ''))); $batch_col_max_len[4] = max($batch_col_max_len[4], mb_strlen((string) ($file['branch_name'] ?? ''))); $policy_display_len = trim( (isset($file['policy_type']) ? $file['policy_type'] : '') . ' - ' . (isset($file['policy_no']) ? $file['policy_no'] : '') ); $batch_col_max_len[5] = max($batch_col_max_len[5], mb_strlen($policy_display_len)); $batch_col_max_len[6] = max($batch_col_max_len[6], mb_strlen((string) ($file['event_type'] ?? ''))); $insLabel = $insurer_or_tpa[$file['insurer_or_tpa'] ?? ''] ?? ''; $batch_col_max_len[7] = max($batch_col_max_len[7], mb_strlen((string) $insLabel)); $actKey = $file['actions'] ?? ''; $actLabel = $import_or_export[$actKey] ?? ucfirst((string) $actKey); $batch_col_max_len[8] = max($batch_col_max_len[8], mb_strlen((string) $actLabel)); $countStr = ($file['count'] ?? null) === null ? '-' : (string) $file['count']; $batch_col_max_len[9] = max($batch_col_max_len[9], mb_strlen($countStr)); $batch_col_max_len[10] = max($batch_col_max_len[10], mb_strlen((string) format_indian_number($file['amount']))); $userTime = change_date_format($file['created_at'] ?? '', 'Y-m-d H:i:s', 'd/m/Y h:i a') . ' by ' . get_username($file['created_by'] ?? ''); $batch_col_max_len[11] = max($batch_col_max_len[11], mb_strlen($userTime)); $batch_col_max_len[12] = max($batch_col_max_len[12], mb_strlen((string) ($file['status'] ?? ''))); $batch_col_max_len[13] = max($batch_col_max_len[13], 2); } } $batch_col_min_px = [48, 72, 100, 72, 80, 120, 88, 96, 72, 56, 80, 160, 96, 52]; $batch_col_max_px = [64, 220, 480, 240, 240, 640, 200, 200, 140, 110, 160, 560, 320, 64]; $batch_col_width_px = []; for ($i = 0; $i < $batch_col_count; $i++) { $chars = max($batch_col_max_len[$i], mb_strlen($batch_header_labels[$i])); $px = (int) round($chars * 7.0 + 26); $batch_col_width_px[$i] = min( $batch_col_max_px[$i], max($batch_col_min_px[$i], $px) ); } ?>

Batch List

$file) { ?>
S.No  Batch Code  File Name  Client  Client Branch  Client Policy  Event Type  Insurer/ TPA  Action  Count  (₹)Amount  User/Time  Status  Action 
by       failed failed failed failed failed failed failed failed