[WIP] begin of new display for article, shelves
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<a href="{{ route('Shop.Articles.show', ['id' => $article['semences']['article_id'] ?? false ]) }}" class="green-dark">
|
||||
<div class="card bg-green-light">
|
||||
<a href="{{ route('Shop.Articles.show', ['id' => $article['semences']['article_id'] ?? false ]) }}" class="{{ ($product_type == 'botanic') ? 'green-dark' : 'green-dark' }}">
|
||||
<div class="card {{ ($product_type == 'botanic') ? '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">
|
||||
<div class="row card-title">
|
||||
@@ -11,29 +11,7 @@
|
||||
<div class="text-truncate">{{ $article['product_name'] }}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<span style="font-size: 1.4em">
|
||||
@if ($article['semences'] ?? false)
|
||||
{{ $article['semences']['price'] ?? null }}</span> €
|
||||
@else
|
||||
-
|
||||
@endif
|
||||
</span><br/>
|
||||
<strong>Semence</strong>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<span style="font-size: 1.4em">
|
||||
@if ($article['plants'] ?? false)
|
||||
{{ $article['plants']['price'] }}</span> €
|
||||
@else
|
||||
-
|
||||
@endif
|
||||
</span><br/>
|
||||
<strong>Plant</strong>
|
||||
</div>
|
||||
</div>
|
||||
@include('Shop.Articles.partials.article_' . $product_type)
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user