@props([ 'type' => 'text', 'clearValue' => true, 'name', 'autocomplete' => 'off', 'placeholder' => '', 'icon' => null, 'value' => '', 'focus' => '', 'autofocus' => false, 'errorsBag' => null, 'showErrorSpace' => true, 'maxLength' => null, 'disabled' => false, ]) @php $inputId = $attributes->get('id') ?? $name; $bag = $errorsBag ?? $errors ?? session('errors'); $hasError = $bag && $bag->has($name); @endphp