Files
Laravel/mini-crm/resources/views/index.blade.php
T

35 lines
598 B
PHP
Raw Normal View History

2026-10-07 16:34:12 +02:00
<!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>