fixes, add weight

This commit is contained in:
Ludovic CANDELLIER
2023-08-01 21:55:17 +02:00
parent 902604b9cd
commit 1cba52bb6d
11 changed files with 295 additions and 180 deletions

View File

@@ -2,7 +2,8 @@
<a href="{{ route('Shop.Articles.show', ['id' => $article['id'] ?? false ]) }}" class="green-dark">
<div class="content">
<div class="content-overlay"></div>
<img class="content-image card-img-top" src="{{ App\Repositories\Shop\Articles::getPreviewSrc($article['image'] ?? false) }}" alt="{{ $product_name }}">
<img class="content-image card-img-top"
src="{{ App\Repositories\Shop\Articles::getPreviewSrc($article['image'] ?? false) }}" alt="{{ $product_name }}">
<div class="content-details fadeIn-bottom">
<h3 class="content-title d-none"></h3>
<p class="content-text">{!! $article['description'] !!}</p>
@@ -19,14 +20,16 @@
</div>
@include('Shop.Articles.partials.article_' . $product_type)
</a>
@switch ($article_nature)
@switch ($article_nature ?? 0)
@case(1)
<button type="button" class="btn btn-link bg-green text-white w-100 basket" data-id="{{ $article['semences']['id'] ?? false }}">
<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 }}">
<button type="button" class="btn btn-link bg-green text-white w-100 basket"
data-id="{{ $article['plants']['id'] ?? false }}">
Ajout rapide
</button>
@break