fix empty

This commit is contained in:
Ludovic CANDELLIER
2022-02-22 22:46:10 +01:00
parent 53d1307837
commit 27893eaa7e

View File

@@ -14,6 +14,7 @@
{!! $article['description'] !!} {!! $article['description'] !!}
</div> </div>
<div class="col-3"> <div class="col-3">
@if ($article['offers']['semences'] ?? false)
@component('components.card', [ @component('components.card', [
'title' => 'Semence', 'title' => 'Semence',
'class' => 'mb-3', 'class' => 'mb-3',
@@ -25,7 +26,9 @@
'txt' => 'Ajouter au panier', 'txt' => 'Ajouter au panier',
]) ])
@endcomponent @endcomponent
@endif
@if ($article['offers']['plants'] ?? false)
@component('components.card', [ @component('components.card', [
'title' => 'Plant', 'title' => 'Plant',
'class' => 'mb-3', 'class' => 'mb-3',
@@ -37,7 +40,9 @@
'txt' => 'Ajouter au panier', 'txt' => 'Ajouter au panier',
]) ])
@endcomponent @endcomponent
@endif
@if ($article['offers']['legumes'] ?? false)
@component('components.card', [ @component('components.card', [
'title' => 'Légume', 'title' => 'Légume',
'class' => 'mb-3', 'class' => 'mb-3',
@@ -47,6 +52,7 @@
'txt' => 'Ajouter au panier', 'txt' => 'Ajouter au panier',
]) ])
@endcomponent @endcomponent
@endif
</div> </div>
</div> </div>