@foreach ($regularExam->workstationAttachments() as $key => $file) @php $url = $regularExam->stationUrl('attachment', $key === 'legacy' ? [] : ['file' => $key]); $isImage = str_starts_with($file['mime'], 'image/'); @endphp
@if ($isImage) {{ $file['name'] }} @endif @if (($previewFiles ?? false) && $file['mime'] === 'application/pdf')
@endif
{{ $file['name'] }} @if (($withinForm ?? false) && $regularExam->type === 'ekg') @endif
@if (($previewFiles ?? false) && $isImage) @endif @endforeach