fix layout
This commit is contained in:
@@ -44,7 +44,8 @@
|
||||
label: '{{ __('Commander') }}',
|
||||
className: 'btn-success',
|
||||
callback: function() {
|
||||
window.location = "{{ route('Shop.Orders.order') }}";
|
||||
console.log('ici');
|
||||
window.location = "{{ route('Shop.Basket.basket') }}";
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<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' }}">
|
||||
<div class="card {{ ($article_nature == 'semences') ? '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="card-body p-2 pb-1">
|
||||
<div class="row card-title">
|
||||
<div class="col-12">
|
||||
<!--
|
||||
|
||||
@@ -1,22 +1,36 @@
|
||||
<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 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-6">
|
||||
<span style="font-size: 1.4em">
|
||||
@if ($article['plants'] ?? false)
|
||||
{{ $article['plants']['price'] }}</span> €
|
||||
@else
|
||||
-
|
||||
@endif
|
||||
</span><br/>
|
||||
<strong>Plant</strong>
|
||||
<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>
|
||||
@@ -16,8 +16,8 @@
|
||||
</div>
|
||||
<a href="{{ route('Shop.Articles.show', ['id' => $article['id'] ?? false ]) }}" class="green-dark">
|
||||
<div class="row">
|
||||
<div class="col-2">
|
||||
<img src="{{ App\Repositories\Shop\Articles::getPreviewSrc($article['image'] ?? false) }}" class="card-img-top" alt="...">
|
||||
<div class="col-2 pr-0">
|
||||
<img src="{{ App\Repositories\Shop\Articles::getPreviewSrc($article['image'] ?? false) }}" class="card-img-top shadow" alt="...">
|
||||
</div>
|
||||
<div class="col-10 text-justify">
|
||||
{!! $article['description'] !!}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
@if ($article['semences'] ?? false)
|
||||
<div class="w-100 mt-3 p-1 bg-green-light green-dark rounded-lg border border-success text-center">
|
||||
@if ($article_nature == 'semences')
|
||||
<div class="w-100 mt-3 p-1 bg-yellow yellow-dark rounded-lg border text-center">
|
||||
<span style="font-size: 1.4em; font-weight: bold;">{{ $article['semences']['price'] ?? null }}</span> €<br>
|
||||
{{ $article['semences']['variation'] }}
|
||||
<div>
|
||||
@@ -13,8 +13,8 @@
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if ($article['plants'] ?? false)
|
||||
<div class="w-100 mt-3 p-1 bg-yellow-light yellow-dark border border-warning text-center">
|
||||
@if ($article_nature == 'plants')
|
||||
<div class="w-100 mt-3 p-1 bg-green green-dark rounded-lg border text-center text-white">
|
||||
<span style="font-size: 1.4em; font-weight: bold;">{{ $article['plants']['price'] ?? null }}</span> €<br>
|
||||
{{ $article['plants']['variation'] }}
|
||||
<div>
|
||||
|
||||
Reference in New Issue
Block a user