This commit is contained in:
Benjamin Takats
2023-01-28 21:51:25 +01:00
parent 9f153e7630
commit 4989619829

View File

@@ -113,23 +113,25 @@
</div> </div>
</div> </div>
<div class="flex space-x-2 justify-end w-full items-end"> <div class="flex space-x-2 justify-end w-full items-end">
<x-native-select @if(!str(request()->route()->getName())->contains('.view'))
label="{{ __('Change country') }}" <x-native-select
wire:model="c" label="{{ __('Change country') }}"
option-label="name" wire:model="c"
option-value="code" option-label="name"
:options="$countries" option-value="code"
/> :options="$countries"
<x-select />
label="{{ __('Change language') }}" <x-select
placeholder="{{ __('Change language') }}" label="{{ __('Change language') }}"
wire:model="l" placeholder="{{ __('Change language') }}"
:clearable="false" wire:model="l"
:searchable="true" :clearable="false"
:async-data="route('api.languages.index')" :searchable="true"
option-label="name" :async-data="route('api.languages.index')"
option-value="language" option-label="name"
/> option-value="language"
/>
@endif
@auth @auth
<div></div> <div></div>
@else @else