@lang('modules.order.orderNumber') #{{ $orderNumber }}
@if (!is_null($tableNo)) {{ $tableNo }} @else @lang('modules.order.setTable') @endif
@if ($orderType == 'dine_in')
@lang('modules.order.noOfPax')
@foreach ($users as $item) @endforeach
@endif @if ($orderType == 'delivery')
@foreach ($deliveryExecutives as $item) @endforeach
@endif
@foreach ($kotList as $kot)
@lang('menu.kot') #{{ $kot->kot_number }}
{{ $kot->created_at->timezone(timezone())->translatedFormat('d F, H:i A') }}
@if (user_can('Delete Order')) @endif @forelse ($orderItemList as $key => $item) @continue(!strpos($key, 'kot_' . $kot->id)) @php $itemName = $item->item_name; $itemVariation = (isset($orderItemVariation[$key]) ? $orderItemVariation[$key]->variation : ''); $itemPrice = (isset($orderItemVariation[$key]) ? $orderItemVariation[$key]->price : $item->price); @endphp @if (user_can('Delete Order')) @endif @empty @endforelse
@lang('modules.menu.itemName') @lang('modules.order.qty') @lang('modules.order.price') @lang('modules.order.amount') @lang('app.action')
{{ $itemName }}
{{ $itemVariation }}
@if (!empty($itemModifiersSelected[$key]))
@foreach ($itemModifiersSelected[$key] as $modifierOptionId)
{{ $this->modifierOptions[$modifierOptionId]->name }} {{ currency_format($this->modifierOptions[$modifierOptionId]->price) }}
@endforeach
@endif
{{ currency_format($itemPrice)}} {{ currency_format(($orderItemQty[$key] * ($itemPrice + (isset($orderItemModifiersPrice[$key]) ? $orderItemModifiersPrice[$key] : 0)) )) }}
@lang('messages.noItemAdded')
@endforeach
@if (count($orderItemList) > 0)
@lang('modules.order.addDiscount')
@endif
@lang('modules.order.totalItem')
{{ count($orderItemList) }}
@lang('modules.order.subTotal')
{{ currency_format($subTotal, restaurant()->currency_id) }}
@if ($discountAmount)
@lang('modules.order.discount') @if ($discountType == 'percent') ({{ $discountValue }}%) @endif
-{{ currency_format($discountAmount, restaurant()->currency_id) }}
@endif @foreach ($extraCharges as $item)
{{ $item->charge_name }} @if ($item->charge_type == 'percent') ({{ $item->charge_value }}%) @endif
@if ($item->charge_type == 'percent') {{ currency_format(($item->charge_value / 100) * ($subTotal - ($discountAmount ?? 0))) }} @else {{ currency_format($item->charge_value) }} @endif
@endforeach @foreach ($taxes as $item)
{{ $item->tax_name }} ({{ $item->tax_percent }}%)
{{ currency_format(($item->tax_percent / 100) * ($subTotal - ($discountAmount ?? 0)), restaurant()->currency_id) }}
@endforeach
@lang('modules.order.total')
{{ currency_format($total, restaurant()->currency_id) }}
@if ($orderDetail->status == 'kot')
@lang('modules.order.newKot') @if (user_can('Delete Order')) @endif
@endif @if ($orderDetail->status == 'billed')
@endif