@extends('layouts.app') @section('title', 'Accueil') @section('content') {{-- ═══ HERO SLIDER ═══ --}}
{{-- ── Slides images ── --}} {{-- Decorative blobs --}}
{{-- ── Contenu des slides ── --}}
{{-- ── Flèches navigation ── --}} {{-- ── Indicateurs (dots) ── --}}
{{-- ── Barre de progression ── --}}
{{-- ═══ TICKER PROMOTIONS (affiché seulement si des offres existent) ═══ --}} @if($promotions->isNotEmpty())
{{-- Étiquette fixe --}}
Promotions
{{-- Contenu défilant --}}
@php $tickerItems = $promotions->map(fn($p) => ($p->discount_text ? '🔥 '.$p->discount_text.' — ' : '✨ ') . $p->title . ($p->subtitle ? ' · '.$p->subtitle : '') )->implode(' ⬥ '); @endphp {{-- Dupliqué 3× pour un défilement continu sans saut --}} @foreach([1,2,3] as $_) {{ $tickerItems }} @endforeach
@endif {{-- ═══ TRUST BADGES ═══ --}}
@foreach([ ['icon' => 'truck', 'color' => 'blue', 'label' => 'Livraison rapide', 'sub' => 'Partout en Algérie'], ['icon' => 'shield-alt', 'color' => 'green', 'label' => 'Produits garantis', 'sub' => 'Qualité certifiée'], ['icon' => 'headset', 'color' => 'amber', 'label' => 'Support 7j/7', 'sub' => 'À votre service'], ['icon' => 'undo', 'color' => 'purple', 'label' => 'Retour facile', 'sub' => '7 jours pour changer'], ] as $b)

{{ $b['label'] }}

{{ $b['sub'] }}

@endforeach
{{-- ═══ CATEGORIES ═══ --}} @if($categories->isNotEmpty())
Catalogue

Parcourez nos Catégories

Trouvez rapidement les accessoires mobiles dont vous avez besoin

@foreach($categories as $category)
@if($category->image_url) {{ $category->name }} @else
@endif
{{ $category->name }} @if($category->active_products_count > 0) {{ $category->active_products_count }} @endif
@endforeach
@endif {{-- ═══ FEATURED PRODUCTS ═══ --}} @if($featuredProducts->isNotEmpty())
Sélection

Produits Vedettes

Les meilleures ventes de la semaine

@foreach($featuredProducts as $product)
{{-- Image --}}
@if($product->image_url) {{ $product->name }} @else
@endif
{{-- Badges --}}
@if($product->old_price) -{{ $product->discount_percent }}% @endif @if($product->is_featured) ⭐ Vedette @endif
{{-- Quick view overlay --}}
Voir le produit
{{-- Info --}}

{{ $product->category->name ?? '' }}

{{ $product->name }}

@if($product->brand)

{{ $product->brand }}

@endif
{{ number_format($product->price, 0, ',', ' ') }} FCFA @if($product->old_price) {{ number_format($product->old_price, 0, ',', ' ') }} @endif
{{-- Stock indicator --}}
@if($product->stock > 10) En stock @elseif($product->stock > 0) {{ $product->stock }} restant(s) @else Rupture @endif
@if($product->stock > 0)
@csrf
@else Indisponible @endif
@endforeach
@endif {{-- ═══ OFFRES SPÉCIALES (dynamiques) ═══ --}}
{{-- En-tête section --}}
Promotions

Offres Spéciales

@if($promotions->isNotEmpty()) @endif
@if($promotions->isEmpty()) {{-- État vide --}}

Aucune offre promotionnelle en cours

Revenez bientôt pour découvrir nos prochaines promotions !

@else {{-- Grille : 1 colonne si 1 promo, 2 si 2, sinon 3 --}}
@foreach($promotions as $promo)
{{-- Image de fond --}} @if($promo->image_url) {{ $promo->title }} @else
@endif {{-- Overlay dégradé --}}
{{-- Badge remise --}} @if($promo->discount_text)
{{ $promo->discount_text }}
@endif {{-- Contenu --}}
@if($promo->subtitle)

{{ $promo->subtitle }}

@endif

{{ $promo->title }}

@if($promo->description) @endif @if($promo->link_url)
{{ $promo->button_label }}
@endif
@endforeach
@endif
{{-- ═══ WHY US ═══ --}}
Nos Avantages

Pourquoi choisir AdamService ?

Nous nous engageons à vous offrir la meilleure expérience d'achat d'accessoires mobiles

@foreach([ ['icon' => 'trophy', 'color' => 'blue', 'bg' => 'from-blue-500 to-blue-700', 'title' => 'Qualité Premium', 'text' => 'Chaque produit est rigoureusement sélectionné pour vous garantir durabilité et performance.'], ['icon' => 'truck', 'color' => 'green', 'bg' => 'from-green-500 to-green-700', 'title' => 'Livraison Rapide', 'text' => 'Commandez aujourd\'hui, recevez sous 24 à 72 heures partout en Algérie.'], ['icon' => 'headset', 'color' => 'amber', 'bg' => 'from-amber-400 to-amber-600', 'title' => 'Support Dédié', 'text' => 'Notre équipe est disponible 7j/7 pour répondre à vos questions et vous conseiller.'], ['icon' => 'shield-alt', 'color' => 'purple', 'bg' => 'from-purple-500 to-purple-700','title' => 'Garantie Produit', 'text' => 'Tous nos accessoires bénéficient d\'une garantie et d\'un service après-vente réactif.'], ] as $item)

{{ $item['title'] }}

{{ $item['text'] }}

@endforeach
{{-- ═══ CTA FINAL ═══ --}}
Commandez maintenant

Votre commande en 3 clics

Parcourez le catalogue, ajoutez au panier, passez commande. Paiement à la livraison, livraison garantie.

@endsection