@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); if($name === '') { $name = \Illuminate\Support\Str::random(8); } @endphp @if($value !== '' || $editor === true)

{{ $label }}

@if($editor)
Max upload size: {{ \App\Helpers::bytesToString(\App\Helpers::getMaxUploadSize()) }}
@endif @if(isset($info) && $info !== '')
{{ $info }}
@endif
@pushonce('scripts') @endpushonce @push('scripts') @endpush @endif