@php $locales = [ 'ro' => ['label' => 'RO', 'full' => 'Română'], 'ru' => ['label' => 'RU', 'full' => 'Русский'], 'en' => ['label' => 'EN', 'full' => 'English'], ]; $current = app()->getLocale(); $style = $style ?? 'chip'; $back = urlencode(request()->fullUrl()); @endphp @if ($style === 'chip')
@foreach ($locales as $code => $meta) {{ $meta['label'] }} @endforeach
@else
@foreach ($locales as $code => $meta) {{ $meta['label'] }} @endforeach
@endif