Compare commits

...
Sign in to create a new pull request.

3 commits

Author SHA1 Message Date
Vincent BRIDIER
b09faad446 Merge branch 'fix-header-count' into 'main'
fix header counter

See merge request ldc-web/projets/gen-game-web-themes/regalette/chandleur/chandleur-2024!14
2024-01-24 07:53:35 +00:00
Jérémy Munsch
efa179a56e
fix header counter 2024-01-23 15:18:10 +01:00
Vincent BRIDIER
608265931a bump ggw version 2024-01-23 10:11:39 +00:00
2 changed files with 4 additions and 3 deletions

View file

@ -2,7 +2,7 @@
return [
// * GGW version
'version' => '2.2.4',
'version' => '2.2.6',
// * Theme name
'name' => 'chandleur-2024',
// * Picture BO validation sizes

View file

@ -57,8 +57,9 @@
class="d-flex align-items-center fw-bold text-uppercase fs-5 mx-2">{{ __("Encore en jeu\u{00A0}:") }}</span>
@foreach ($prizesGlobal as $prizeModel)
<span class="d-flex justify-content-center">
<span
class="rounded-pill fw-bold fs-4 d-flex align-items-center text-bg-white my-1 px-3 py-1">{{ $prizeModel->quantity - (optional(optional(optional($prizeModel)->instantWins)->where('won', true))->count() ?? 0) }}</span>
<span class="rounded-pill fw-bold fs-4 d-flex align-items-center text-bg-white my-1 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">{{ $prizeModel->label }}</span>
</span>