@php use App\Models\KotPlace; $multipleKots = KotPlace::where('is_active', true)->get(); @endphp @if (in_array('Kitchen', restaurant_modules()) && user()->can('Show Kitchen Place')) {{-- Static link --}} @livewire('sidebar-dropdown-menu', [ 'name' => __('kitchen::modules.menu.kitchenSettings'), 'link' => route('kitchen.kitchen-places.index'), 'active' => request()->routeIs('kitchen.kitchen-places.index'), ]) {{-- All Kitchen KOT --}} @livewire('sidebar-dropdown-menu', [ 'name' => __('kitchen::modules.menu.allKitchenKot'), 'link' => route('kitchen.all-kot.index'), 'active' => request()->routeIs('kitchen.all-kot.index'), ]) {{-- Dynamic KOTs --}} @foreach ($multipleKots as $kotPlace) @livewire('sidebar-dropdown-menu', [ 'name' => $kotPlace->name, 'link' => route('kitchen.kot.show', ['id' => $kotPlace->id]), 'active' => request()->routeIs('kitchen.kot.show') && request()->route('id') == $kotPlace->id, ]) @endforeach @endif