CRM - tp 1,2, et 3 bientot fini
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
@extends('layouts.app')
|
||||
@section('content')
|
||||
<h3> Liste des produtis : </h3>
|
||||
<table>
|
||||
<tr>
|
||||
<th>Produit</th>
|
||||
<th>Prix</th>
|
||||
<th>Stock</th>
|
||||
</tr>
|
||||
@foreach($products as $produit)
|
||||
<tr>
|
||||
<td>{{ $produit['name'] }}</td>
|
||||
<td>{{ $produit['price'] }}</td>
|
||||
<td>{{ $produit['stock'] }}</td>
|
||||
|
||||
<td>@if($produit['stock'] < 5 && $produit['stock'] != 0)
|
||||
Stock faible
|
||||
|
||||
@else
|
||||
Stock disponible
|
||||
</td>
|
||||
@endif
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user