@if (count($docs) > 0)
@foreach ($docs as $doc)
@php $ext = pathinfo($doc, PATHINFO_EXTENSION); @endphp
@if (in_array(strtolower($ext), ['jpg', 'jpeg', 'png', 'gif']))
@elseif (strtolower($ext) === 'pdf')
View
File
@endif
@endforeach
@else
No Document uploaded.
@endif