@props([ 'name', 'label' => null, 'type' => 'text', 'value' => null, 'hint' => null, 'required' => false, ]) @php $id = $attributes->get('id', $name); $current = old($name, $value); $error = $errors->first($name); @endphp
only('class') }}> @if ($label) @endif except('class')->merge(['class' => 'form-input'.($error ? ' border-error' : '')]) }}> @if ($hint && ! $error)

{{ $hint }}

@endif @if ($error)

{{ $error }}

@endif