Add display articles by rows, and display article in full mode
This commit is contained in:
@@ -2,23 +2,29 @@
|
||||
<div class="card">
|
||||
<img src="{{ App\Repositories\Shop\Articles::getPreviewSrc($article['image'] ?? false) }}" class="card-img-top" alt="...">
|
||||
<div class="card-body">
|
||||
<span class="card-title">{{ $product_name }}</span>
|
||||
<span class="pull-right">
|
||||
<span class="card-title" style="font-weight: bold; color: green;">{{ $product_name }}</span>
|
||||
<span class="float-right" style="font-size: 2em; color: red;">
|
||||
<i class="fa fa-heart"></i>
|
||||
</span>
|
||||
|
||||
<p class="card-text">
|
||||
<div class="row">
|
||||
<div class="row" style="color: green;">
|
||||
<div class="col-6">
|
||||
{{ $article['semences']['price'] ?? null }}<br>
|
||||
@if ($article['semences'] ?? false)
|
||||
<span style="font-size: 1.4em; font-weight: bold;">{{ $article['semences']['price'] ?? null }}</span> €<br>
|
||||
@else
|
||||
Indisponible
|
||||
@endif
|
||||
Semence
|
||||
</div>
|
||||
@if ($article['plants'] ?? false)
|
||||
<div class="col-6">
|
||||
{{ $article['plants']['price'] }}<br>
|
||||
Plant
|
||||
</div>
|
||||
@endif
|
||||
<div class="col-6">
|
||||
@if ($article['plants'] ?? false)
|
||||
<span style="font-size: 1.4em; font-weight: bold;">{{ $article['plants']['price'] }}</span> €<br>
|
||||
@else
|
||||
Indisponible
|
||||
@endif
|
||||
Plant
|
||||
</div>
|
||||
</div>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user