fix: 🐛 error on /club/email/verify page

This commit is contained in:
Karl Muller 2024-10-31 08:12:21 +00:00
parent 9393e06d76
commit 7c8f8762dc
3 changed files with 3 additions and 3 deletions

View file

@ -93,7 +93,7 @@
<li class="nav-item me-1">
<a class="btn btn-link text-tertiary position-relative p-1" href="{{ route('club.discounts.index') }}">
@include('club.icons.ticket')
@if($discountsCustomerCount)
@if(isset($discountsCustomerCount))
<span class="position-absolute start-85 translate-middle badge rounded-pill bg-danger top-15">
{{ $discountsCustomerCount > 99 ? '99+' : $discountsCustomerCount }}
<span class="visually-hidden">{{ __('Nouveaux bons de réductions') }}</span>

View file

@ -50,7 +50,7 @@
{{ __('« La Poulitude »') }}
</span>
</a>
@if($discountsCustomerCount)
@if(isset($discountsCustomerCount))
<span class="nav-notification ms-auto">
<span class="visually-hidden">{{ __('Nouveaux bons de réduction') }}</span>
<span>{{ $discountsCustomerCount > 99 ? '99+' : $discountsCustomerCount }}</span>

View file

@ -109,7 +109,7 @@
title="{{ __('Go to page :page', ['page' => 'Mes coupons']) }}">
@include('club.icons.ticket')
<span class="fs-4 flex-grow-1 ms-3 text-start">{{ __('Coupons') }}</span>
@if ($discountsCustomerCount)
@if (isset($discountsCustomerCount))
<span class="d-flex px-2">
<span class="bg-danger rounded-circle border border-0 px-2 py-1">
<span class="visually-hidden">{{ __('Nouveaux bons de réduction') }}</span>