@extends('layouts.app') @section('title', 'Menu Restaurant - Hotel Management System') @section('page-title', 'Menu Restaurant') @section('page-actions')
Kelola Menu
@endsection @section('content')
@foreach($menus as $category => $categoryMenus)
{{ ucfirst($category) }}
@foreach($categoryMenus as $menu)
{{ $menu->name }}

{{ $menu->description }}

Rp {{ number_format($menu->price, 0, ',', '.') }} @if($menu->is_available) Tersedia @else Tidak Tersedia @endif
@endforeach
@endforeach @foreach($stockItems as $category => $categoryStockItems)
{{ ucfirst($category) }} (Stok)
@foreach($categoryStockItems as $stockItem)
{{ $stockItem->name }}

{{ $stockItem->description }}

Rp {{ number_format($stockItem->selling_price, 0, ',', '.') }} {{ $stockItem->current_stock }} {{ $stockItem->unit }}
Stok: {{ $stockItem->current_stock }} {{ $stockItem->unit }} @if($stockItem->stock_status == 'out_of_stock') Habis @elseif($stockItem->stock_status == 'low_stock') Stok Rendah @else Tersedia @endif
@endforeach
@endforeach
@if($menus->isEmpty())
Belum ada menu restaurant

Silakan tambahkan menu restaurant terlebih dahulu

Tambah Menu
@endif @endsection