fix on customer auth, fix filters on shelves, refactor for article_nature, add slug
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
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>
|
||||
<p class="content-text">{!! Str::limit($article['description'], 500) !!}</p>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
|
||||
@@ -1,38 +1,19 @@
|
||||
@if ($article_nature ?? false)
|
||||
<div class="row">
|
||||
<div class="col-7">
|
||||
@if ($article_nature == 'semences')
|
||||
<strong>Semences</strong><br/>
|
||||
<small>
|
||||
{{ $article['semences']['variation'] ?? null }}
|
||||
</small>
|
||||
@endif
|
||||
@if ($article_nature == 'plants')
|
||||
<strong>Plants</strong><br/>
|
||||
<small>
|
||||
{{ $article['plants']['variation'] ?? null }}
|
||||
</small>
|
||||
@endif
|
||||
<strong>{{ $article_nature }}</strong><br/>
|
||||
<small>
|
||||
{{ $article[$article_nature]['variation'] ?? null }}
|
||||
</small>
|
||||
</div>
|
||||
<div class="col-5 text-right" style="font-weight: 700; font-size: 1.1em;">
|
||||
@if ($article_nature == 'semences')
|
||||
<span style="font-size: 1.4em">
|
||||
@if ($article['semences'] ?? false)
|
||||
{{ $article['semences']['price'] ?? null }}</span> €
|
||||
@else
|
||||
-
|
||||
@endif
|
||||
</span><br/>
|
||||
@endif
|
||||
@if ($article_nature == 'plants')
|
||||
<span style="font-size: 1.4em">
|
||||
@if ($article['plants'] ?? false)
|
||||
{{ $article['plants']['price'] }}</span> €
|
||||
@else
|
||||
-
|
||||
@endif
|
||||
</span><br/>
|
||||
@endif
|
||||
<span style="font-size: 1.4em">
|
||||
@if ($article[$article_nature] ?? false)
|
||||
{{ $article[$article_nature]['price'] ?? null }}</span> €
|
||||
@else
|
||||
-
|
||||
@endif
|
||||
</span><br/>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@@ -1,12 +1,19 @@
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<span style="font-size: 1.4em">
|
||||
@if ($article['merchandises'] ?? false)
|
||||
{{ $article['merchandises']['price'] ?? null }}</span> €
|
||||
@else
|
||||
-
|
||||
@endif
|
||||
</span><br/>
|
||||
<strong>Marchandise</strong>
|
||||
@if ($article_nature ?? false)
|
||||
<div class="row">
|
||||
<div class="col-7">
|
||||
<strong>{{ $article_nature }}</strong><br/>
|
||||
<small>
|
||||
{{ $article[$article_nature]['variation'] ?? null }}
|
||||
</small>
|
||||
</div>
|
||||
<div class="col-5 text-right" style="font-weight: 700; font-size: 1.1em;">
|
||||
<span style="font-size: 1.4em">
|
||||
@if ($article[$article_nature] ?? false)
|
||||
{{ $article[$article_nature]['price'] ?? null }}</span> €
|
||||
@else
|
||||
-
|
||||
@endif
|
||||
</span><br/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
Reference in New Issue
Block a user