Si aucune donnée ne montre MSG et Chang Style Laravel
@if($products->count())
@foreach ($products as $item)
<tr @if($loop->first) class="bg-info" @endif>
<th>{{ $item->id }}</th>
<td>{{ $item->title }}</td>
<td>${{ number_format($item->price,2) }}</td>
<td>{{ $item->cat->title }}</td>
</tr>
@endforeach
@else
<div class="alert alert-danger">No Products Added</div>
@endif
Xanthous Xenomorph