Files
opensem/resources/views/Shop/Articles/partials/article.blade.php
Ludovic CANDELLIER ae39681cb0 fix layout
2022-12-21 18:33:15 +01:00

18 lines
828 B
PHP

<a href="{{ route('Shop.Articles.show', ['id' => $article['semences']['article_id'] ?? false ]) }}" class="{{ ($product_type == 'botanic') ? 'green-dark' : 'green-dark' }}">
<div class="card {{ ($article_nature == 'semences') ? 'bg-yellow' : 'bg-green-light' }}">
<img src="{{ App\Repositories\Shop\Articles::getPreviewSrc($article['image'] ?? false) }}" class="card-img-top" alt="{{ $product_name }}">
<div class="card-body p-2 pb-1">
<div class="row card-title">
<div class="col-12">
<!--
<i class="fa fa-heart red"></i>
-->
<div class="text-truncate mb-0" style="font-size: 1.3em;">{{ $article['parent_name'] }}</div>
<div class="text-truncate">{{ $article['product_name'] }}</div>
</div>
</div>
@include('Shop.Articles.partials.article_' . $product_type)
</div>
</div>
</a>