| Image | Name {{ $chev('name') }} | Category {{ $chev('category') }} | Price {{ $chev('price') }} | Stock | Last Movement | Deleted | Actions |
|---|---|---|---|---|---|---|---|
|
@php
$img = $dish->public_image_url ?: asset('assets/placeholders/dish-placeholder.svg');
$base = $dish->image_base;
$manifestEntry = $base ? App\Support\ImageManifest::find('dish', $base) : null;
@endphp
@if($base && $manifestEntry)
|
{{ $dish->name }} | {{ $dish->category?->name ?? '-' }} | ₦{{ number_format($dish->price, 2) }} |
@if(\Illuminate\Support\Facades\Schema::hasColumn('dishes','stock'))
{{ (int)($dish->stock ?? 0) }}
@if($dish->isOutOfStock())
Out of Stock
@elseif($dish->isLowStock())
Low Stock
@endif
@else
—
@endif
|
@if(!empty($dish->last_movement_at)) {{ \Carbon\Carbon::parse($dish->last_movement_at)->diffForHumans() }} @else — @endif | @if($dish->deleted_at) {{ $dish->deleted_at->diffForHumans() }} @else — @endif |
@if(\Illuminate\Support\Facades\Route::has('admin.dishes.inventory.history'))
Inventory History
@endif
@if(!$dish->deleted_at && \Illuminate\Support\Facades\Schema::hasColumn('dishes','stock'))
@endif
@if($dish->deleted_at)
@else
Edit
@endif
|
|
No dishes found.
Create your first dish
|
|||||||