@php $url = ''; if(!empty($cv)){ $file = (new \Modules\Media\Models\MediaFile())->findById($cv->file_id); $url = asset('uploads/'.$file['file_path']); } @endphp @if($url) @if(setting_item('candidate_download_cv_required_login') && !auth()->check()) {{__('Download CV')}} @elseif((is_candidate() || !$row->enableDownloadCV()) && (!is_admin() && \Illuminate\Support\Facades\Auth::id() != $row->id)) {{__('Download CV')}} @else {{__('Download CV')}} @endif @endif