{{__('common.View')}} {{__('assignment.Attachment')}}

{!! @$submitted->answer !!}
@php $std_file =$submitted->file; $ext =strtolower(str_replace('"]','',pathinfo($std_file, PATHINFO_EXTENSION))); $attached_file=str_replace('"]','',$std_file); $attached_file=str_replace('["','',$attached_file); $preview_files=['jpg','jpeg','png','heic','mp4','mov','mp3','mp4','pdf']; @endphp @if ($ext=='jpg' || $ext=='jpeg' || $ext=='png' || $ext=='heic') @elseif($ext=='mp4' || $ext=='mov') Your browser does not support HTML video. @elseif($ext=='mp3') Your browser does not support the audio element. @elseif($ext=='pdf') @endif @if (!in_array($ext,$preview_files))
{{$ext}} File Not Previewable.
@endif
{{-- --}} @php $set_filename=time().'_'.$std_file; @endphp @if (file_exists($attached_file)) {{__('common.Download')}} @endif {{-- {{route('download-uploaded-content-admin',$uploadedContent->id)}} --}}