#{{ $index + 1 }}
@php
$ext = pathinfo($certificate->file, PATHINFO_EXTENSION);
$fileUrl = asset('storage/' . $certificate->file);
@endphp
@if (in_array(strtolower($ext), ['jpg', 'jpeg', 'png', 'gif']))

@elseif(strtolower($ext) === 'pdf')
@else
@endif