@php $images=$detail->attachments->filter(fn($a)=>in_array($a->mime_type,['image/jpeg','image/png','image/webp'],true))->values() ->map(fn($a)=>['url'=>route('reports.attachment',['attachment'=>$a->id,'preview'=>1]),'name'=>$a->original_name])->all(); @endphp
@if($images) @endif