Add no visual

This commit is contained in:
Ludovic CANDELLIER
2022-01-25 22:59:17 +01:00
parent ed1d87a7d1
commit fb047aa036
6 changed files with 11 additions and 6 deletions

View File

@@ -1,6 +1,10 @@
<a href="{{ route('Shop.Articles.show', ['id' => $article['semences']['article_id'] ?? false ]) }}">
<div class="card">
<img src="{{ App\Repositories\Shop\Articles::getPreviewSrc($article['image'] ?? false) }}" class="card-img-top" alt="...">
@if ($article['image'] !== null)
<img src="{{ App\Repositories\Shop\Articles::getPreviewSrc($article['image'] ?? false) }}" class="card-img-top" alt="{{ $article['product_name'] }}">
@else
<img src="img/visuel-non-disponible.jpg" class="card-img-top">
@endif
<div class="card-body">
<div class="row card-title">
<div class="col-10" style="font-weight: bold; color: green;">