<div class="flex pt-8 sm:justify-start sm:pt-0">
    @php
        $available_locales = Config::get('app.available_locales');

    @endphp
    @foreach($available_locales as $locale_name => $available_locale)
        <a class="dropdown-item preview-item" href="{{ url('lang/'.$available_locale) }}">
            <div class="preview-item-content flex-grow">
                <p class="font-weight-light small-text text-black mb-0 pr-5"><i class="fi fi-{{$available_locale=='en' ? 'gb':$available_locale}} flag-icon-squared mx-0 mr-2 rounded-25 "></i>{{ __('login.'.$available_locale) }}</p>
            </div>
        </a>
    @endforeach
</div>
