@lang('modules.order.orderNumber') #{{ $orderNumber }}
@if ($orderType == 'dine_in')
@if (!is_null($tableNo)) {{ $tableNo }} @else @lang('modules.order.setTable') @endif
@endif
@if ($orderType == 'dine_in')
@lang('modules.order.noOfPax')
@if ($this->orderNote) @endif
@lang('modules.order.waiter'): @if(auth()->user()->roles->pluck('display_name')->contains('Waiter')) {{ $users->where('id', $selectWaiter)->first()->name ?? __('modules.order.selectWaiter') }} @else @foreach ($users as $item) @endforeach @endif
@endif @if ($orderType == 'delivery')
@foreach ($deliveryExecutives as $item) @endforeach
@endif
@forelse ($orderItemList as $key => $item) @php $displayPrice = $this->getItemDisplayPrice($key); $totalAmount = $orderItemAmount[$key]; @endphp @empty @endforelse
@lang('modules.menu.itemName') @lang('modules.order.qty') @lang('modules.order.amount') @lang('app.action')
{{ $item->item_name }}
{{ (isset($orderItemVariation[$key]) ? $orderItemVariation[$key]->variation : '') }}
@if (!empty($itemModifiersSelected[$key]))
@foreach ($itemModifiersSelected[$key] as $modifierOptionId)
{{ $this->modifierOptions[$modifierOptionId]->name }} {{ currency_format($this->modifierOptions[$modifierOptionId]->price, restaurant()->currency_id) }}
@endforeach
@endif
{{ currency_format($totalAmount, restaurant()->currency_id) }}
@lang('messages.noItemAdded')
@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 @if (!$orderID && count($orderItemList) > 0 && $extraCharges) @foreach ($extraCharges as $charge)
{{ $charge->charge_name }} @if ($charge->charge_type == 'percent') ({{ $charge->charge_value }}%) @endif
{{ currency_format($charge->getAmount($discountedTotal), restaurant()->currency_id) }}
@endforeach @endif @if ($taxMode == 'order') @foreach ($taxes as $item)
{{ $item->tax_name }} ({{ $item->tax_percent }}%)
{{ currency_format(($item->tax_percent / 100) * $discountedTotal, restaurant()->currency_id) }}
@endforeach @else @php // Show item-wise tax breakdown above total tax $taxTotals = []; $isInclusive = restaurant()->tax_inclusive ?? false; foreach ($orderItemTaxDetails as $item) { $qty = $item['qty'] ?? 1; if (!empty($item['tax_breakup'])) { foreach ($item['tax_breakup'] as $taxName => $taxInfo) { if (!isset($taxTotals[$taxName])) { $taxTotals[$taxName] = [ 'percent' => $taxInfo['percent'], 'amount' => 0 ]; } $taxTotals[$taxName]['amount'] += $taxInfo['amount'] * $qty; } } } @endphp @if (!empty($taxTotals)) @foreach ($taxTotals as $taxName => $taxInfo)
{{ $taxName }} ({{ $taxInfo['percent'] }}%)
{{ currency_format($taxInfo['amount'], restaurant()->currency_id) }}
@endforeach
@lang('modules.order.totalTax') @if ($isInclusive) (@lang('modules.settings.taxInclusive')) @else (@lang('modules.order.taxExclusive')) @endif
{{ currency_format($totalTaxAmount, restaurant()->currency_id) }}
@endif @endif
@lang('modules.order.total')
{{ currency_format($total, restaurant()->currency_id) }}
@if (in_array('KOT', restaurant_modules()))
@endif @if(!$orderID)
@endif