SYNC 15 RE7 pages ok win
This commit is contained in:
parent
fee25d4cb4
commit
21c8f55b70
5 changed files with 36 additions and 39 deletions
|
|
@ -15,10 +15,10 @@
|
|||
$lotWbFamilly = Vite::asset('resources/theme/mounted/assets/images/animations/wb-famille-spin.png');
|
||||
/** ID => picture */
|
||||
$wheelParts = collect([
|
||||
[$lotWbFamilly, $prizesIdList->get(1)],
|
||||
[$brPicture, 'br'],
|
||||
[$lotWbHappy, $prizesIdList->get(0)],
|
||||
[$brPicture, 'br'],
|
||||
[$lotWbFamilly, $prizesIdList->get(1)],
|
||||
]);
|
||||
// * Quel fragment va tomber
|
||||
$spinChild = !empty($prizeModel) ? $wheelParts->search(fn($wheelPart) => Arr::get($wheelPart, 1) === $prizeModel->id) : null;
|
||||
|
|
|
|||
|
|
@ -1,40 +1,31 @@
|
|||
<section class="main--bloc container">
|
||||
|
||||
<div class="mobile--menu">
|
||||
<div class="title--bloc view-br">
|
||||
<div class="title--txt">
|
||||
<h1 class="post-title">Félicitations !</h1>
|
||||
<!-- <br>Votre bon a été envoyé à l'adresse e-mail indiqué lors de votre inscription au jeu (en cas de non réception, vérifiez dans vos courriers indésirables. Attention, le mail peut parfois mettre quelques minutes à vous parvenir). Vous pouvez également y accéder en cliquant sur le bouton ci-dessous. -->
|
||||
<p>Vous avez gagné un bon d'achat de {{ number_format($coupon->face_value, 2) }}€<br>{{ $coupon->valid_on }}</p>
|
||||
<div class="main-btn">
|
||||
<a href="{{ $crmCoupon->link }}" target="_blank">Imprimer ma réduction</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bg-opacity"></div>
|
||||
<section class="container-fluid d-none overflow-x-hidden pb-5 pt-5 text-center" id="{{ $sectionId }}">
|
||||
<div class="row">
|
||||
<div class="col-12 col-md-6">
|
||||
<img class="img-fluid" src="{{ asset($discount->picture) }}"
|
||||
title="{{ __('Votre bon de réduction de :value', ['value' => $discount->face_value]) }}"
|
||||
alt="{{ __('Votre bon de réduction de :value', ['value' => $discount->face_value]) }}">
|
||||
</div>
|
||||
<div class="play--bloc">
|
||||
<p class="strong">Vous possédez un autre code ?</p>
|
||||
<div class="main-btn">
|
||||
<a href="{{ route('fo.saisir-code') }}">Je rejoue</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="desktop--menu">
|
||||
<div class="img--bloc view-br"></div>
|
||||
<div class="txt--bloc">
|
||||
<div class="bloc--rotate">
|
||||
<h1 class="post-title">Félicitations !</h1>
|
||||
<p>Vous avez gagné un bon d'achat de {{ number_format($coupon->face_value, 2) }}€<br>{{ $coupon->valid_on }}</p>
|
||||
<div class="main-btn">
|
||||
<a href="{{ $crmCoupon->link }}" target="_blank">Imprimer ma réduction</a>
|
||||
<div class="col position-relative g-0 d-flex align-items-center justify-content-center justify-content-md-end">
|
||||
<div class="wide-banner prize-rotate text-bg-quint p-5">
|
||||
<span class="fs-1 anti-rotate d-block">{{ __("Félicitations\u{00A0}!") }}</span>
|
||||
<p class="anti-rotate">
|
||||
{{ __('Vous avez gagné un bon d\'achat de :amount € sur :product_name', [
|
||||
'amount' => $discount->face_value,
|
||||
'product_name' => $discount->valid_on,
|
||||
]) }}
|
||||
<br>
|
||||
</p>
|
||||
<div>
|
||||
<a class="btn btn-lg btn-white anti-rotate px-3 py-2" href="{{ $crmCoupon->link }}"
|
||||
target="_blank">{{ __('Imprimer ma réduction') }}</a>
|
||||
</div>
|
||||
<p class="strong">Vous possédez un autre code ?</p>
|
||||
<div class="main-btn">
|
||||
<a href="{{ route('fo.saisir-code') }}">Je rejoue</a>
|
||||
<p class="strong anti-rotate mt-5">{{ __("Vous possédez un autre code\u{00A0}?") }}</p>
|
||||
<div>
|
||||
<a class="btn btn-lg btn-white anti-rotate px-3 py-2" href="{{ route('fo.saisir-code') }}">
|
||||
{{ __('Je rejoue') }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
|
|
|||
|
|
@ -4,8 +4,14 @@
|
|||
<img class="img-fluid" src="{{ asset($prizeModel->picture) }}" title="{{ $prizeModel->picture_title }}"
|
||||
alt="{{ $prizeModel->picture_alt }}">
|
||||
</div>
|
||||
<div class="col position-relative g-0 d-flex align-items-center">
|
||||
<div class="@if ($prizeModel->id % 2 === 0) text-bg-quint @else text-bg-tertiary @endif prize-rotate wide-banner p-5">
|
||||
<div class="col position-relative g-0 d-flex align-items-center justify-content-center justify-content-md-end">
|
||||
<div @class([
|
||||
'wide-banner',
|
||||
'p-5',
|
||||
'prize-rotate',
|
||||
'text-bg-quint' => $prizeModel->id % 2 === 0,
|
||||
'text-bg-tertiary' => $prizeModel->id % 2 === 1,
|
||||
])>
|
||||
<span class="fs-1 anti-rotate d-block">{{ __("Félicitations\u{00A0}!") }}</span>
|
||||
<p class="anti-rotate">
|
||||
{{ __('Vous avez gagné un :model !', [
|
||||
|
|
|
|||
|
|
@ -48,11 +48,11 @@
|
|||
'Merci de nous envoyer, sur papier libre :printLinkComment, vos coordonnées ainsi que vos preuves d\'achat originales. Le tout sous pli suffisamment affranchi sous dix jours à l\'adresse suivante :',
|
||||
[
|
||||
// Optionnal winning proof pdf
|
||||
'printLinkComment' => $prizeModel->pdf_winning_proof
|
||||
'printLinkComment' => optional($prizeModel ?? '')->pdf_winning_proof
|
||||
? __('(ou en utilisant le formulaire :startA téléchargeable ici :endA)', [
|
||||
'startA' =>
|
||||
'<a target="_blank" href="' .
|
||||
asset($prizeModel->pdf_winning_proof) .
|
||||
asset(optional($prizeModel ?? '')->pdf_winning_proof) .
|
||||
'" title="' .
|
||||
__('Télécharger le formualaire de gains') .
|
||||
'">',
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
@endphp
|
||||
@endif
|
||||
|
||||
@if ($settingsGlobal->winning_proof)
|
||||
@if ($settingsGlobal->winning_proof and !empty($prizeModel))
|
||||
{{-- WINNING PROOF SUBMIT PART --}}
|
||||
@include('theme::pages.participation.parts.winning-proof', [
|
||||
'sectionId' => 'winning-proof-section',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue