@props([ 'label' => 'RUT', 'wireModel' => null, 'required' => false, 'hint' => 'Formato: 12.345.678-9 o 12345678-9', 'placeholder' => '12.345.678-9', 'liveValidation' => true ]) @php $attributes = $attributes->merge([ 'icon' => 'o-identification', 'placeholder' => $placeholder, 'hint' => $hint . ($required ? '' : ' (opcional)'), ]); if ($required) { $attributes = $attributes->merge(['required' => true]); } @endphp