@extends('layouts.public') @section('title', 'UsedStore.ca | Buy, Sell & Services in Canada') @section( 'meta_description', 'Buy and sell used clothes, shoes, bags, accessories and professional services across Canada.' ) @section('content') @php $lang = session('locale', 'en'); $translations = [ 'en' => [ 'page_title' => 'Used Store - Buy & Sell Used Clothes', 'meta_description' => 'Buy and sell quality used clothes and local services in Canada.', 'categories' => 'Categories', 'products' => 'Products', 'blog' => 'Blog', 'why_us' => 'Why Us', 'contact' => 'Contact', 'login' => 'Login', 'dashboard' => 'Dashboard', 'start_selling' => 'Start Selling', 'sustainable' => '♻ Sustainable Fashion Marketplace', 'hero_title_1' => 'Sell Your Clothes.', 'hero_title_2' => 'Find Your Style.', 'hero_description' => 'Upload clothes, photos and videos, offer clothing services, manage your listings, and connect with buyers through a modern marketplace.', 'start_selling_now' => 'Start Selling Now', 'browse_products' => 'Browse Products', 'premium_listings' => 'Premium Listings', 'premium_description' => 'Photos, videos, prices, sizes, services and seller contact', 'explore_collections' => '✦ EXPLORE CATEGORIES', 'shop_by_category' => 'Shop by Category', 'category_description' => 'Browse real products and services by category.', 'men' => 'Men', 'men_description' => 'Stylish & Modern', 'women' => 'Women', 'women_description' => 'Trendy & Elegant', 'kids' => 'Kids', 'kids_description' => 'Fun & Comfortable', 'shoes' => 'Shoes', 'shoes_description' => 'Sporty & Casual', 'bags' => 'Bags', 'bags_description' => 'Classy & Premium', 'accessories' => 'Accessories', 'accessories_description' => 'Details Matter', 'services' => 'Services', 'services_description' => 'Tailoring, repairs and clothing care', 'items_available' => 'items available', 'services_available' => 'services available', 'secure' => '100% Secure', 'secure_description' => 'Safe marketplace', 'fast_contact' => 'Fast Contact', 'fast_contact_description' => 'Phone and WhatsApp', 'eco_friendly' => 'Eco Friendly', 'eco_description' => 'Sustainable fashion', 'best_quality' => 'Best Quality', 'quality_description' => 'Real seller listings', 'updated' => '🔥 NEW LISTINGS', 'fresh_clothes' => 'Fresh Products & Services', 'fresh_description' => 'Real listings from sellers. New products and services are added regularly.', 'no_image' => 'No Image', 'available' => 'Available', 'sold' => 'Sold', 'size' => 'Size', 'view_product' => 'View Listing', 'no_products' => 'No listings yet', 'no_products_description' => 'Add your first product or service now.', 'add_product' => '+ Add Listing', 'why_title' => 'Built for sellers, buyers and service providers.', 'why_description' => 'Users can upload products, videos and services, manage listings, and contact sellers directly.', 'feature_photo' => 'Fast photo upload', 'feature_video' => 'Video and YouTube support', 'feature_mobile' => 'Mobile friendly', 'feature_dashboard' => 'Seller dashboard', 'feature_secure' => 'Secure login', 'feature_contact' => 'Phone and WhatsApp contact', 'cta_title' => 'Start selling products or offering services today.', 'cta_description' => 'Publish listings, connect with buyers and manage everything from one dashboard.', 'create_account' => 'Create Free Account', 'footer_description' => 'Modern second-hand marketplace for clothing and services.', 'all_rights' => 'All rights reserved.', 'menu' => 'Menu', ], 'fr' => [ 'page_title' => 'Used Store - Acheter et vendre des vêtements usagés', 'meta_description' => 'Achetez et vendez des vêtements usagés et découvrez des services locaux au Canada.', 'categories' => 'Catégories', 'products' => 'Produits', 'blog' => 'Blog', 'why_us' => 'Pourquoi nous', 'contact' => 'Contact', 'login' => 'Connexion', 'dashboard' => 'Tableau de bord', 'start_selling' => 'Commencer à vendre', 'sustainable' => '♻ Marché de mode durable', 'hero_title_1' => 'Vendez vos vêtements.', 'hero_title_2' => 'Trouvez votre style.', 'hero_description' => 'Publiez des vêtements, des photos et des vidéos, proposez des services, gérez vos annonces et communiquez avec les acheteurs.', 'start_selling_now' => 'Commencer à vendre', 'browse_products' => 'Voir les produits', 'premium_listings' => 'Annonces premium', 'premium_description' => 'Photos, vidéos, prix, tailles, services et coordonnées', 'explore_collections' => '✦ DÉCOUVRIR LES CATÉGORIES', 'shop_by_category' => 'Acheter par catégorie', 'category_description' => 'Découvrez de vrais produits et services par catégorie.', 'men' => 'Hommes', 'men_description' => 'Élégant et moderne', 'women' => 'Femmes', 'women_description' => 'Tendance et élégant', 'kids' => 'Enfants', 'kids_description' => 'Amusant et confortable', 'shoes' => 'Chaussures', 'shoes_description' => 'Sportif et décontracté', 'bags' => 'Sacs', 'bags_description' => 'Élégant et haut de gamme', 'accessories' => 'Accessoires', 'accessories_description' => 'Les détails comptent', 'services' => 'Services', 'services_description' => 'Retouches, réparations et entretien', 'items_available' => 'articles disponibles', 'services_available' => 'services disponibles', 'secure' => '100 % sécurisé', 'secure_description' => 'Marché sécuritaire', 'fast_contact' => 'Contact rapide', 'fast_contact_description' => 'Téléphone et WhatsApp', 'eco_friendly' => 'Écoresponsable', 'eco_description' => 'Mode durable', 'best_quality' => 'Meilleure qualité', 'quality_description' => 'Annonces de vrais vendeurs', 'updated' => '🔥 NOUVELLES ANNONCES', 'fresh_clothes' => 'Produits et services récents', 'fresh_description' => 'De vraies annonces publiées par les vendeurs. De nouveaux produits et services sont ajoutés régulièrement.', 'no_image' => 'Aucune image', 'available' => 'Disponible', 'sold' => 'Vendu', 'size' => 'Taille', 'view_product' => 'Voir l’annonce', 'no_products' => 'Aucune annonce disponible', 'no_products_description' => 'Ajoutez votre premier produit ou service maintenant.', 'add_product' => '+ Ajouter une annonce', 'why_title' => 'Conçu pour les vendeurs, les acheteurs et les fournisseurs de services.', 'why_description' => 'Les utilisateurs peuvent publier des produits, des vidéos et des services, gérer leurs annonces et contacter les vendeurs.', 'feature_photo' => 'Ajout rapide de photos', 'feature_video' => 'Vidéos et liens YouTube', 'feature_mobile' => 'Compatible mobile', 'feature_dashboard' => 'Tableau de bord vendeur', 'feature_secure' => 'Connexion sécurisée', 'feature_contact' => 'Contact par téléphone et WhatsApp', 'cta_title' => 'Commencez à vendre ou à offrir vos services dès aujourd’hui.', 'cta_description' => 'Publiez vos annonces, communiquez avec les acheteurs et gérez tout depuis un seul tableau de bord.', 'create_account' => 'Créer un compte gratuitement', 'footer_description' => 'Marché moderne de vêtements d’occasion et de services.', 'all_rights' => 'Tous droits réservés.', 'menu' => 'Menu', ], ]; $t = $translations[$lang] ?? $translations['en']; $categories = [ [ 'name' => $t['men'], 'description' => $t['men_description'], 'value' => 'Men', 'image' => asset('images/home/photo-1596755094514-f87e34085b2c.png'), 'class' => 'blue', 'icon' => '👔', ], [ 'name' => $t['women'], 'description' => $t['women_description'], 'value' => 'Women', 'image' => asset('images/home/photo-1525507119028-ed4c629a60a3.png'), 'class' => 'pink', 'icon' => '👗', ], [ 'name' => $t['kids'], 'description' => $t['kids_description'], 'value' => 'Kids', 'image' => asset('images/home/photo-1503919545889-aef636e10ad4.png'), 'class' => 'yellow', 'icon' => '🧸', ], [ 'name' => $t['shoes'], 'description' => $t['shoes_description'], 'value' => 'Shoes', 'image' => asset('images/home/photo-1549298916-b41d501d3772.png'), 'class' => 'green', 'icon' => '👟', ], [ 'name' => $t['bags'], 'description' => $t['bags_description'], 'value' => 'Bags', 'image' => asset('images/home/photo-1594223274512-ad4803739b7c.png'), 'class' => 'purple', 'icon' => '👜', ], [ 'name' => $t['accessories'], 'description' => $t['accessories_description'], 'value' => 'Accessories', 'image' => asset('images/home/photo-1523275335684-37898b6baf30.png'), 'class' => 'orange', 'icon' => '⌚', ], [ 'name' => $t['services'], 'description' => $t['services_description'], 'value' => 'Services', 'image' => asset('services.jpg'), 'class' => 'cyan', 'icon' => '✂️', ], ]; @endphp {{ $t['page_title'] }} @vite(['resources/css/app.css', 'resources/js/app.js'])
{{ $t['sustainable'] }}

