2023-11-27 12:03:58 +01:00
|
|
|
<nav class="navbar navbar-expand-lg shadow">
|
|
|
|
|
<div class="container-fluid">
|
|
|
|
|
<div class="d-flex flex-column-reverse flex-lg-column flex-grow-1">
|
|
|
|
|
<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.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.homepage') }}/#gifts">{{ __('Les cadeaux') }}</a>
|
|
|
|
|
</li>
|
2023-12-12 12:25:21 +01:00
|
|
|
@can('fo.gameEnabled')
|
|
|
|
|
<li class="nav-item">
|
|
|
|
|
<a class="fs-4 fw-bold nav-link link-tertiary @if (request()->routeIs('fo.participate')) active @endif"
|
|
|
|
|
href="{{ route('fo.participate') }}"
|
|
|
|
|
@if (request()->routeIs('fo.participate')) aria-current="page" @endif>{{ __('Jouer !') }}</a>
|
|
|
|
|
</li>
|
|
|
|
|
@endcan
|
2023-11-29 16:52:16 +01:00
|
|
|
@can('fo.showProducts')
|
|
|
|
|
<li class="nav-item">
|
|
|
|
|
<a class="fs-4 fw-bold nav-link @if (request()->routeIs('fo.produits-porteurs')) active @endif"
|
|
|
|
|
href="{{ route('fo.produits-porteurs') }}"
|
|
|
|
|
@if (request()->routeIs('fo.produits-porteurs')) aria-current="page" @endif>{{ __('Produits porteurs') }}</a>
|
|
|
|
|
</li>
|
|
|
|
|
@endcan
|
2023-11-27 12:03:58 +01:00
|
|
|
<li class="nav-item">
|
2023-12-13 18:45:38 +01:00
|
|
|
<form class="" action="{{ route('fo.logout') }}" method="POST">
|
|
|
|
|
@guest('frontend')
|
|
|
|
|
<a class="btn-connect btn btn-tertiary fw-bold fs-4 text-uppercase"
|
|
|
|
|
href="{{ route('fo.login') }}">{{ __('Je me connecte') }}</a>
|
|
|
|
|
@else
|
2023-11-27 12:03:58 +01:00
|
|
|
@csrf
|
2023-12-13 18:45:38 +01:00
|
|
|
<button class="btn btn-tertiary fw-bold fs-4 text-uppercase" type="submit">{{ __('Se déconnecter') }}</button>
|
|
|
|
|
@endguest
|
|
|
|
|
@can('viewWonList', \App\Models\Participation::class)
|
|
|
|
|
<a class="btn btn-quad fw-bold fs-4" data-bs-toggle="tooltip"
|
|
|
|
|
href="{{ route('fo.view-winning-participations') }}" title="{{ __('Voir mes gains') }}">
|
|
|
|
|
<i class="fa-solid fa-gift"></i>
|
|
|
|
|
</a>
|
|
|
|
|
@endcan
|
|
|
|
|
</form>
|
2023-11-27 12:03:58 +01:00
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="container-fluid p-0">
|
|
|
|
|
<div class="row">
|
2023-12-01 11:44:47 +01:00
|
|
|
@include('theme::layouts.header-logo')
|
2023-11-27 12:03:58 +01:00
|
|
|
|
|
|
|
|
@if (collect($prizesGlobal)->count())
|
2023-11-29 16:58:56 +01:00
|
|
|
<div class="rest-in-game-banner-container col-12 col-lg-6 d-flex align-items-end g-0 overflow-x-hidden">
|
2023-11-27 12:03:58 +01:00
|
|
|
<div
|
|
|
|
|
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
|
2023-11-29 10:57:39 +01:00
|
|
|
class="d-flex align-items-center fw-bold text-uppercase fs-5 mx-2">{{ __("Encore en jeu\u{00A0}:") }}</span>
|
2024-01-23 15:16:54 +01:00
|
|
|
@foreach ($prizesGlobal as $prizeModel)
|
2023-11-27 12:03:58 +01:00
|
|
|
<span class="d-flex justify-content-center">
|
|
|
|
|
<span
|
2024-01-23 15:16:54 +01:00
|
|
|
class="rounded-pill text-tertiary fw-bold fs-4 d-flex align-items-center my-1 bg-white px-3 py-1">
|
2025-08-05 15:58:48 +02:00
|
|
|
{{ $prizeModel->quantity - \App\Models\InstantWin::query()->whereHas('prize', fn($q) => $q->where('id', $prizeModel->id))->whereHas('participation')->count() }}
|
2024-01-23 15:16:54 +01:00
|
|
|
</span>
|
2023-11-27 12:03:58 +01:00
|
|
|
<span
|
2024-01-23 15:16:54 +01:00
|
|
|
class="fw-bold text-uppercase fs-5 lh-sm d-flex align-items-center mx-2">{{ $prizeModel->label }}</span>
|
2023-11-27 12:03:58 +01:00
|
|
|
</span>
|
2024-01-23 15:16:54 +01:00
|
|
|
@endforeach
|
2023-11-27 12:03:58 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@endif
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</nav>
|