is_enabled_pusher_broadcast) wire:poll.2s @endif> @if($status == 'billed')
@lang('modules.order.thankYouMessage', ['restaurant' => restaurant()->name])
@lang('modules.order.pleaseProceedToPayment')
@if($cashDue)
@lang('modules.order.amountDue'): {{ currency_format($cashDue, restaurant()->currency_id) }}
@endif @if($qrCodeImageUrl)
QR Code
@lang('modules.billing.paybyQr')
@endif
@else
@if(restaurant()->logo_url) @endif
{{ restaurant()->name }}
{{ (isOrderPrefixEnabled()) ? $formattedOrderNumber : __('modules.order.orderNumber') . ' #' . $orderNumber }} @if($orderType) {{ ucwords(str_replace('_', ' ', __("modules.order.$orderType"))) }} @endif
@if(pusherSettings()->is_enabled_pusher_broadcast)
@lang('app.realTime')
@endif
@php $customerDisplayEuSelectable = restaurant()->selectableEuAllergenKeys(); $customerDisplayEuEnabled = count($customerDisplayEuSelectable) > 0; @endphp
#
@lang('modules.order.qty')
@lang('modules.menu.itemName')
@lang('modules.order.amount')
@if(count($orderItems) > 0)
@foreach($orderItems as $index => $item)
{{ $index + 1 }}
{{ $item['qty'] }}
{{ $item['name'] }} @if($item['variation'] && $item['variation']['name']) {{ $item['variation']['name'] }} @endif
@if(!empty($item['modifiers']))
@foreach($item['modifiers'] as $mod) {{ $mod['name'] }}@if(isset($mod['price'])) ({{ currency_format($mod['price'], restaurant()->currency_id) }})@endif @endforeach
@endif @php $cdDietary = \App\Support\DietaryLabels::normalize( array_filter((array) ($item['dietary_labels'] ?? []), 'is_string') ); @endphp @if (count($cdDietary) > 0)
@foreach ($cdDietary as $cdDk) @php $cdDietaryLabel = __(\App\Support\DietaryLabels::langKey($cdDk)); @endphp {{ $cdDietaryLabel }} @endforeach
@endif @if ($customerDisplayEuEnabled && !empty($item['eu_allergen_keys'])) @php $cdRowAllergens = array_values(array_unique(array_intersect( \App\Support\EuAnnexIiAllergens::keys(), $customerDisplayEuSelectable, array_filter((array) $item['eu_allergen_keys'], 'is_string') ))); @endphp @if (count($cdRowAllergens) > 0)
{{ __('modules.settings.euAllergensCustomerDisplayHeading') }}
    @foreach ($cdRowAllergens as $cdAllergenKey) @php $cdAllergenLabel = __(\App\Support\EuAnnexIiAllergens::langKey($cdAllergenKey)); @endphp
  • {{ $cdAllergenLabel }}
  • @endforeach
@endif @endif @if($item['notes'])
@lang('modules.order.note'): {{ $item['notes'] }}
@endif
{{ currency_format($item['qty'] * ($item['total_unit_price'] ?? $item['price']), restaurant()->currency_id) }} @lang('modules.order.price'): {{ currency_format($item['total_unit_price'] ?? $item['price'], restaurant()->currency_id) }}
@endforeach
@else
@lang('messages.noItemAdded')
@endif
@lang('modules.order.subTotal') {{ currency_format($subTotal, restaurant()->currency_id) }}
@if($discount > 0)
@lang('modules.order.discount') -{{ currency_format($discount, restaurant()->currency_id) }}
@endif @if(count($orderItems) > 0 && !empty($taxes)) @foreach($taxes as $tax) @if(isset($tax['amount']) && (float) $tax['amount'] > 0)
@lang('modules.order.tax'): {{ $tax['name'] }} ({{ $tax['percent'] }}%) +{{ currency_format($tax['amount'], restaurant()->currency_id) }}
@endif @endforeach @endif @if(count($orderItems) > 0 && !empty($extraCharges)) @foreach($extraCharges as $charge) @if(isset($charge['amount']) && (float) $charge['amount'] > 0)
@lang('modules.order.charge'): {{ $charge['name'] }} +{{ currency_format($charge['amount'], restaurant()->currency_id) }}
@endif @endforeach @endif @if($tip > 0)
@lang('modules.order.tip') +{{ currency_format($tip, restaurant()->currency_id) }}
@endif @if($deliveryFee > 0)
@lang('modules.order.deliveryFee') +{{ currency_format($deliveryFee, restaurant()->currency_id) }}
@endif
@lang('modules.order.total') {{ currency_format($total, restaurant()->currency_id) }}
@lang('modules.order.thankYouMessage', ['restaurant' => restaurant()->name])
@lang('modules.order.pleaseReviewOrder')
@endif
@push('scripts') @if(pusherSettings()->is_enabled_pusher_broadcast) @endif @endpush