hide brand if no logo

This commit is contained in:
Bayu Lukman Yusuf 2026-02-24 16:30:55 +07:00
parent 2ffe527661
commit 7e544e2f30
1 changed files with 10 additions and 9 deletions

View File

@ -4,7 +4,7 @@
<div class="nav flex-nowrap justify-content-between gap-4 py-2">
@foreach ($brands as $key => $brand)
@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"
@ -13,6 +13,7 @@
</span>
<span class="d-block animate-target fw-semibold text-nowrap ms-1">{{ $brand->name }}</span>
</a>
@endif
@endforeach
</div>