{{-- Order Type Indicator --}} @if($orderTypeId)
@lang('modules.settings.orderType'): {{ \App\Models\OrderType::find($orderTypeId)?->order_type_name ?? ucfirst($orderType) }} @if($orderTypeSlug === 'delivery' && $selectedDeliveryApp) Platform: @if($selectedDeliveryApp === 'default') Default @else {{ \App\Models\DeliveryPlatform::find($selectedDeliveryApp)?->name ?? 'Unknown' }} @endif @endif
@endif
@if($customerId)
{{ $customer->name }}
@if(user_can('Update Order')) @endif
@else + @lang('modules.order.addCustomerDetails') @endif
@if(!isOrderPrefixEnabled()) @lang('modules.order.orderNumber') #{{ $orderNumber }} @else {{ $formattedOrderNumber }} @endif
@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 @if ($orderType == 'pickup')
@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 && user_can('Add Discount on POS'))
@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 ($orderType === 'delivery')
@lang('modules.delivery.deliveryFee') @if($deliveryFee == 0) (@lang('modules.delivery.freeDelivery')) @endif
@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.settings.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
@lang('modules.order.reservationConfirmation')

@lang('modules.order.tableHasReservation')

@lang('modules.order.reservationFor'): {{ $this->reservationCustomer?->name ?? 'N/A' }}

@lang('modules.order.reservationTime'): {{ $this->reservation?->reservation_date_time?->format('M d, Y g:i A') ?? 'N/A' }}

@lang('modules.order.isThisSameCustomer')

@lang('app.cancel')
@lang('modules.order.differentCustomer') @lang('modules.order.sameCustomer')
@lang('modules.order.changeTable')

@lang('modules.order.confirmTableChange')

@lang('modules.order.currentTable'): {{ $tableNo }}

@if($pendingTable)

@lang('modules.order.changeTo'): {{ $pendingTable->table_code }}

@endif

@lang('modules.order.tableChangeMessage')

@lang('modules.order.tableChangeWarning')

@lang('app.cancel') @lang('modules.order.changeTable')