@props(['name', 'label', 'preview' => null, 'accept' => 'image/*', 'hint' => null, 'removeName' => null]) {{-- Image upload with the current file as preview; removeName adds a "remove" box (the file is deleted on save). --}} @php($id = $attributes->get('id', $name)) @php($key = str_replace(['[', ']'], ['.', ''], $name))
{{ $hint }}
@endif @if ($removeName) @endif @error($key){{ $message }}
@enderror