native country select

This commit is contained in:
Benjamin Takats
2022-12-23 17:26:52 +01:00
parent abf5a5bb6a
commit 797ae37a3a
5 changed files with 298 additions and 21 deletions

View File

@@ -84,19 +84,13 @@
</nav>
</div>
<div class="max-w-sm text-lg text-gray-200 flex flex-row space-x-2">
<x-select
<x-native-select
label="{{ __('Change country') }}"
placeholder="{{ __('Change country') }}"
wire:model="c"
:clearable="false"
:searchable="true"
:async-data="route('api.countries.index')"
option-label="name"
option-value="code"
:template="[
'name' => 'user-option',
'config' => ['src' => 'flag']
]"
:options="$countries"
/>
<x-select
label="{{ __('Change language') }}"