%PDF- %PDF-
Direktori : /www/loslex/production/resources/views/layouts/ |
Current File : /www/loslex/production/resources/views/layouts/langselector.blade.php |
<x-dropdown align="right" width="20"> <x-slot name="trigger"> <button class="inline-flex h-full items-center px-1 py-2 border border-transparent text-sm leading-4 font-medium rounded-md text-gray-500 dark:text-gray-400 bg-white dark:bg-gray-800 hover:text-gray-700 dark:hover:text-gray-300 focus:outline-none transition ease-in-out duration-150"> <img width="20" src="/assets/images/flags/{{App::getLocale()}}.svg" title="{{ Config::get('app.languages')[App::getLocale()] }}"/> <x-dropdown-arrow/> </button> </x-slot> <x-slot name="content"> @foreach (Config::get('app.languages') as $lang => $language) @if ($lang != App::getLocale()) <x-dropdown-link href="{{ route('lang.switch', $lang) }}"><img width="20" src="/assets/images/flags/{{ $lang }}.svg" title="{{ $language }}"/></x-dropdown-link> @endif @endforeach </x-slot> </x-dropdown>