35 lines
598 B
PHP
35 lines
598 B
PHP
|
|
|
||
|
|
<!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>
|