@include('front.partials.top-header') @include('front.partials.desktop.search-header') @include('front.partials.sticky-header')
@include('front.partials.mobile.menu')
@if(session('error'))
{{ session('error') }}
@endif @if(session('success'))
{{ session('success') }}
@endif
{{-- Galerie --}}
@if($creation->images->count() > 1) @endif
{{-- Fiche et configurateur --}}
{{ __('surmesure.pricing_' . $creation->pricing_mode) }} @php // Le contenu saisi par le créateur est rédigé dans sa langue : // on le traduit comme le reste du catalogue. $translator = app(\App\Services\TranslationService::class); $locale = app()->getLocale(); @endphp

{{ $translator->translate($creation->product_name, $locale) }}

@for ($i = 1; $i <= 5; $i++)
@if ($averageRating >= $i) @elseif ($averageRating >= ($i - 0.5)) @else @endif
@endfor {{ $averageRating }} / 5 ({{ $reviewCount }} {{ __('messages.reviews') }})
{{ $creation->seller?->name ?? '' }}
{{ $creation->seller?->company ?: ($creation->seller?->name ?? '—') }}
{{ __('surmesure.maker') }} @if($creation->seller?->city) · {{ $creation->seller->city }} @endif
{{-- La classe « translate » laisse le middleware parcourir les nœuds texte de ce HTML sans en casser la mise en forme. --}}
{!! $creation->product_description !!}
@if($creation->pricing_mode === 'quote') @include('front.sur-mesure._quote-form') @else @include('front.sur-mesure._configurator') @endif @if($creation->production_delay_days)
⏱ {{ __('surmesure.delay_note', ['days' => $creation->production_delay_days]) }}
@endif
@if($otherCreations->isNotEmpty())

{{ __('surmesure.other_creations') }}

@foreach($otherCreations as $other) @endforeach
@endif

{{ __('messages.customer_reviews') }} ({{ $reviewCount }})

@include('front.partials.reviews-section', ['reviewAction' => route('product.review.store', $creation->id)])
@include('front.partials.footer')