@if(auth()->guest() || request()->routeIs('goodbye-deleted-user'))
@php $languages = Illuminate\Support\Facades\DB::table('languages')->orderBy('lang_code', 'asc')->get(); $supportedLocales = LaravelLocalization::getSupportedLocales(); // Sort the supported locales alphabetically by the language name uasort($supportedLocales, function ($a, $b) { return strcmp($a['native'], $b['native']); }); @endphp
@foreach ($supportedLocales as $localeCode => $properties) @php $language = $languages->firstWhere('lang_code', strtolower($localeCode)); @endphp @if ($language)
{{ $language->flag }} {{ Lang::get($language->name, [], $localeCode) }}
@endif @endforeach
@if (Route::has('login'))
@if (Route::has('register')) {{ __('Register') }} @endif {{ __('Log in') }}
@endif
@endif