only(['class', 'wire:key'])->class('relative') }} x-data="wireui_select({ @if ($attributes->wire('model')->value()) wireModel: @entangle($attributes->wire('model')), @endif })" x-props="{ asyncData: @toJs($asyncData), optionValue: @toJs($optionValue), optionLabel: @toJs($optionLabel), optionDescription: @toJs($optionDescription), hasSlot: @boolean($slot->isNotEmpty()), multiselect: @boolean($multiselect), searchable: @boolean($searchable), clearable: @boolean($clearable), readonly: @boolean($readonly || $disabled), placeholder: @toJs($placeholder), template: @toJs($template), }"> @if (app()->runningUnitTests())
{!! json_encode($optionsToArray()) !!}
@endif
@if ($label) @endif except(['class']) ->class(['pl-8' => $icon]) ->whereDoesntStartWith(['wire:model', 'type', 'wire:key']) }}>
@if ($clearable && !$readonly && !$disabled) @endif
@if ($hint) @endif
@isset ($beforeOptions)
attributes }}> {{ $beforeOptions }}
@endisset
@unless ($hideEmptyMessage)
{{ $emptyMessage ?? __('wireui::messages.empty_options') }}
@endunless @isset ($afterOptions)
attributes }}> {{ $afterOptions }}
@endisset