@if($product)
@if(isset($product['images']) && count($product['images']) > 0) {{ $product['designation'] }} @else
@endif @if(isset($product['prix_promo']) && $product['prix_promo'] > 0)
-{{ round((($product['prix'] - $product['prix_promo']) / $product['prix']) * 100) }}%
@endif
@if(isset($product['images']) && count($product['images']) > 1)
@foreach($product['images'] as $index => $image) @endforeach
@endif
@if(isset($product['sous_categories'][0])) {{ $product['sous_categories'][0]['categorie'] }} @endif

{{ $product['designation'] }}

@if(isset($product['prix_promo']) && $product['prix_promo'] > 0) {{ number_format($product['prix_promo'], 0, ',', ' ') }} FCFA {{ number_format($product['prix'], 0, ',', ' ') }} FCFA @else {{ number_format($product['prix'], 0, ',', ' ') }} FCFA @endif
@if(isset($product['stock']) && $product['stock'] > 0) En stock ({{ $product['stock'] }} disponibles) @else Rupture de stock @endif
@if(isset($product['description']) && $product['description'])
{!! $product['description'] !!}
@endif
{{ $quantity }}
@if(isset($product['shop']))
@if(isset($product['shop']['logo']) && $product['shop']['logo']) {{ $product['shop']['name'] ?? '' }} @else @endif

{{ $product['shop']['name'] ?? 'Boutique' }}

Voir la boutique
@endif
Qualite garantie
Livraison rapide
Paiement securise
@if(count($relatedProducts) > 0)

Produits similaires

@foreach($relatedProducts as $related) @php $relatedName = $related['designation'] ?? $related['nom'] ?? 'Produit'; $relatedImage = null; if (!empty($related['images'])) { $img = $related['images'][0]; $relatedImage = $img['image'] ?? $img['url'] ?? $img['chemin'] ?? null; if ($relatedImage && !str_starts_with($relatedImage, 'http')) { $relatedImage = 'https://tawfeexmarket.com/' . $relatedImage; } } @endphp
@if($relatedImage) {{ $relatedName }} @else
@endif

{{ $relatedName }}

@if(strlen($relatedName) > 22) @endif

{{ number_format($related['prix'] ?? 0, 0, ',', ' ') }} FCFA

@endforeach
@endif @if(count($alsoOrderedProducts) > 0)

Les clients ont aussi achete

@foreach($alsoOrderedProducts as $ordered) @php $orderedName = $ordered['designation'] ?? $ordered['nom'] ?? 'Produit'; $orderedImage = null; if (!empty($ordered['images'])) { $img = $ordered['images'][0]; $orderedImage = $img['image'] ?? $img['url'] ?? $img['chemin'] ?? null; if ($orderedImage && !str_starts_with($orderedImage, 'http')) { $orderedImage = 'https://tawfeexmarket.com/' . $orderedImage; } } @endphp
@if($orderedImage) {{ $orderedName }} @else
@endif

{{ $orderedName }}

@if(strlen($orderedName) > 22) @endif

{{ number_format($ordered['prix'] ?? 0, 0, ',', ' ') }} FCFA

@endforeach
@endif @else

Produit introuvable

Le produit que vous recherchez n'existe pas ou a ete supprime.

Retour aux produits
@endif