79 lines
3.9 KiB
PHP
79 lines
3.9 KiB
PHP
<div
|
|
data-te-modal-init
|
|
id="modalLanguage"
|
|
tabindex="-1"
|
|
aria-labelledby="modalLanguage"
|
|
aria-modal="true"
|
|
role="dialog"
|
|
class="fixed inset-0 z-[1055] hidden overflow-y-auto bg-black/60 backdrop-blur-sm"
|
|
>
|
|
<div data-te-modal-dialog-ref class="flex min-h-screen items-center justify-center p-4">
|
|
<div class="relative w-full max-w-2xl overflow-hidden rounded-2xl border border-neutral-200 bg-white shadow-2xl dark:border-neutral-700 dark:bg-neutral-900">
|
|
<!-- Header -->
|
|
<div class="sticky top-0 z-10 flex items-center justify-between border-b border-neutral-200 bg-white/90 px-6 py-4 backdrop-blur dark:border-neutral-700 dark:bg-neutral-900/90">
|
|
<div>
|
|
<h2
|
|
id="modalGenresLabel"
|
|
class="text-xl font-semibold text-neutral-900 dark:text-white"
|
|
>
|
|
Language
|
|
</h2>
|
|
|
|
<p class="mt-1 text-sm text-neutral-500 dark:text-neutral-400">
|
|
Select your preffered language of the website.
|
|
</p>
|
|
</div>
|
|
|
|
<button
|
|
type="button"
|
|
data-te-modal-dismiss
|
|
wire:click="revertFilters"
|
|
class="rounded-lg p-2 text-neutral-500 transition hover:bg-neutral-100 hover:text-black dark:hover:bg-neutral-800 dark:hover:text-white"
|
|
>
|
|
✕
|
|
</button>
|
|
</div>
|
|
|
|
<!--Modal body-->
|
|
<div class="relative p-4">
|
|
<form method="POST" action="{{ route('update.language') }}">
|
|
@csrf
|
|
|
|
<div class="pb-6">
|
|
<label class="mb-2 leading-tight text-gray-800 dark:text-gray-200 w-full" for="language">Select
|
|
Language:</label>
|
|
<select name="language" id="language"
|
|
class="block w-full text-sm text-gray-900 border border-gray-300 rounded-lg bg-gray-50 focus:ring-rose-800 focus:border-rose-900 dark:bg-neutral-900 dark:border-neutral-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-rose-800 dark:focus:border-rose-900">
|
|
<option value="en" @if ('en' == App::getLocale()) selected @endif>
|
|
English (en)
|
|
</option>
|
|
<option value="de" @if ('de' == App::getLocale()) selected @endif>
|
|
Deutsch (de)
|
|
</option>
|
|
<option value="fr" @if ('fr' == App::getLocale()) selected @endif>
|
|
Français (fr)
|
|
</option>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="sticky bottom-0 flex items-center justify-end gap-3 border-t border-neutral-200 bg-white/90 px-6 py-4 backdrop-blur dark:border-neutral-700 dark:bg-neutral-900/90">
|
|
<button
|
|
type="button"
|
|
data-te-modal-dismiss
|
|
class="rounded-xl border border-neutral-300 px-5 py-2.5 text-sm font-medium text-neutral-700 transition hover:bg-neutral-100 dark:border-neutral-600 dark:text-neutral-200 dark:hover:bg-neutral-800"
|
|
>
|
|
Cancel
|
|
</button>
|
|
<button
|
|
type="submit"
|
|
class="rounded-xl bg-rose-600 px-5 py-2.5 text-sm font-semibold text-white shadow-lg shadow-rose-600/20 transition hover:bg-rose-700"
|
|
>
|
|
Apply
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|