@extends('theme::layout') @section('title', __('Vous avez gagné !')) @section('description', __('Vous avez gagné un Lot cliquez sur la roue pour découvrir lequel')) @section('main-class', 'won-page g-0') @section('content') {{-- SPIN WHEEL --}} @include('theme::pages.participation.parts.animation', [ 'sectionId' => 'spin-animation', 'winDiscount' => !empty($prizeModel) ? false : true, 'prizeModel' => $prizeModel ?? null, ]) @if (!empty($prizeModel)) {{-- LOT --}} @include('theme::pages.participation.parts.prize', [ 'sectionId' => 'prize-section', 'prizeModel' => $prizeModel, 'winProofAnchor' => 'winning-proof-section', ]) @elseif (!empty($discount)) {{-- COUPON --}} @include('theme::pages.participation.parts.discount', [ 'sectionId' => 'discount-section', 'discount' => $discount, ]) @else @php throw new \RuntimeException('Unhandled win case'); @endphp @endif @if ($settingsGlobal->winning_proof and !empty($prizeModel)) {{-- WINNING PROOF SUBMIT PART --}} @include('theme::pages.participation.parts.winning-proof', [ 'sectionId' => 'winning-proof-section', 'participationModel' => $participationModel, ]) @endif @endsection