Add country flag to dropdown
This commit is contained in:
parent
fd8bf4f0f2
commit
d743554df6
|
@ -60,7 +60,7 @@
|
||||||
@foreach(Mcamara\LaravelLocalization\Facades\LaravelLocalization::getSupportedLocales() as $localeCode => $properties)
|
@foreach(Mcamara\LaravelLocalization\Facades\LaravelLocalization::getSupportedLocales() as $localeCode => $properties)
|
||||||
<li class="dropdown-item">
|
<li class="dropdown-item">
|
||||||
<a rel="alternate" hreflang="{{ $localeCode }}" href="{{ Mcamara\LaravelLocalization\Facades\LaravelLocalization::getLocalizedURL($localeCode, null, [], true) }}">
|
<a rel="alternate" hreflang="{{ $localeCode }}" href="{{ Mcamara\LaravelLocalization\Facades\LaravelLocalization::getLocalizedURL($localeCode, null, [], true) }}">
|
||||||
{{ $properties['native'] }}
|
<img src="https://www.countryflags.io/{{$localeCode}}/flat/64.png"> {{ $properties['native'] }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|
Loading…
Reference in New Issue