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