@php $productSettings = $productSettings ?? (object)[]; $displaySales = ($productSettings->show_sales ?? true) && $product->display_sales; $effectivePrice = $product->effective_price; $isOnSale = $product->on_sale; $badge = $product->marketing_badge; $showBadges = $themeSettings->show_badges ?? true; $showRatings = $productSettings->show_ratings ?? true; $showReviewCount = $themeSettings->show_review_count ?? true; $showVendor = $productSettings->show_vendor_name ?? true; $showCompare = $themeSettings->show_compare_button ?? false; $badgeColors = [ 'Trending' => 'bg-rose-500/10 text-rose-600 dark:text-rose-400 border-rose-500/20', 'Hot' => 'bg-orange-500/10 text-orange-600 dark:text-orange-400 border-orange-500/20', 'Best Seller' => 'bg-amber-500/10 text-amber-600 dark:text-amber-400 border-amber-500/20', 'Editors Pick' => 'bg-indigo-500/10 text-indigo-600 dark:text-indigo-400 border-indigo-500/20', ]; @endphp
{{-- Thumbnail Container --}}
{{-- Badges --}} @if($showBadges)
@if($badge && strtolower($badge) !== 'none') {{ $badge }} @endif
@endif {{-- Instant Access Overlay --}} {{-- Image --}} @if($product->thumbnail_url) {{ $product->title }} @else
@endif
{{-- Content --}}
@if($showVendor && !($product->vendor?->isSuperAdmin()))
{{ substr($product->vendor?->name ?? 'A', 0, 1) }}
{{ $product->vendor?->name ?? 'Elite Author' }}
@endif @if($showRatings && $product->rating_average > 0)
{{ number_format($product->rating_average, 1) }} @if($showReviewCount) ({{ $product->reviews_count }}) @endif
@endif

{{ $product->title }}

{{ $product->category->name ?? 'Digital Product' }} {{ number_format($product->display_sales) }} Sales
{{-- Footer --}}
@if($isOnSale) ${{ number_format($product->price, 2) }} ${{ number_format($effectivePrice, 2) }} @else ${{ number_format($product->price, 2) }} @endif
@if($showCompare) @endif