@props(['type' => 'text', 'name', 'label' => 'File', 'info', 'value' => '', 'readonly' => false]) @php $hasError = $errors->has($name); $onchange = $attributes->get('onchange'); $readonly = filter_var($readonly, FILTER_VALIDATE_BOOLEAN); @endphp
{{ $label }}
@if (!$readonly)
Max upload size: {{ \App\Helpers::bytesToString(\App\Helpers::getMaxUploadSize()) }}
@endif @if(isset($info) && $info !== '')
{{ $info }}
@endif @if ($hasError)
{{ $errors->first($name) }}
@endif
@if (!$readonly) @endif