@if ($showWaiterButtonCheck)
@livewire('forms.callWaiterButton', ['tableNumber' => $table->id ?? null, 'shopBranch' => $shopBranch])
@endif
@if ($restaurant->show_wifi_icon && $restaurant->wifi_name && $restaurant->wifi_password)
@livewire('forms.wifi-button', ['restaurant' => $restaurant])
@endif
@if (isset($orderItemCount) && $orderItemCount > 0)
{{ $orderItemCount }}
@endif
@if (is_null(customer()) && $restaurant->customer_login_required)
@lang('app.login')
@endif
@if (!is_null(customer()))
-
@lang('menu.profile')
-
@lang('menu.myAddresses')
-
@lang('menu.myOrders')
@php
$showLoyaltyMenu = false;
if (function_exists('module_enabled') && module_enabled('Loyalty') && function_exists('restaurant_modules') && in_array('Loyalty', restaurant_modules($restaurant))) {
$loyaltySettings = \Modules\Loyalty\Entities\LoyaltySetting::getForRestaurant($restaurant->id);
if ($loyaltySettings && $loyaltySettings->isEnabled()) {
// Check if points or stamps are enabled for customer site
$pointsEnabled = ($loyaltySettings->enable_points ?? false) && ($loyaltySettings->enable_points_for_customer_site ?? true);
$stampsEnabled = ($loyaltySettings->enable_stamps ?? false) && ($loyaltySettings->enable_stamps_for_customer_site ?? true);
$showLoyaltyMenu = $pointsEnabled || $stampsEnabled;
}
}
@endphp
@if ($showLoyaltyMenu)
-
@lang('loyalty::app.myLoyaltyAccount')
@endif
@if (in_array('Table Reservation', $modules))
-
@lang('menu.myBookings')
@endif
-
@lang('app.logout')
@endif