{{ $t['hero_title_1'] }} {{ $t['hero_title_2'] }}

{{ $t['hero_description'] }}

{{ $t['premium_listings'] }}

{{ $t['premium_listings'] }}

{{ $t['premium_description'] }}

{{ $t['explore_collections'] }}

{{ $t['shop_by_category'] }}

{{ $t['category_description'] }}

@foreach($categories as $category) @php $realCount = (int) ($categoryCounts[$category['value']] ?? 0); $countLabel = $category['value'] === 'Services' ? $t['services_available'] : $t['items_available']; @endphp
{{ $category['icon'] }} {{ number_format($realCount) }}
{{ $category['name'] }}

{{ $category['name'] }}

{{ $category['description'] }}

{{ number_format($realCount) }} {{ $countLabel }} →
@endforeach
🛡{{ $t['secure'] }}{{ $t['secure_description'] }}
💬{{ $t['fast_contact'] }}{{ $t['fast_contact_description'] }}
🌿{{ $t['eco_friendly'] }}{{ $t['eco_description'] }}
⭐{{ $t['best_quality'] }}{{ $t['quality_description'] }}
{{ $t['updated'] }}

{{ $t['fresh_clothes'] }}

{{ $t['fresh_description'] }}

@forelse($products as $product) @php $productImages = is_array($product->images) ? $product->images : json_decode($product->images ?? '[]', true); $productImages = is_array($productImages) ? $productImages : []; $firstImage = $productImages[0] ?? null; $imageUrl = null; if ($firstImage) { if ( str_starts_with($firstImage, 'http://') || str_starts_with($firstImage, 'https://') ) { $imageUrl = $firstImage; } else { $imageUrl = asset('storage/' . ltrim($firstImage, '/')); } } $productPrice = $product->discount_price ?: $product->price; $isSold = strtolower($product->status ?? 'available') === 'sold'; @endphp
@if($imageUrl) @else
{{ $t['no_image'] }}
@endif {{ $product->condition ?? 'Good' }} {{ $isSold ? $t['sold'] : $t['available'] }}

{{ $product->title }}

{{ $product->category ?? '-' }} @if($product->category !== 'Services') • {{ $t['size'] }} {{ $product->size ?? '-' }} @endif

@if($product->discount_price) ${{ number_format($product->price, 2) }} @endif ${{ number_format($productPrice, 2) }} {{ $t['view_product'] }}
@empty

{{ $t['no_products'] }}

{{ $t['no_products_description'] }}

{{ auth()->check() ? $t['add_product'] : $t['create_account'] }}
@endforelse

{{ $t['why_title'] }}

{{ $t['why_description'] }}

@foreach([ $t['feature_photo'], $t['feature_video'], $t['feature_mobile'], $t['feature_dashboard'], $t['feature_secure'], $t['feature_contact'], ] as $feature)
✅ {{ $feature }}
@endforeach

{{ $t['cta_title'] }}

{{ $t['cta_description'] }}

{{ $t['create_account'] }}
@include('loding') @endsection