@once @push('stylesheets') @endpush @endonce @php $pciIiiBBnRemarks = $pciIiiBBottlenecks['remarks'] ?? []; if (! is_array($pciIiiBBnRemarks)) { $pciIiiBBnRemarks = []; } $pciIiiBBnOptions = app(\App\Services\PC\PcFormService::class)->pcIiiBBottleneckOptionLabels(); $pciIiiBLitigationEvidenceRaw = $pciIiiBBottlenecks['under_litigation_evidence'] ?? null; $pciIiiBLitigationEvidenceParsed = app(\App\Services\PC\PcFormService::class)->parsePcIiiRichTextColumn($pciIiiBLitigationEvidenceRaw); $pciIiiBLitigationAttRows = []; foreach ($pciIiiBLitigationEvidenceParsed['attachments'] as $f) { if (empty($f['path'])) { continue; } $pciIiiBLitigationAttRows[] = ['path' => $f['path'], 'title' => $f['name'] ?? basename((string) $f['path'])]; } @endphp
@foreach($pciIiiBBnOptions as $bnKey => $bnLabel) @php $bnChecked = in_array($bnKey, $pciIiiBSelectedBn, true); $bnRemarkVal = old('pc_iii_b_bottlenecks.remarks.'.$bnKey, $pciIiiBBnRemarks[$bnKey] ?? ''); @endphp
@if($bnKey === 'under_litigation')
@include('pc-forms.partials.pci-textarea-map-files', [ 'filesEdit' => $pciIiiBEdit, 'attachmentRows' => $pciIiiBLitigationAttRows, 'annexureRows' => [], 'attFieldName' => 'pc_iii_b_bottlenecks_under_litigation_evidence_attachments[]', 'annFieldName' => 'pc_iii_b_bottlenecks_under_litigation_evidence_annexures[]', 'uid' => 'pci-pc-iii-b-bn-litigation', 'pcForm' => $pcForm ?? null, ])
@endif
@endforeach