{{ $pageData['title'] }}
{{ $pageData['banner_title'] }}
{{ $pageData['banner_subtitle'] }}
@php $currentSlug = strtolower($slug ?? 'electronics'); // Dynamic category data configurations $categoryConfigs = [ 'handbags' => [ 'title' => 'Luxury Handbags & Fashion', 'breadcrumb' => 'Handbags', 'banner_tag' => 'EXCLUSIVE COLLECTION', 'banner_title' => 'Up to 35% Off on Designer Handbags', 'banner_subtitle' => 'Discover authentic leather bags & luxury fashion accessories.', 'banner_btn' => 'Shop Handbags', 'banner_img' => 'https://images.unsplash.com/photo-1584917865442-de89df76afd3?q=80&w=800&auto=format&fit=crop', 'subcategories' => [ ['name' => 'Leather Totes', 'count' => 18], ['name' => 'Crossbody Bags', 'count' => 12], ['name' => 'Shoulder Bags', 'count' => 9], ['name' => 'Clutches & Evening', 'count' => 6] ], 'brands' => ['Michael Kors', 'Coach', 'Gucci', 'Prada', 'Louis Vuitton'], 'products' => [ [ 'badge' => '-25%', 'badge_type' => 'discount', 'brand' => 'MICHAEL KORS', 'title' => 'Jet Set Large Leather Shoulder Tote Bag', 'stars' => 5, 'reviews' => '142', 'price' => 'Rs. 78,500', 'old_price' => 'Rs. 104,500', 'image' => 'https://images.unsplash.com/photo-1584917865442-de89df76afd3?q=80&w=600&auto=format&fit=crop' ], [ 'badge' => 'HOT', 'badge_type' => 'hot', 'brand' => 'COACH', 'title' => 'Tabby Shoulder Bag 26 in Polished Pebble Leather', 'stars' => 5, 'reviews' => '89', 'price' => 'Rs. 125,000', 'old_price' => '', 'image' => 'https://images.unsplash.com/photo-1590874103328-eac38a683ce7?q=80&w=600&auto=format&fit=crop' ], [ 'badge' => '-15%', 'badge_type' => 'discount', 'brand' => 'GUCCI', 'title' => 'GG Marmont Small Matelassé Shoulder Bag', 'stars' => 5, 'reviews' => '215', 'price' => 'Rs. 450,000', 'old_price' => 'Rs. 529,000', 'image' => 'https://images.unsplash.com/photo-1548036328-c9fa89d128fa?q=80&w=600&auto=format&fit=crop' ], [ 'badge' => '', 'badge_type' => '', 'brand' => 'PRADA', 'title' => 'Prada Cleo Brushed Leather Shoulder Bag', 'stars' => 5, 'reviews' => '64', 'price' => 'Rs. 680,000', 'old_price' => '', 'image' => 'https://images.unsplash.com/photo-1566150476483-6232662c095c?q=80&w=600&auto=format&fit=crop' ] ] ], 'watches' => [ 'title' => 'Luxury Watches & Timepieces', 'breadcrumb' => 'Watches', 'banner_tag' => 'LIMITED EDITION', 'banner_title' => 'Up to 30% Off on Premium Timepieces', 'banner_subtitle' => 'Elegance on your wrist crafted by master watchmakers.', 'banner_btn' => 'Shop Watches', 'banner_img' => 'https://images.unsplash.com/photo-1523275335684-37898b6baf30?q=80&w=800&auto=format&fit=crop', 'subcategories' => [ ['name' => 'Automatic Watches', 'count' => 22], ['name' => 'Chronographs', 'count' => 14], ['name' => 'Smartwatches', 'count' => 18], ['name' => 'Dress Watches', 'count' => 11] ], 'brands' => ['Rolex', 'Seiko', 'Fossil', 'Casio', 'Tag Heuer'], 'products' => [ [ 'badge' => 'HOT', 'badge_type' => 'hot', 'brand' => 'SEIKO', 'title' => 'Seiko Presage Automatic Blue Dial Leather Watch', 'stars' => 5, 'reviews' => '176', 'price' => 'Rs. 135,000', 'old_price' => '', 'image' => 'https://images.unsplash.com/photo-1523275335684-37898b6baf30?q=80&w=600&auto=format&fit=crop' ], [ 'badge' => '-20%', 'badge_type' => 'discount', 'brand' => 'FOSSIL', 'title' => 'Fossil Grant Chronograph Dark Brown Leather Watch', 'stars' => 4, 'reviews' => '310', 'price' => 'Rs. 42,500', 'old_price' => 'Rs. 53,000', 'image' => 'https://images.unsplash.com/photo-1524805444758-089113d48a6d?q=80&w=600&auto=format&fit=crop' ], [ 'badge' => '', 'badge_type' => '', 'brand' => 'CASIO', 'title' => 'G-Shock Steel Series Bluetooth Tough Solar Watch', 'stars' => 5, 'reviews' => '420', 'price' => 'Rs. 89,000', 'old_price' => '', 'image' => 'https://images.unsplash.com/photo-1533139502658-0198f920d8e8?q=80&w=600&auto=format&fit=crop' ], [ 'badge' => '-10%', 'badge_type' => 'discount', 'brand' => 'TAG HEUER', 'title' => 'Tag Heuer Formula 1 Chronograph Steel Watch', 'stars' => 5, 'reviews' => '82', 'price' => 'Rs. 695,000', 'old_price' => 'Rs. 772,000', 'image' => 'https://images.unsplash.com/photo-1522335789203-aabd1fc54bc9?q=80&w=600&auto=format&fit=crop' ] ] ], 'electronics' => [ 'title' => 'Electronics & Smart Gadgets', 'breadcrumb' => 'Electronics', 'banner_tag' => 'LIMITED TIME OFFER', 'banner_title' => 'Up to 25% Off on Premium Audio', 'banner_subtitle' => 'Elevate your sound experience with top brands.', 'banner_btn' => 'Shop Audio', 'banner_img' => 'https://images.unsplash.com/photo-1546435770-a3e426bf472b?q=80&w=800&auto=format&fit=crop', 'subcategories' => [ ['name' => 'Audio', 'count' => 24], ['name' => 'Wearables', 'count' => 16], ['name' => 'Mobile Accessories', 'count' => 8] ], 'brands' => ['Sony', 'Apple', 'Samsung', 'JBL', 'Bose'], 'products' => [ [ 'badge' => '-15%', 'badge_type' => 'discount', 'brand' => 'SONY', 'title' => 'Sony WH-1000XM5 Wireless Headphones', 'stars' => 5, 'reviews' => '128', 'price' => 'Rs. 98,500', 'old_price' => 'Rs. 115,000', 'image' => 'https://images.unsplash.com/photo-1505740420928-5e560c06d30e?q=80&w=600&auto=format&fit=crop' ], [ 'badge' => '', 'badge_type' => '', 'brand' => 'APPLE', 'title' => 'Apple Watch Series 9 GPS 45mm', 'stars' => 5, 'reviews' => '342', 'price' => 'Rs. 145,000', 'old_price' => '', 'image' => 'https://images.unsplash.com/photo-1523275335684-37898b6baf30?q=80&w=600&auto=format&fit=crop' ], [ 'badge' => 'HOT', 'badge_type' => 'hot', 'brand' => 'SAMSUNG', 'title' => 'Samsung Galaxy Buds2 Pro', 'stars' => 4, 'reviews' => '88', 'price' => 'Rs. 42,000', 'old_price' => '', 'image' => 'https://images.unsplash.com/photo-1590658268037-6bf12165a8df?q=80&w=600&auto=format&fit=crop' ], [ 'badge' => '', 'badge_type' => '', 'brand' => 'JBL', 'title' => 'JBL Flip 6 Portable Bluetooth Speaker', 'stars' => 5, 'reviews' => '210', 'price' => 'Rs. 35,500', 'old_price' => '', 'image' => 'https://images.unsplash.com/photo-1608043152269-423dbba4e7e1?q=80&w=600&auto=format&fit=crop' ] ] ], 'deals' => [ 'title' => 'Special Deals & Mega Savings', 'breadcrumb' => 'Special Deals', 'banner_tag' => 'FLASH SALE', 'banner_title' => 'Save Up to 40% Across All Categories', 'banner_subtitle' => 'Unbeatable prices on electronics, fashion and watches.', 'banner_btn' => 'Shop Deals', 'banner_img' => 'https://images.unsplash.com/photo-1607082348824-0a96f2a4b9da?q=80&w=800&auto=format&fit=crop', 'subcategories' => [ ['name' => 'Flash Deals', 'count' => 30], ['name' => 'Clearance', 'count' => 15], ['name' => 'Bundle Offers', 'count' => 10] ], 'brands' => ['Sony', 'Apple', 'Samsung', 'Michael Kors', 'Seiko'], 'products' => [ [ 'badge' => '-40%', 'badge_type' => 'discount', 'brand' => 'JBL', 'title' => 'JBL Flip 6 Portable Waterproof Speaker', 'stars' => 5, 'reviews' => '210', 'price' => 'Rs. 29,250', 'old_price' => 'Rs. 45,000', 'image' => 'https://images.unsplash.com/photo-1608043152269-423dbba4e7e1?q=80&w=600&auto=format&fit=crop' ], [ 'badge' => '-35%', 'badge_type' => 'discount', 'brand' => 'SONY', 'title' => 'Sony WH-1000XM5 Wireless Headphones', 'stars' => 5, 'reviews' => '128', 'price' => 'Rs. 88,750', 'old_price' => 'Rs. 125,000', 'image' => 'https://images.unsplash.com/photo-1584917865442-de89df76afd3?q=80&w=600&auto=format&fit=crop' ] ] ] ]; $pageData = $categoryConfigs[$currentSlug] ?? $categoryConfigs['handbags']; // Real database products mapping if (isset($dbProducts) && count($dbProducts) > 0) { $dbDisplayProducts = []; foreach ($dbProducts as $p) { $imgSrc = 'https://images.unsplash.com/photo-1548036328-c9fa89d128fa?q=80&w=600&auto=format&fit=crop'; if ($p->primaryImage && $p->primaryImage->path) { $imgSrc = asset('storage/' . $p->primaryImage->path); } elseif ($p->images && count($p->images) > 0) { $lastImg = $p->images->last(); if ($lastImg && $lastImg->path) { $imgSrc = asset('storage/' . $lastImg->path); } } $dbDisplayProducts[] = [ 'id' => $p->id, 'slug' => $p->slug, 'badge' => $p->discount_price ? 'SALE' : 'NEW', 'badge_type' => 'discount', 'brand' => $p->brand ? strtoupper($p->brand->name) : 'NOKO', 'title' => $p->title, 'stars' => 5, 'reviews' => rand(15, 120), 'price' => 'LKR ' . number_format($p->price), 'old_price' => $p->discount_price ? 'LKR ' . number_format($p->discount_price) : '', 'image' => $imgSrc ]; } $pageData['products'] = array_merge($dbDisplayProducts, $pageData['products']); } @endphp
{{ $pageData['banner_subtitle'] }}