Add method to get offers by articles with siblings, enhance display
This commit is contained in:
@@ -54,5 +54,7 @@
|
||||
"cancel": "Annuler",
|
||||
"save": "Sauver",
|
||||
"comments": "Notes internes",
|
||||
"comment_add": "Ajout de Note interne"
|
||||
"comment_add": "Ajout de Note interne",
|
||||
"apply": "Appliquer",
|
||||
"close": "Fermer"
|
||||
}
|
||||
@@ -8,7 +8,7 @@
|
||||
<div class="card-body">
|
||||
<div class="row card-title">
|
||||
<div class="col-10" style="font-weight: bold; color: green;">
|
||||
<h2 style="font-size: 1.4em;">{{ $article['parent_name'] }}</h2>
|
||||
<h2 style="font-size: 1.3em;">{{ $article['parent_name'] }}</h2>
|
||||
{{ $article['product_name'] }}
|
||||
</div>
|
||||
<div class="col-2 p-0 text-right" style="font-size: 2em; color: red;">
|
||||
|
||||
@@ -1,55 +1,49 @@
|
||||
<a href="{{ route('Shop.Articles.show', ['id' => $article['semences']['article_id'] ?? false ]) }}">
|
||||
<div class="row pb-3">
|
||||
<div class="col-12">
|
||||
<div class="card-title" style="font-weight: bold; color: green;">{{ $product_name }}</div>
|
||||
<div class="row pb-3" style="background-color: #CCC;">
|
||||
<div class="col-8">
|
||||
<div class="row pt-2">
|
||||
<div class="col-10">
|
||||
<a href="{{ route('Shop.Articles.show', ['id' => $article['semences']['article_id'] ?? false ]) }}" class="text-decoration-none">
|
||||
<div style="font-weight: bold; color: green; font-size: 1.5em;">{{ $product_name }}</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-2 text-right">
|
||||
<span style="font-size: 2em; color: red;">
|
||||
<i class="fa fa-heart"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<a href="{{ route('Shop.Articles.show', ['id' => $article['semences']['article_id'] ?? false ]) }}" class="text-decoration-none">
|
||||
<div class="row">
|
||||
<div class="col-8">
|
||||
<div class="row">
|
||||
<div class="col-2">
|
||||
<div class="row">
|
||||
<div class="col-9">
|
||||
<img src="{{ App\Repositories\Shop\Articles::getPreviewSrc($article['image'] ?? false) }}" class="card-img-top" alt="...">
|
||||
</div>
|
||||
<div class="col-3 text-center">
|
||||
<span style="font-size: 2em; color: red;">
|
||||
<i class="fa fa-heart"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-10">
|
||||
{!! $article['description'] !!}
|
||||
</div>
|
||||
<div class="col-2">
|
||||
<img src="{{ App\Repositories\Shop\Articles::getPreviewSrc($article['image'] ?? false) }}" class="card-img-top" alt="...">
|
||||
</div>
|
||||
<div class="col-10">
|
||||
{!! $article['description'] !!}
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<div class="row h-100" style="color: green; display: flex;">
|
||||
<div class="col-6 text-center" style="background-color: rgba(0,128,0,0.3); margin: auto;">
|
||||
@if ($article['semences'] ?? false)
|
||||
<span style="font-size: 1.4em; font-weight: bold;">{{ $article['semences']['price'] ?? null }}</span> €<br>
|
||||
{{ $article['semences']['variation'] }}
|
||||
<div>
|
||||
Quantité :
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<p class="card-text">
|
||||
<div class="row" style="color: green;">
|
||||
<div class="col-6 text-center">
|
||||
@if ($article['semences'] ?? false)
|
||||
<span style="font-size: 1.4em; font-weight: bold;">{{ $article['semences']['price'] ?? null }}</span> €<br>
|
||||
{{ $article['semences']['variation'] }}
|
||||
<div>
|
||||
Quantité :
|
||||
</div>
|
||||
@include('components.form.button', [
|
||||
'class' => 'btn-success basket semences',
|
||||
'txt' => 'Ajouter au panier',
|
||||
])
|
||||
@endif
|
||||
</div>
|
||||
<div class="col-6 text-center">
|
||||
@if ($article['plants'] ?? false)
|
||||
<span style="font-size: 1.4em; font-weight: bold;">{{ $article['plants']['price'] }}</span> €<br>
|
||||
{{ $article['plants']['variation'] }}
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</p>
|
||||
</div>
|
||||
@include('components.form.button', [
|
||||
'class' => 'btn-success basket semences',
|
||||
'txt' => 'Ajouter au panier',
|
||||
])
|
||||
@endif
|
||||
</div>
|
||||
<div class="col-6 text-center">
|
||||
@if ($article['plants'] ?? false)
|
||||
<span style="font-size: 1.4em; font-weight: bold;">{{ $article['plants']['price'] }}</span> €<br>
|
||||
{{ $article['plants']['variation'] }}
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
<button type="button" class="btn btn-success">
|
||||
<i class="fa fa-2x fa-seedling"></i>
|
||||
<i class="fa fa-3x fa-seedling float-left"></i>
|
||||
Ajouter au panier la liste des <strong>semences</strong>
|
||||
</button>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<button type="button" class="btn btn-warning">
|
||||
<i class="fab fa-2x fa-pagelines"></i>
|
||||
<i class="fab fa-3x fa-pagelines float-left"></i>
|
||||
Ajouter au panier la liste des <strong>plants</strong>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user