affichage index promo dans le bo

This commit is contained in:
Olivier Legat 2021-06-07 17:44:25 +02:00
parent 464f54fafd
commit 2a8e16da3a

View file

@ -27,10 +27,10 @@
<td>{{$promotion->discount_value}}</td>
<td>{{$promotion->date_start}}</td>
<td>{{$promotion->date_end}}</td>
<td style="display: flex;">
<td>
@foreach ($promotion->products as $product)
<div class="card col-md-3">
<img class="card-img-top" src="/images/produits/{{$product->picture}}" alt="{{$product->name}}">
<div class="col-md-12 d-flex">
<img src="/images/produits/{{$product->picture}}" alt="{{$product->name}}" style="max-height: 100px;">
<div class="card-body">
<h5 class="card-title"><a href="{{route('bo.products.edit', $product->id)}}">{{$product->name}}</a></h5>
<small class="text-muted">Prix HT avant promo : {{$product->price}}</small>