@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) Logo @endif
{{ restaurant()->name }}
@lang('modules.order.orderNumber') #{{ $orderNumber ?? '--' }} @if($orderType) {{ ucwords(str_replace('_', ' ', __("modules.order.$orderType"))) }} @endif
@if(count($orderItems) > 0)
@foreach($orderItems as $item)
{{ $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 @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(!empty($taxes)) @foreach($taxes as $tax)
@lang('modules.order.tax'): {{ $tax['name'] }} ({{ $tax['percent'] }}%) +{{ isset($tax['amount']) ? currency_format($tax['amount'], restaurant()->currency_id) : '' }}
@endforeach @endif @if(!empty($extraCharges)) @foreach($extraCharges as $charge)
@lang('modules.order.charge'): {{ $charge['name'] }} +{{ currency_format($charge['amount'], restaurant()->currency_id) }}
@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