@php $orderStats = getRestaurantOrderStats(branch()->id); $orderLimitReached = !$orderStats['unlimited'] && $orderStats['current_count'] >= $orderStats['order_limit']; @endphp
{{-- Search and Reset Section --}}
Search
@if($search)
@endif
@lang('app.reset')
is_null($menuId), 'bg-white text-gray-700 hover:bg-gray-100 dark:bg-gray-800 dark:text-gray-200 dark:hover:bg-gray-700' => !is_null($menuId), ])> @lang('app.showAll')
@foreach ($menuList as $index => $menu)
$menuId == $menu->id, 'bg-white text-gray-700 hover:bg-gray-100 dark:bg-gray-800 dark:text-gray-200 dark:hover:bg-gray-700' => $menuId != $menu->id, ])> {{ $menu->getTranslation('menu_name', session('locale', app()->getLocale())) }}
@endforeach
{{-- Categories Section --}}
is_null($filterCategories), 'bg-white text-gray-700 hover:bg-gray-100 dark:bg-gray-800 dark:text-gray-200 dark:hover:bg-gray-700' => !is_null($filterCategories), ])> @lang('app.showAll')
@foreach ($this->categoryList as $category)
$filterCategories == $category->id, 'bg-white text-gray-700 hover:bg-gray-100 dark:bg-gray-800 dark:text-gray-200 dark:hover:bg-gray-700' => $filterCategories != $category->id, ])> {{ $category->category_name }}
{{ $category->items_count }}
@endforeach
{{-- Menu Items Grid --}}
@forelse ($this->menuItems as $item)
!$orderLimitReached && $item->in_stock, "cursor-not-allowed opacity-60" => $orderLimitReached || !$item->in_stock, "bg-gray-100 dark:bg-gray-800" => !$item->in_stock, "bg-white dark:bg-gray-900" => $item->in_stock && !$orderLimitReached, "bg-gray-200 dark:bg-gray-800" => $orderLimitReached, ]) tabindex="{{ $orderLimitReached ? '-1' : '0' }}" > {{-- Loading Overlay --}}
{{-- Image Section --}} @if (!$restaurant->hide_menu_item_image_on_pos)
@endif {{-- Content Section --}}
{{ $item->item_name }}
@if ($orderLimitReached)
@lang('messages.orderLimitReached')
@elseif (!$item->in_stock)
Out of stock
@else
@if ($item->variations_count == 0)
{{ currency_format($item->price, $restaurant->currency_id) }}
@else
@lang('modules.menu.showVariations')
@endif
@endif
@empty
@lang('messages.noItemAdded')
@endforelse
@if(!$this->allItemsLoaded)
@lang('messages.loadingData')
@else
@lang('messages.allItemsLoaded')
@endif