@if (count($groups) > 1)
    <span class="admin-list-language-chooser">
        <span>{{ trans('plugins/translation::translation.translations') }}: </span>
        @foreach ($groups as $language)
            @if (!in_array($language['locale'], [$group['locale']]))
                <span>
                    {!! language_flag($language['flag'], $language['name']) !!}
                    <a href="{{ route('translations.theme-translations', $language['locale'] == 'en' ? [] : ['ref_lang' => $language['locale']]) }}">{{ $language['name'] }}</a>
                </span>&nbsp;
            @endif
        @endforeach
        <input type="hidden" name="ref_lang" value="{{ request()->input('ref_lang') }}">
    </span>
@endif
