@props(['type' => 'text', 'name' => '', 'label' => 'Files', 'info', 'value' => '', 'editor' => false]) @php $hasError = $errors->has($name); $onchange = $attributes->get('onchange'); $value = old($name, $value); $editor = filter_var($editor, FILTER_VALIDATE_BOOLEAN); @endphp @if($value !== '' || $editor === true)
@pushonce('scripts') @endpushonce @push('scripts') @endpush @endif