@foreach($languages as $language) @if (! is_in_admin() || (Auth::check() && Auth::user()->hasPermission($route['edit']))) @if ($language->lang_code == Language::getDefaultLocaleCode()) @else @endif @else @endif @endforeach