Merge branch 'fix-header-count' into 'main'

fix header counter

See merge request ldc-web/projets/gen-game-web-themes/default-theme!1
This commit is contained in:
Vincent BRIDIER 2025-06-27 07:35:32 +00:00
commit b42d8f3bd4

View file

@ -54,22 +54,16 @@
class="rest-in-game-banner flex-column flex-md-row text-bg-quad d-flex flex-grow-1 justify-content-around mt-3 py-1 pe-5 ps-2">
<span
class="d-flex align-items-center fw-bold text-uppercase fs-5 mx-2">{{ __("Encore en jeu\u{00A0}:") }}</span>
@if (Arr::has($prizesGlobal, 0))
@foreach ($prizesGlobal as $prizeModel)
<span class="d-flex justify-content-center">
<span
class="rounded-pill text-tertiary fw-bold fs-4 d-flex align-items-center my-1 bg-white px-3 py-1">{{ Arr::get($prizesGlobal, 0)->quantity - (optional(optional(optional(Arr::get($prizesGlobal, 1))->instantWins)->where('won', true))->count() ?? 0) }}</span>
class="rounded-pill text-tertiary fw-bold fs-4 d-flex align-items-center my-1 bg-white px-3 py-1">
{{ $prizeModel->quantity -\App\Models\InstantWin::query()->whereHas('prize', fn($q) => $q->where('id', $prizeModel->id))->whereHas('participation')->count() }}
</span>
<span
class="fw-bold text-uppercase fs-5 lh-sm d-flex align-items-center mx-2">{!! clean(nl2br(__("Wonderbox \n loisirs"))) !!}</span>
class="fw-bold text-uppercase fs-5 lh-sm d-flex align-items-center mx-2">{{ $prizeModel->label }}</span>
</span>
@endif
@if (Arr::has($prizesGlobal, 1))
<span class="d-flex justify-content-center">
<span
class="rounded-pill text-tertiary fw-bold fs-4 d-flex align-items-center my-1 bg-white px-3 py-1">{{ Arr::get($prizesGlobal, 1)->quantity - (optional(optional(optional(Arr::get($prizesGlobal, 1))->instantWins)->where('won', true))->count() ?? 0) }}</span>
<span
class="fw-bold text-uppercase fs-5 lh-sm d-flex align-items-center mx-2">{!! clean(nl2br(__("Wonderbox \n Happy Day"))) !!}</span>
</span>
@endif
@endforeach
</div>
</div>
@endif