@props([ 'id' => null, 'label' => null, 'icon' => null, 'hint' => null, 'hintClass' => 'label-text-alt text-gray-400 py-1 pb-0', 'errorField' => null, 'errorClass' => 'text-red-500 label-text-alt p-1', 'omitError' => false, 'firstErrorOnly' => false, ]) @php $modelName = $attributes->whereStartsWith('wire:model')->first(); $errorFieldName = $errorField ?? $modelName; $id = $id == $modelName ? $modelName : "{$id}{$modelName}"; @endphp