fix empty
This commit is contained in:
@@ -14,39 +14,45 @@
|
|||||||
{!! $article['description'] !!}
|
{!! $article['description'] !!}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-3">
|
<div class="col-3">
|
||||||
@component('components.card', [
|
@if ($article['offers']['semences'] ?? false)
|
||||||
'title' => 'Semence',
|
@component('components.card', [
|
||||||
'class' => 'mb-3',
|
'title' => 'Semence',
|
||||||
])
|
'class' => 'mb-3',
|
||||||
{{ $article['offers']['semences']['name'] }}<br>
|
|
||||||
{{ $article['offers']['semences']['prices'][0]['price_taxed'] }}<br>
|
|
||||||
@include('components.form.button', [
|
|
||||||
'class' => 'btn-success basket semences',
|
|
||||||
'txt' => 'Ajouter au panier',
|
|
||||||
])
|
])
|
||||||
@endcomponent
|
{{ $article['offers']['semences']['name'] }}<br>
|
||||||
|
{{ $article['offers']['semences']['prices'][0]['price_taxed'] }}<br>
|
||||||
|
@include('components.form.button', [
|
||||||
|
'class' => 'btn-success basket semences',
|
||||||
|
'txt' => 'Ajouter au panier',
|
||||||
|
])
|
||||||
|
@endcomponent
|
||||||
|
@endif
|
||||||
|
|
||||||
@component('components.card', [
|
@if ($article['offers']['plants'] ?? false)
|
||||||
'title' => 'Plant',
|
@component('components.card', [
|
||||||
'class' => 'mb-3',
|
'title' => 'Plant',
|
||||||
])
|
'class' => 'mb-3',
|
||||||
{{ $article['offers']['plants']['name'] }}<br>
|
|
||||||
{{ $article['offers']['plants']['prices'][0]['price_taxed'] }}<br>
|
|
||||||
@include('components.form.button', [
|
|
||||||
'class' => 'btn-success basket plants',
|
|
||||||
'txt' => 'Ajouter au panier',
|
|
||||||
])
|
])
|
||||||
@endcomponent
|
{{ $article['offers']['plants']['name'] }}<br>
|
||||||
|
{{ $article['offers']['plants']['prices'][0]['price_taxed'] }}<br>
|
||||||
|
@include('components.form.button', [
|
||||||
|
'class' => 'btn-success basket plants',
|
||||||
|
'txt' => 'Ajouter au panier',
|
||||||
|
])
|
||||||
|
@endcomponent
|
||||||
|
@endif
|
||||||
|
|
||||||
@component('components.card', [
|
@if ($article['offers']['legumes'] ?? false)
|
||||||
'title' => 'Légume',
|
@component('components.card', [
|
||||||
'class' => 'mb-3',
|
'title' => 'Légume',
|
||||||
])
|
'class' => 'mb-3',
|
||||||
@include('components.form.button', [
|
|
||||||
'class' => 'btn-success basket legumes',
|
|
||||||
'txt' => 'Ajouter au panier',
|
|
||||||
])
|
])
|
||||||
@endcomponent
|
@include('components.form.button', [
|
||||||
|
'class' => 'btn-success basket legumes',
|
||||||
|
'txt' => 'Ajouter au panier',
|
||||||
|
])
|
||||||
|
@endcomponent
|
||||||
|
@endif
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user