@if ($order)

@lang('modules.order.orderNumber') #{{ $order->order_number }}
@if ($order->order_type == 'pickup') @elseif($order->order_type == 'delivery') @else @endif @lang('modules.order.' . $order->order_type)

@if ($order->order_type == 'dine_in') @if (!is_null($order->table))

{{ $order->table->table_code ?? '--' }}

@else @lang('modules.order.setTable') @endif @endif
@if ($order->customer_id)
{{ $order->customer->name }}
@else + @lang('modules.order.addCustomerDetails') @endif
{{ $order->date_time->translatedFormat('F d, Y H:i A') }}
@if (user_can('Update Order')) @endif
@endif
@if ($order)
@if (!in_array($order->status, ['paid', 'payment_due', 'canceled'])) @endif @forelse ($order->items as $key => $item) @if (!in_array($order->status, ['paid', 'payment_due', 'canceled'])) @endif @empty @endforelse
@lang('modules.menu.itemName') @lang('modules.order.qty') @lang('modules.order.amount') @lang('app.action')
{{ $item->menuItem->item_name }}
{{ (isset($item->menuItemVariation) ? $item->menuItemVariation->variation : '') }}
{{ $item->quantity }} {{ currency() . $item->amount }}
@lang('messages.noItemAdded')
@lang('modules.order.totalItem')
{{ count($order->items) }}
@lang('modules.order.subTotal')
{{ currency() }}{{ $order->sub_total }}
@foreach ($order->taxes as $item)
{{ $item->tax->tax_name }} ({{ $item->tax->tax_percent }}%)
{{ currency() }}{{ (($item->tax->tax_percent / 100) * $order->sub_total ) }}
@endforeach
@lang('modules.order.total')
{{ currency() }}{{ $order->total }}
@if ($order->status == 'kot' && !is_null($order->table_id)) @endif @if ($order->status == 'billed' || $order->status == 'payment_due') @endif
@lang('app.print') @if ($order->status == 'billed' || $order->status == 'payment_due') @endif
@if ($order->payments->count())
@foreach ($order->payments as $key => $item) @endforeach
@lang('modules.order.amount') @lang('modules.order.paymentMethod') @lang('app.dateTime')
{{ currency() . $item->amount }}
($item->payment_method == 'due')])> @switch($item->payment_method) @case('cash') @break @case('upi') @break @case('card') @break @default @endswitch @lang('modules.order.' . $item->payment_method)
@if ($item->payment_method == 'due') @lang('modules.order.addPayment') @else {{ $item->created_at->timezone(timezone())->translatedFormat('d M, Y h:i A') }} @endif
@endif @if($order->order_type == 'delivery')
@lang('modules.customer.address')
{!! nl2br($order->delivery_address) !!}
@endif @endif
{{ __('Close') }}
@if ($order) @lang('modules.table.availableTables') @livewire('pos.setTable') @lang('modules.order.cancelOrder')? @lang('modules.order.cancelOrderMessage') {{ __('Cancel') }} @lang('modules.order.cancelOrder') @endif