@csrf
@foreach ($interview_questions as $question)
@if($question->upload_document)
@if($files && $files[$question->id] && !is_string($files[$question->id]) && ($files[$question->id]->getClientOriginalExtension() == "png" || $files[$question->id]->getClientOriginalExtension() == "jpg" || $files[$question->id]->getClientOriginalExtension() == "jpeg" ) && $files[$question->id]->temporaryUrl())
{{$files[$question->id]->getClientOriginalName()}}
#
@elseif($files && !is_string($files[$question->id]) && !is_string($files[$question->id]) instanceof Illuminate\Http\UploadedFile) id]) && isset($existing_files[$question->id]['file_path'])) @if($existing_files[$question->id]['type'] && $existing_files[$question->id]['type'] == 'media')
id]['file_path'])}}" width="136" height="136" alt="" class="object-cover object-center w-full h-full block" >
{{$existing_files[$question->id]['file_name']}}
#
@else {{--
id]['file_path'])}}" width="136" height="136" alt="" class="object-cover object-center w-full h-full block" >
{{$existing_files[$question->id]['file_name']}}
#
--}} @endif @else

#

Choose file

Allowed JPG, JPEG, PNG, PDF, DOC, DOCX . Max size of 2MB

@endif
@if ($errors->has('files.*')) {{ $errors->first('files.*') }} @endif @endif @endforeach