add basket on rows, uniformize baskets

This commit is contained in:
Ludovic CANDELLIER
2023-03-21 23:16:47 +01:00
parent 06c68dd223
commit 20b3521c72
8 changed files with 52 additions and 51 deletions

View File

@@ -19,8 +19,17 @@
</div>
@include('Shop.Articles.partials.article_' . $product_type)
</a>
<button type="button" class="btn btn-link bg-green text-white w-100 basket" data-id="{{ $article['offers'][0]['id'] ?? false }}">
Ajout rapide
</button>
@switch ($article_nature)
@case(1)
<button type="button" class="btn btn-link bg-green text-white w-100 basket" data-id="{{ $article['semences']['id'] ?? false }}">
Ajout rapide
</button>
@break
@case(2)
<button type="button" class="btn btn-link bg-green text-white w-100 basket" data-id="{{ $article['plants']['id'] ?? false }}">
Ajout rapide
</button>
@break
@endswitch
</div>
</div>