Jika tidak ada data yang menunjukkan msg dan 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