@props([ 'name', 'label', 'type' => 'text', 'value' => null, 'required' => false, 'placeholder' => ' ', ]) @php $id = $attributes->get('id', $name); $hasError = $errors->has($name); $inputClass = 'form-control' . ($hasError ? ' is-invalid' : ''); @endphp
only('class')->merge(['class' => 'chm-form-floating form-floating' . ($hasError ? ' is-invalid' : '') . ($value ? ' has-value' : '')]) }}> except(['class', 'id']) }} > @error($name)
{{ $message }}
@enderror