@props(['product', 'showCategory' => false])
merge(['class' => 'flex h-full min-w-0 flex-col rounded-2xl border border-[#EEF1F6] bg-[#F7F8FB] p-2 shadow-[0_1px_2px_rgba(27,37,89,0.04)]']) }} >
@if ($product['discount']) -{{ $product['discount'] }}% @endif @if (! empty($product['image_path'])) @else @endif

@if (! empty($product['url'])) {{ $product['name'] }} @else {{ $product['name'] }} @endif

@if ($showCategory)

{{ \App\Support\StoreCatalog::categoryLabel($product['category']) }}

@endif
${{ number_format($product['price'], 2) }} @if ($product['old_price']) ${{ number_format($product['old_price'], 2) }} @endif