@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')}} @else {{__('Download CV')}} @endif @endif