From e854f7557c744b92e6549fe1458b407fbb3a90b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Fri, 8 Dec 2023 15:44:01 +0100 Subject: [PATCH] Fix teaser and Home pages --- views/pages/home.blade.php | 9 +-- views/pages/teaser.blade.php | 120 +++++------------------------------ 2 files changed, 20 insertions(+), 109 deletions(-) diff --git a/views/pages/home.blade.php b/views/pages/home.blade.php index 5a0383b..9dd2ab7 100644 --- a/views/pages/home.blade.php +++ b/views/pages/home.blade.php @@ -51,12 +51,9 @@ @endif -
- {{ Arr::get($prizesGlobal, 1)->picture_alt }} -
+ {{ Arr::get($prizesGlobal, 1)->picture_alt }}
{!! clean(nl2br(__("Ou des milliers\n de bons\n de réduction"))) !!} {{ optional(Arr::get($prizesGlobal, 0))->quantity }}

- {!! clean(nl2br(__("Wonderbox \nLoisirs"))) !!} + @if (intval(Arr::get($prizesGlobal, 0)->quantity) > 1) + {{ Str::plural(Arr::get($prizesGlobal, 0)->label) }} + @else + {{ Arr::get($prizesGlobal, 0)->label }} + @endif

- {{ __('Wonderbox Loisir en famille') }} + {{ Arr::get($prizesGlobal, 0)->picture_alt }} @endif @if (Arr::has($prizesGlobal, 1)) @@ -53,14 +57,17 @@ class="bg-tertiary fs-3 rounded-pill fw-bold px-3 py-1 text-white">{{ optional(Arr::get($prizesGlobal, 1))->quantity }}

- {!! clean(nl2br(__("Wonderbox \nHappy Day"))) !!} + @if (intval(Arr::get($prizesGlobal, 1)->quantity) > 1) + {{ Str::plural(Arr::get($prizesGlobal, 1)->label) }} + @else + {{ Arr::get($prizesGlobal, 1)->label }} + @endif

-
- {{ __('Wonderbox Happy Day') }} -
+ {{ Arr::get($prizesGlobal, 1)->picture_alt }}
{!! clean(nl2br(__("Ou des milliers\n de bons\n de réduction"))) !!}
- @php $counterParts = explode( '#', @@ -100,16 +106,6 @@ @endif - {{-- 07 - - jours - 13 - - heures - 14 - - minutes --}} -
@@ -119,85 +115,3 @@ @endsection - -{{--
-
-
-
-
- @php - setlocale(LC_TIME, 'fr_FR.utf8'); - \Carbon\Carbon::setLocale('fr'); - @endphp -

Du {{ \Carbon\Carbon::parse($settingsGlobal->start_date)->formatLocalized('%d %B') }} au - {{ \Carbon\Carbon::parse($settingsGlobal->end_date)->formatLocalized('%d %B') }}

- -

-
- -
-

-
-
-

Jouez et tentez de gagner

-
-
-
-
- {{ $prizesGlobal[0]->quantity }} -
-

Wonderbox
Loisirs

- -
-
- Grand jeu 100% gagnant -
- Grand jeu 100% gagnant -
-
-
-
-
-
- {{ $prizesGlobal[1]->quantity }} -
-

Wonderbox
Happy Day

-
-
- Wonderbox Happy Day -
-
-

Ou des milliers
de bons
de réduction

- Wonderbox Happy Day -
-
-
-
-

Votre jeu sera ouvert dans

-
-
-
-

jours

-
-
-
-

heures

-
-
-
-

minutes

-
-
-
-
-
-
-
--}} - -{{-- @push('scripts') - -@endpush --}}