@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

@if ($thumb) @elseif ($current) {{ $current->original_name }} @else No {{ $kind }} @endif

{{ $current?->original_name ?? 'Nothing selected' }}

@if (! empty($help))

{{ $help }}

@endif @if ($error)

{{ $error }}

@endif