@props(['name', 'label', 'type' => 'text', 'value' => null, 'hint' => null]) @php($fieldErrors = $errors->getBag($attributes->get('error-bag', 'default'))) @php($current = old($name, $value))
$type === 'password'])> has($name) || $hint) aria-describedby="{{ $fieldErrors->has($name) ? $name.'-error' : $name.'-hint' }}" @endif @if($fieldErrors->has($name)) aria-invalid="true" @endif {{ $attributes->except('error-bag')->class(['form-control', 'is-invalid' => $fieldErrors->has($name)]) }} required> @if ($type === 'password') @endif
@if($fieldErrors->has($name))

{{ $fieldErrors->first($name) }}

@elseif($hint)

{{ $hint }}

@endif