Update (composer)

Update (footer + navigation): Add checks to hide locale select if less than 2
This commit is contained in:
2023-07-26 09:58:48 +08:00
parent 039e7da6db
commit 2c42553599
3 changed files with 17 additions and 10 deletions

View File

@@ -30,6 +30,8 @@
<div class="col-md-5 offset-md-1 mb-3">
@if($country_locales->count() > 1)
<div class="dropdown mb-4">
<button class="btn btn-outline-primary dropdown-toggle" type="button" id="dropdownMenuSwitch"
data-bs-toggle="dropdown" aria-expanded="false">
@@ -45,6 +47,7 @@
@endforeach
</ul>
</div>
@endif
<form>
<h5>Subscribe to our newsletter</h5>

View File

@@ -15,12 +15,14 @@
</div>
<div class="offcanvas-body p-0">
@if($country_locales->count() > 1)
<div class="p-3">
<div class="dropdown d-grid">
<button class="btn btn-outline-primary dropdown-toggle" type="button" id="dropdownMenuSwitch"
data-bs-toggle="dropdown" aria-expanded="false">
{{ $current_country_locale->name }}
</button>
<ul class="dropdown-menu" aria-labelledby="dropdownMenuSwitch">
@foreach ($country_locales as $country_locale)
@if ($country_locale->id != $current_country_locale->id)
@@ -30,10 +32,12 @@
@endif
@endforeach
</ul>
</div>
</div>
<div class="border-bottom"></div>
@endif
<div class="p-3">
<ul class="navbar-nav justify-content-end flex-grow-1 pe-3">