{{-- x-input Props: - name: field name (required) - label: field label (required) - type: input type (default 'text') - value: current value (default old(name)) - required: bool (default false) - placeholder: string - hint: small help text shown under the field Shows the first validation error for the field automatically. --}} @props(['name', 'label', 'type' => 'text', 'value' => null, 'required' => false, 'placeholder' => null, 'hint' => null])
merge(['class' => 'form-control' . ($errors->has($name) ? ' is-invalid' : '')]) }}> @error($name)
{{ $message }}
@enderror @if($hint)
{{ $hint }}
@endif