73 lines
4.7 KiB
PHP
73 lines
4.7 KiB
PHP
<nav class="navbar navbar-expand-xl shadow">
|
|
<div class="container-fluid">
|
|
<div class="d-flex flex-column-reverse flex-xl-column flex-grow-1">
|
|
<div class="navbar-collapse collapse" id="navbar-main-menu">
|
|
<ul class="navbar-nav mb-xl-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>{{ Str::of(__('Comment jouer ?'))->upper() }}</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="fs-4 fw-bold nav-link"
|
|
href="{{ route('fo.homepage') }}/#gifts">{{ Str::of(__('Le cadeau'))->upper() }}</a>
|
|
</li>
|
|
@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>{{ Str::of(__('Produits porteurs'))->upper() }}</a>
|
|
</li>
|
|
@endcan
|
|
@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>{{ Str::of(__('Je joue !'))->upper() }}</a>
|
|
</li>
|
|
@endcan
|
|
<li class="nav-item">
|
|
<form class="" action="{{ route('fo.logout') }}" method="POST">
|
|
@guest('frontend')
|
|
<a class="btn-connect btn btn-primary fw-bold fs-4 text-uppercase"
|
|
href="{{ route('fo.login') }}">{{ __('Je me connecte') }}</a>
|
|
@else
|
|
@csrf
|
|
<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>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="container-fluid p-0">
|
|
<div class="row">
|
|
@include('theme::layouts.header-logo')
|
|
@if (collect($prizesGlobal)->count())
|
|
<div class="rest-in-game-banner-container col-12 col-xl-6 d-flex align-items-end g-0 overflow-x-hidden">
|
|
<div
|
|
class="rest-in-game-banner flex-column flex-md-row text-bg-tertiary d-flex flex-grow-1 justify-content-around mt-2 py-1 pe-5 ps-2">
|
|
<span
|
|
class="d-flex align-items-center fw-bold text-uppercase fs-5 mx-2">{{ __("Encore\u{00A0}en\u{00A0}jeu\u{00A0}:") }}</span>
|
|
@if (Arr::has($prizesGlobal, 0))
|
|
<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">
|
|
{{ Arr::get($prizesGlobal, 0)->instantWins->where('prize_id', 1)->whereNull('participation_id')->count() ?? 0 }}
|
|
</span>
|
|
<span
|
|
class="fw-bold text-uppercase fs-5 lh-sm d-flex align-items-center mx-2">{{ Arr::get($prizesGlobal, 0)->label }}</span>
|
|
</span>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</nav>
|