hide brand if no logo
This commit is contained in:
parent
2ffe527661
commit
7e544e2f30
|
|
@ -4,15 +4,16 @@
|
||||||
<div class="nav flex-nowrap justify-content-between gap-4 py-2">
|
<div class="nav flex-nowrap justify-content-between gap-4 py-2">
|
||||||
|
|
||||||
@foreach ($brands as $key => $brand)
|
@foreach ($brands as $key => $brand)
|
||||||
|
@if ($brand->image_url)
|
||||||
<a class="nav-link align-items-center animate-underline gap-2 p-0"
|
<a class="nav-link align-items-center animate-underline gap-2 p-0"
|
||||||
href="{{ route('product.index', ['filter[brand]' => $brand->id]) }}">
|
href="{{ route('product.index', ['filter[brand]' => $brand->id]) }}">
|
||||||
<span class="d-flex align-items-center justify-content-center bg-white border rounded-circle"
|
<span class="d-flex align-items-center justify-content-center bg-white border rounded-circle"
|
||||||
style="width: 40px; height: 40px">
|
style="width: 40px; height: 40px">
|
||||||
<img src="{{ $brand->image_url }}" width="30" alt="Image">
|
<img src="{{ $brand->image_url }}" width="30" alt="Image">
|
||||||
</span>
|
</span>
|
||||||
<span class="d-block animate-target fw-semibold text-nowrap ms-1">{{ $brand->name }}</span>
|
<span class="d-block animate-target fw-semibold text-nowrap ms-1">{{ $brand->name }}</span>
|
||||||
</a>
|
</a>
|
||||||
|
@endif
|
||||||
@endforeach
|
@endforeach
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue