@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