@foreach ($regularExam->workstationAttachments() as $key => $file) @php $url = $regularExam->stationUrl('attachment', $key === 'legacy' ? [] : ['file' => $key]); $isImage = str_starts_with($file['mime'], 'image/'); @endphp