@props([ 'label' => null, 'name' => null, 'required' => false, 'hint' => null, 'span' => null, ]) @php $hasError = $name && $errors->has($name); @endphp
merge(['class' => 'field'.($span ? ' col-'.$span : '')]) }}> @if ($label) @endif {{ $slot }} @if ($hint)

{{ $hint }}

@endif @if ($hasError)

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

@endif