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