@props([ 'label' => null, 'name' => null, 'error' => null, 'hint' => null, 'required' => false, 'disabled' => false, 'placeholder' => null, ]) @php $id = $attributes->get('id') ?? $name ?? 'select-' . uniqid(); $selectClasses = 'input appearance-none'; if ($error) { $selectClasses .= ' error'; } $selectClasses .= ' ' . ($attributes->get('class') ?? ''); // Icon positioning with RTL support $iconClasses = is_rtl() ? 'left-0 pl-3' : 'right-0 pr-3'; $inputPadding = is_rtl() ? 'pr-10' : 'pl-10'; $selectClasses .= ' ' . $inputPadding; @endphp
@if($label) @endif
@if($error)

{{ $error }}

@endif @if($hint && !$error)

{{ $hint }}

@endif