@php $current = app(\App\Support\MediaLibrary::class)->get($value ?? null); $thumb = $current && $current->isImage() ? $current->url(isset($current->variants['w600']) ? 'w600' : null) : null; $error = $error ?? $errors->first($name); @endphp
{{ $label }}@if (! empty($required)) (required)@endif
{{ $current?->original_name ?? 'Nothing selected' }}
{{ $help }}
@endif @if ($error){{ $error }}
@endif