@extends('layouts.app') @section('title', $product->name . ' - JOLI Matelas') @section('content')
@include('partials.page-hero', [ 'title' => $product->name, 'subtitle' => $product->short_desc ? \Illuminate\Support\Str::limit($product->short_desc, 120) : null, 'breadcrumbs' => [ ['label' => 'Accueil', 'href' => route('home')], ['label' => 'Produits', 'href' => route('products.index')], ['label' => $product->name] ] ])
@if($product->images && count($product->images) > 0)
{{ $product->name }}
@if(count($product->images) > 1)
@foreach($product->images as $index => $image) @endforeach
@endif @else
{{ $product->name }}
@endif
@if($product->category) {{ $product->category->name }} @endif

{{ $product->name }}

@if($product->short_desc)

{{ $product->short_desc }}

@endif
{{ config('shop.currency_symbol', 'XAF') }}
@if($product->variants->count() > 1)
@foreach($product->variants as $variant) @endforeach
@elseif($product->variants->count() === 1)
{{ $product->variants->first()->size }}
@endif
@if($product->material)
{{ $product->material }}
@endif @if($product->firmness)
Fermeté : {{ config('shop.product_firmness_labels')[$product->firmness] ?? ucfirst($product->firmness) }}
@endif @if($product->height)
Épaisseur : {{ $product->height }} cm
@endif @if($product->warranty)
Garantie : {{ $product->warranty }} ans
@endif
@if($product->description)

Description

{!! nl2br(e($product->description)) !!}
@endif
@if($relatedProducts->isNotEmpty())

Produits similaires

@foreach($relatedProducts as $relatedProduct) @include('partials.product-card', ['product' => $relatedProduct]) @endforeach
@endif
@endsection