TP6 et avant
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Mini-CRM</title>
|
||||
</head>
|
||||
<body>
|
||||
@extends('layouts.app')
|
||||
@section('content')
|
||||
<table border="1" >
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Produit</th>
|
||||
<th>Prix</th>
|
||||
<th>Stock</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($products as $products)
|
||||
<tr>
|
||||
<td>{{$products['name'] }}</td>
|
||||
<td>{{$products['price'] }}</td>
|
||||
@if( $products['stock'] < 5)
|
||||
<td>Stock faible.</td>
|
||||
@else
|
||||
<td>Disponible.</td>
|
||||
@endif
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
@endsection
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user