@php $pciIvEdit = canField('pc-forms', 'project_brief_descriptions', 'edit'); $pciIvSrc = $pcForm ?? null; $pciIvFill = $pciCrudDraftFill ?? []; $pciIvDateVal = static function ($val): string { if ($val === '' || $val === null) { return ''; } if (preg_match('/^\d{4}-\d{2}-\d{2}$/', (string) $val)) { return (string) $val; } try { return \Illuminate\Support\Carbon::parse($val)->format('Y-m-d'); } catch (\Throwable $e) { return ''; } }; $pciIvTreasury = old('pc_iv_treasury_account_structure'); if (! is_array($pciIvTreasury)) { $pciIvTreasury = $pciIvSrc?->pc_iv_treasury_account_structure ?? ($pciIvFill['pc_iv_treasury_account_structure'] ?? []); if (! is_array($pciIvTreasury)) { $pciIvTreasury = []; } } $pciIvLedger = old('pc_iv_reconciliation_ledger'); if (! is_array($pciIvLedger)) { $pciIvLedger = $pciIvSrc?->pc_iv_reconciliation_ledger ?? ($pciIvFill['pc_iv_reconciliation_ledger'] ?? []); if (! is_array($pciIvLedger)) { $pciIvLedger = []; } } $pciIvTreasuryRows = [ 'pla_assignment' => 'PLA / Assignment Account Structure', 'commercial_bank' => 'Commercial Bank Current Account System', 'interest_bearing' => 'Interest Bearing Saving Account / Other Modalities', ]; $pciIvAccountsWizardStep = (int) ($pciIvAccountsControlWizardStep ?? 6); $pciIvAccountsStepTitle = $pciIvAccountsControlStepTitle ?? '6. Project Accounts'; @endphp
{{-- Sub-section A: Structural Mode of Treasury Bank Account --}}
@foreach($pciIvTreasuryRows as $rowKey => $rowLabel) @php $rowData = is_array($pciIvTreasury[$rowKey] ?? null) ? $pciIvTreasury[$rowKey] : []; $rowActive = filter_var($rowData['active'] ?? false, FILTER_VALIDATE_BOOLEAN) || ($rowData['active'] ?? '') === '1' || ($rowData['active'] ?? '') === 1; @endphp @endforeach
Account Allocation Classification Mark (X) if Active Date of Initial Opening Lapsable / Non-Lapsable
{{ $rowLabel }} @if($pciIvEdit) @endif
{{-- Sub-section B: Regulatory Reconciliation Status Ledger --}}