fixes
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
'data' => $article['offers']['plants'],
|
||||
'title' => 'Plant',
|
||||
'model' => 'plants',
|
||||
'bgClass' => 'bg-green',
|
||||
'bgClass' => 'bg-green-dark',
|
||||
])
|
||||
@endif
|
||||
|
||||
@@ -44,7 +44,6 @@
|
||||
label: '{{ __('Commander') }}',
|
||||
className: 'btn-success',
|
||||
callback: function() {
|
||||
console.log('ici');
|
||||
window.location = "{{ route('Shop.Basket.basket') }}";
|
||||
}
|
||||
},
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<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' }}">
|
||||
<div class="card {{ (($article_nature ?? false) == 'semences') ? 'bg-yellow' : 'bg-green-dark' }}">
|
||||
<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">
|
||||
|
||||
@@ -1,36 +1,38 @@
|
||||
<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
|
||||
@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
|
||||
</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
|
||||
</div>
|
||||
</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
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@@ -1,4 +1,4 @@
|
||||
<div class="row pb-3 bg-light">
|
||||
<div class="row pb-3">
|
||||
<div class="col-9">
|
||||
<div class="row pt-2">
|
||||
<div class="col-10">
|
||||
|
||||
Reference in New Issue
Block a user