fix: emit no badge markup when no badge is ticked

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Doar Mihai
2026-10-17 15:58:47 +03:00
co-authored by Claude Sonnet 5.5
parent 9920fafab6
commit bf365d029f
4 changed files with 16 additions and 7 deletions
+1 -3
View File
@@ -54,9 +54,7 @@
<span>{{ $product->created_at->format('M j, Y') }}</span>
</div>
<div class="mt-3">
<x-product.badges :product="$product" />
</div>
<x-product.badges :product="$product" class="mt-3" />
@if($product->tags->isNotEmpty())
<div class="mt-3 flex flex-wrap gap-x-3 gap-y-1 text-sm text-gray-500 dark:text-gray-400">