@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 ($order->order_type == 'delivery')
@if ($order->deliveryExecutive)
@lang('modules.order.deliveryExecutive')
{{ $order->deliveryExecutive->name }}
@else @foreach ($deliveryExecutives as $deliveryExecutive) @endforeach @endif
@endif
@if (user_can('Update Order')) @if ($order->status != 'paid') @endif @if (user_can('Delete Order')) @endif @endif
@endif
@if ($order)
@if (!in_array($order->status, ['paid', 'payment_due', 'canceled']) && user_can('Delete Order')) @endif @forelse ($order->items as $key => $item) @if (!in_array($order->status, ['paid', 'payment_due', 'canceled']) && user_can('Delete Order')) @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 : '' }}
@if($item->modifierOptions->isNotEmpty())
@foreach ($item->modifierOptions as $modifier)
{{ $modifier->name }} {{ currency_format($modifier->price) }}
@endforeach
@endif
{{ $item->quantity }} {{ currency_format($item->amount) }}
@lang('messages.noItemAdded')
@lang('modules.order.totalItem')
{{ count($order->items) }}
@lang('modules.order.subTotal')
{{ currency_format($order->sub_total) }}
@if (!is_null($order->discount_amount))
@lang('modules.order.discount') @if ($order->discount_type == 'percent') ({{ rtrim(rtrim(number_format($order->discount_value, 2), '0'), '.') }}%) @endif
-{{ currency_format($order->discount_amount) }}
@endif @foreach ($order->taxes as $item)
{{ $item->tax->tax_name }} ({{ $item->tax->tax_percent }}%)
{{ currency_format(($item->tax->tax_percent / 100) * $order->sub_total) }}
@endforeach
@lang('modules.order.total')
{{ currency_format($order->total) }}
@lang('modules.order.balanceReturn')
@php $totalBalance = $order->payments->sum('balance'); @endphp {{ currency_format($totalBalance > 0 ? $totalBalance : 0) }}
@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') && user_can('Delete Order')) @endif @if (user_can('Delete Order')) @endif
@if ($order->payments->count())
@foreach ($order->payments as $key => $item) @endforeach
@lang('modules.order.amount') @lang('modules.order.paymentMethod') @lang('app.dateTime')
{{ currency_format($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
{{ __('app.close') }}
@if ($order) @lang('modules.table.availableTables') @livewire('pos.setTable') @lang('modules.order.cancelOrder')? @lang('modules.order.cancelOrderMessage') {{ __('app.cancel') }} @lang('modules.order.cancelOrder') @lang('modules.order.deleteOrder')? @lang('modules.order.deleteOrderMessage') {{ __('app.cancel') }} @lang('modules.order.deleteOrder') @endif