From a84995e0ce9d2b55779d5c541e3f885022d8193a Mon Sep 17 00:00:00 2001 From: ludo Date: Sat, 25 Nov 2023 20:42:15 +0100 Subject: [PATCH] add basket on merchandise form --- .../partials/ArticleAddBasket.blade.php | 58 +++++++++++-------- 1 file changed, 33 insertions(+), 25 deletions(-) diff --git a/resources/views/Shop/Articles/partials/ArticleAddBasket.blade.php b/resources/views/Shop/Articles/partials/ArticleAddBasket.blade.php index 7488db97..a0a3b8d9 100644 --- a/resources/views/Shop/Articles/partials/ArticleAddBasket.blade.php +++ b/resources/views/Shop/Articles/partials/ArticleAddBasket.blade.php @@ -1,47 +1,55 @@ @if ($article['offers']['semences'] ?? false) - @include('Shop.Articles.partials.addBasket', [ - 'data' => $article['offers']['semences'], - 'title' => 'Semences', - 'model' => 'semences', - 'bgClass' => 'bg-green-light', - ]) + @include('Shop.Articles.partials.addBasket', [ + 'data' => $article['offers']['semences'], + 'title' => 'Semences', + 'model' => 'semences', + 'bgClass' => 'bg-green-light', + ]) @endif @if ($article['offers']['plants'] ?? false) - @include('Shop.Articles.partials.addBasket', [ - 'data' => $article['offers']['plants'], - 'title' => 'Plants', - 'model' => 'plants', - 'bgClass' => 'bg-green-light', - ]) + @include('Shop.Articles.partials.addBasket', [ + 'data' => $article['offers']['plants'], + 'title' => 'Plants', + 'model' => 'plants', + 'bgClass' => 'bg-green-light', + ]) @endif @if ($article['offers']['legumes'] ?? false) - @include('Shop.Articles.partials.addBasket', [ - 'data' => $article['offers']['legumes'], - 'title' => 'Légumes', - 'model' => 'legumes', - 'bgClass' => 'bg-green-light', - ]) + @include('Shop.Articles.partials.addBasket', [ + 'data' => $article['offers']['legumes'], + 'title' => 'Légumes', + 'model' => 'legumes', + 'bgClass' => 'bg-green-light', + ]) +@endif + +@if ($article['offers']['marchandise'] ?? false) + @include('Shop.Articles.partials.addBasket', [ + 'data' => $article['offers']['marchandise'], + 'title' => 'Marchandises', + 'model' => 'marchandise', + 'bgClass' => 'bg-green-light', + ]) @endif @include('load.basket') @push('js') - + } + @endpush