@php use App\Helpers\EmpresaTurismoFileHelper; $currentPath = $currentPath ?? null; $linkName = $linkName ?? ($name . 'Link'); $currentLink = old($linkName, $currentLink ?? null); $downloadUrl = EmpresaTurismoFileHelper::publicUrl($currentPath); @endphp
@error($name) {{ $message }}
@enderror @if(!empty($description)) {{ $description }} @endif @if($downloadUrl)
{{ $downloadLabel ?? __('Documento anexado') }} — {{ __('baixar') }}
@endif
@error($linkName) {{ $message }} @enderror {{ __('Use quando o documento estiver hospedado externamente (Google Drive, etc.) em vez de upload.') }} @if($currentLink) @endif