moins de détails dans le detail commande

This commit is contained in:
Olivier Legat 2021-04-27 09:03:36 +02:00
parent 8b86e52e2b
commit c451aafc7a

View file

@ -37,6 +37,7 @@
<table class="table">
<thead>
<th scope="col">Ref Externe</th>
<th scope="col">Produit</th>
<th scope="col">Quantité</th>
<th scope="col">Prix unitaire HT</th>
@ -49,7 +50,12 @@
@foreach ($order->lines as $line)
<tr>
<td>
@include('bo.products.product-card', ['product' => $line->product])
@if($line->product->product_type == "foodProduct")
{{ $line->product->foodProduct->no_art }}
@endif
</td>
<td>
{{ $line->product->name }}
</td>
<td>{{$line->quantity}}</td>
<td>{{number_format($line->unit_price - $line->discount, 2, ',', ' ')}}€</td>