@php use App\Support\MecReportPartDAttachments; $nameBase = (string) ($nameBase ?? ''); $dotBase = (string) ($dotBase ?? ''); $reportDraftIdForD = (int) ($reportDraftIdForD ?? old('report_draft_id', $reportDraftId ?? 0)); $mecReportIdForD = (int) ($mecReportIdForD ?? old('mec_workflow_report_id', $mecReportWorkflowId ?? 0)); $partDSection = (string) ($partDSection ?? ''); $partDRowIdx = (int) ($partDRowIdx ?? 0); $inputId = (string) ($inputId ?? ('report_part_d_attach_'.$partDSection.'_'.$partDRowIdx)); $attachRow = is_array($attachRow ?? null) ? $attachRow : []; if ($attachRow === [] && (isset($attachStorage) || isset($attachOriginal))) { $attachRow = [ 'attachment_storage' => $attachStorage ?? '', 'attachment_original_name' => $attachOriginal ?? '', 'attachments' => $attachments ?? null, ]; } $attachmentList = MecReportPartDAttachments::listFromRow($attachRow); @endphp
@once @push('scripts') @endpush @endonce