invert query from offers->articles to articles->offers
This commit is contained in:
25
resources/views/Shop/Articles/article.blade.php
Normal file
25
resources/views/Shop/Articles/article.blade.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<a href="{{ route('Shop.Offers.show', ['id' => $offer['id']]) }}">
|
||||
<div class="card">
|
||||
<img src="{{ App\Repositories\Shop\Articles::getPreviewSrc($offer['article']['image'] ?? false) }}" class="card-img-top" alt="...">
|
||||
<div class="card-body">
|
||||
<span class="card-title">{{ $offer['article']['name'] }}</span>
|
||||
<span class="pull-right">
|
||||
<i class="fa fa-heart"></i>
|
||||
</span>
|
||||
|
||||
<p class="card-text">
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
3.50 €<br>
|
||||
Semence
|
||||
</div>
|
||||
|
||||
<div class="col-6">
|
||||
1.65 €<br>
|
||||
Plant
|
||||
</div>
|
||||
</div>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
Reference in New Issue
Block a user