created_at)))); $rec = ! empty($row->record_date) ? date('d-M-Y', strtotime((string) $row->record_date)) : '-'; $vd_col_max_len[1] = max($vd_col_max_len[1], mb_strlen($rec)); $vd_col_max_len[2] = max($vd_col_max_len[2], mb_strlen(trim((string) ($row->unit ?? ' - ')))); $policyType = $row->policy_type ?? ''; $policyNo = $row->policy_no ?? ''; $policyCell = ($policyType || $policyNo) ? trim($policyType . ' - ' . $policyNo, ' -') : '-'; $vd_col_max_len[3] = max($vd_col_max_len[3], mb_strlen($policyCell)); $vd_col_max_len[4] = max($vd_col_max_len[4], mb_strlen(strip_tags((string) ($row->endorsement_no ?? '-')))); $subLabel = isset($subTypeOptions[$row->sub_type]) ? (string) $subTypeOptions[$row->sub_type] : ''; $vd_col_max_len[5] = max($vd_col_max_len[5], mb_strlen($subLabel)); $credit = ($row->transaction_type ?? '') === 'Credit' ? (string) ($row->amount ?? '-') : '-'; $debit = ($row->transaction_type ?? '') === 'Debit' ? (string) ($row->amount ?? '-') : '-'; $vd_col_max_len[6] = max($vd_col_max_len[6], mb_strlen($credit)); $vd_col_max_len[7] = max($vd_col_max_len[7], mb_strlen($debit)); $vd_col_max_len[8] = max($vd_col_max_len[8], mb_strlen((string) ($row->balance ?? ''))); $vd_col_max_len[9] = max($vd_col_max_len[9], mb_strlen((string) ($row->description ?? ''))); $vd_col_max_len[10] = max($vd_col_max_len[10], mb_strlen((string) ($row->username ?? ''))); } $vd_col_min_px = [120, 100, 72, 160, 110, 88, 150, 150, 170, 140, 100]; $vd_col_max_px = [200, 120, 120, 360, 160, 140, 180, 180, 220, 400, 200]; $vd_col_width_px = nhance_dt_column_widths_px($vd_header_labels, $vd_col_max_len, $vd_col_min_px, $vd_col_max_px); ?> name) ? $insurerName->name : ''); $depositBackUrl = base_url('client/deposit/' . (isset($clientData->id) ? $clientData->id : '')); ?>

Deposit Summary Of short_name?>

Deposits

total_credit?>

Consumed

total_withdraw?>

Refund

total_refund?>

Current Balance

balance?>

transaction_type == 'Credit'); $isDebitRow = ($row->transaction_type == 'Debit'); $creditAmount = $isCreditRow ? (float) $row->amount : 0; $debitAmount = $isDebitRow ? (float) $row->amount : 0; $hasAmtHistory = isset($row->new_amt) && trim((string) $row->new_amt) !== ''; $historyOldAmt = trim((string) ($row->old_amt ?? '-')) !== '' ? (string) $row->old_amt : '-'; $historyNewAmt = trim((string) ($row->new_amt ?? '-')) !== '' ? (string) $row->new_amt : '-'; $historyUpdatedBy = trim((string) ($row->amt_updated_by_name ?? '')) !== '' ? (string) $row->amt_updated_by_name : (!empty($row->amt_updated_by) ? ('User #' . $row->amt_updated_by) : '-'); $historyUpdatedAt = !empty($row->amt_updated_at) ? date('d/m/Y h:i A', strtotime((string) $row->amt_updated_at)) : '-'; ?>
Date Record Date Unit Policy Endorsement No Sub Type Credit Debit Balance Description User
created_at)); ?> record_date)? date('d-M-Y', strtotime($row->record_date)):'-' ?> unit ?? ' - '; ?> policy_type ?? ''; $policyNo = $row->policy_no ?? ''; if ($policyType || $policyNo) { echo trim($policyType . ' - ' . $policyNo, ' -'); } else { echo '-'; } ?> endorsement_no ?? '-'; ?> sub_type]) ? $subTypeOptions[$row->sub_type] : ''; ?>
>
>
balance; ?>
username; ?>