Fix the display of the "no mailbox" warning

This commit is contained in:
Antoine Le Gonidec 2024-07-11 12:18:24 +02:00
parent 12ea6ec05a
commit a61e14da47
Signed by: vv221
GPG key ID: 636B78F91CEB80D8

View file

@ -5,7 +5,7 @@
@foreach ($customers as $customer) @foreach ($customers as $customer)
<a href="{{ Eventy::filter('customer.card.url', route('customers.update', ['id' => $customer->id]), $customer) }}" class="card hover-shade" @action('customer.card.link', $customer) > <a href="{{ Eventy::filter('customer.card.url', route('customers.update', ['id' => $customer->id]), $customer) }}" class="card hover-shade" @action('customer.card.link', $customer) >
<img src="{{ $customer->getPhotoUrl() }}" /> <img src="{{ $customer->getPhotoUrl() }}" />
@if ($customer->mailbox == null) @if ($customer->mailbox_id == null)
<p style="font-size:12px; color: red;">{{ __('Warning: no mailbox') }}</p> <p style="font-size:12px; color: red;">{{ __('Warning: no mailbox') }}</p>
@endif @endif
<h4 title="{{ $customer->first_name }} {{ $customer->last_name }}">{{ $customer->first_name }} {{ $customer->last_name }}</h4> <h4 title="{{ $customer->first_name }} {{ $customer->last_name }}">{{ $customer->first_name }} {{ $customer->last_name }}</h4>