@php $isStandaloneKotDetailPage = request()->routeIs('pos.kot'); $isKotSidebarDetailView = $isStandaloneKotDetailPage && request()->boolean('show-order-detail'); $compactOrderDetailUi = $isKotSidebarDetailView || $isStandaloneKotDetailPage; $shouldStickyAddPayment = $isStandaloneKotDetailPage && isset($orderDetail) && in_array($orderDetail->status, ['billed', 'payment_due']) && user_can('Update Order'); @endphp
| @lang('modules.menu.itemName') | @lang('modules.order.qty') | @lang('modules.order.price') | @lang('modules.order.amount') | @if (user_can('Delete Order') && $orderDetail->status !== 'paid')@lang('app.action') | @endif
|---|---|---|---|---|
|
{{ $item->menuItem->item_name }}
@if ($isFreeItemFromStamp)
@lang('app.freeItem')
@elseif($hasStampDiscount)
@lang('app.stampDiscount') (-{{ currency_format($stampDiscountAmount, restaurant()->currency_id) }})
@endif
@if (isset($item->menuItemVariation))
{{ $item->menuItemVariation->variation }}
@endif
@if ($item->modifierOptions->isNotEmpty())
@foreach ($item->modifierOptions as $modifier)
@endif
{{ $modifier->name ?? $modifier->pivot->modifier_option_name }}
{{ currency_format($modifier->pivot->modifier_option_price ?? $modifier->price, restaurant()->currency_id) }}
@endforeach
|
{{ $item->quantity }} | {{ currency_format($displayPrice, restaurant()->currency_id) }} |
@if ($isFreeItemFromStamp)
{{ currency_format(0, restaurant()->currency_id) }}
{{ currency_format($expectedAmount, restaurant()->currency_id) }}
@elseif($hasStampDiscount)
{{ currency_format($item->amount, restaurant()->currency_id) }}
{{ currency_format($expectedAmount, restaurant()->currency_id) }}
@else
{{ currency_format($item->amount, restaurant()->currency_id) }}
@endif
|
@if (user_can('Delete Order') && $orderDetail->status !== 'paid')
@endif |
| @lang('messages.noItemAdded') | ||||