Sync 5 Fix front loading after bo Overhaul

This commit is contained in:
Jérémy Munsch 2023-11-24 10:03:37 +01:00
parent 1ce542a7f3
commit f1e27928f0
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC
2 changed files with 8 additions and 7 deletions

View file

@ -25,11 +25,12 @@
<div class="navbar-collapse collapse" id="navbar-main-menu">
<ul class="navbar-nav mb-lg-0 mb-2 ms-auto">
<li class="nav-item">
<a class="fs-4 fw-bold nav-link @if (request()->routeIs('fo.home')) active @endif" href="{{ route('fo.home') }}/#howto"
@if (request()->routeIs('fo.home')) aria-current="page" @endif>{{ __('Comment jouer ?') }}</a>
<a class="fs-4 fw-bold nav-link @if (request()->routeIs('fo.homepage')) active @endif"
href="{{ route('fo.homepage') }}/#howto"
@if (request()->routeIs('fo.homepage')) aria-current="page" @endif>{{ __('Comment jouer ?') }}</a>
</li>
<li class="nav-item">
<a class="fs-4 fw-bold nav-link" href="{{ route('fo.home') }}/#gifts">{{ __('Les cadeaux') }}</a>
<a class="fs-4 fw-bold nav-link" href="{{ route('fo.homepage') }}/#gifts">{{ __('Les cadeaux') }}</a>
</li>
<li class="nav-item">
<a class="fs-4 fw-bold nav-link link-danger @if (request()->routeIs('fo.saisir-code')) active @endif"
@ -56,7 +57,7 @@
<div class="position-relative container-fluid p-0">
<div class="row">
<div class="col-6">
<a class="navbar-brand d-inline-block" href="{{ route('fo.home') }}"
<a class="navbar-brand d-inline-block" href="{{ route('fo.homepage') }}"
title="{{ __('Aller sur la page d\'accueil') }}">
<img class="img-fluid" src="{{ Vite::asset('resources/theme/mounted/assets/images/home_logo.png') }}"
alt="{{ $settingsGlobal->name ?? config('app.name') }} }}">
@ -74,11 +75,11 @@
<div class="rest-in-game-banner text-bg-primary d-flex flex-grow-1">
<span>{{ __('Encore en jeu : ') }}</span>
@if (Arr::has($prizesGlobal, 0))
<span>{{ Arr::get($prizesGlobal, 0)->quantity - (optional(optional(Arr::get($prizesGlobal, 1)->instant_wins)->where('won', true))->count() ?? 0) }}</span>
<span>{{ Arr::get($prizesGlobal, 0)->quantity - (optional(optional(Arr::get($prizesGlobal, 1)->instantWins)->where('won', true))->count() ?? 0) }}</span>
<span class="">{!! clean(nl2br(__("Wonderbox \n loisirs"))) !!}</span>
@endif
@if (Arr::has($prizesGlobal, 1))
<span>{{ Arr::get($prizesGlobal, 1)->quantity - (optional(optional(Arr::get($prizesGlobal, 1)->instant_wins)->where('won', true))->count() ?? 0) }}</span>
<span>{{ Arr::get($prizesGlobal, 1)->quantity - (optional(optional(Arr::get($prizesGlobal, 1)->instantWins)->where('won', true))->count() ?? 0) }}</span>
<span class="">{!! clean(nl2br(__("Wonderbox \n Happy Day"))) !!}</span>
@endif
</div>

View file

@ -1,6 +1,6 @@
<header class="grid">
<div class="logo flex">
<a href="{{ route('fo.home') }}">
<a href="{{ route('fo.homepage') }}">
<img src="{{ asset('front/assets/images/home_logo.png') }}" alt="Le gaulois - Les Gauloisirs">
<img src="{{ asset('front/assets/images/logo-gauloisirs.png') }}">
</a>