@include('layouts.navigation')
{{-- Header Stats Cards --}}
🍗

{{ $products->count() }}

Total Menu

{{ $products->where('stock', '>', 50)->count() }}

In Stock

{{ $products->where('stock', '<=', 50)->where('stock', '>', 0)->count() }}

Low Stock

{{ $products->where('stock', 0)->count() }}

Out of Stock

{{-- Filter & Actions Bar --}}
+ Add Menu
@if (session('message'))
{{ session('message') }}
@endif {{-- Data Table --}}
@forelse ($products as $index => $product) @empty @endforelse
No Image Menu Price Stock Status Actions
{{ $index + 1 }} {{ $product->name }} {{ $product->name }} Rp {{ number_format($product->price, 0, ',', '.') }} {{ $product->stock }} @if($product->stock > 50) High Stock @elseif($product->stock > 0) Low Stock @else Out of Stock @endif
{{-- --}} 👁️ ✏️
@csrf @method('DELETE')
📭

No Menu found

{{-- Pagination Info --}}