1
0
Fork 0

resources/views/partials/navigation.blade.php: add language links.

This commit is contained in:
Henrik Hautakoski 2021-07-30 13:26:35 +02:00
parent 40b9cabff1
commit f5252052ff

View file

@ -26,6 +26,15 @@
@else
<a href="{{ route('auth.login') }}">{{ __('Login') }}</a>
@endauth
<div class="flex space-x-2">
@foreach(config('lang') as $locale => $name)
<a href="{{ route('locale.store', ['locale' => $locale ]) }}" title="{{ $name }}">
<x-icon class="w-6 h-6" name="flags.{{ $locale }}" />
</a>
@endforeach
</div>
</div>
</div>
</nav>