@props([ 'name', 'label' => null, 'type' => 'text', 'value' => null, 'required' => false, 'help' => null, 'placeholder' => null, // A bootstrap-icons name, rendered inside the control. Optional: every // existing caller omits it and gets exactly the markup it had before. 'icon' => null, // Lets a caller close up the last row in a card without a wrapper div. 'spacing' => 'mb-3', ]) @php $id = $attributes->get('id', 'field-'.$name); $hasError = $errors->has($name); @endphp