@lang('modules.order.orderNumber') #{{ $orderDetail->order_number }}

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

@if ($orderDetail->customer_id)
{{ $orderDetail->customer->name }}
@else + @lang('modules.order.addCustomerDetails') @endif
{{ $orderDetail->date_time->translatedFormat('F d, Y H:i A') }}
($orderDetail->status == 'draft'), 'bg-yellow-100 text-yellow-800 dark:bg-yellow-700 dark:text-yellow-400 border border-yellow-400' => ($orderDetail->status == 'kot'), 'bg-blue-100 text-blue-800 dark:bg-blue-700 dark:text-blue-400 border border-blue-400' => ($orderDetail->status == 'billed'), 'bg-green-100 text-green-800 dark:bg-gray-700 dark:text-green-400 border border-green-400' => ($orderDetail->status == 'paid'), 'bg-red-100 text-red-800 dark:bg-red-700 dark:text-red-400 border border-red-400' => ($orderDetail->status == 'canceled'), ])> @lang('modules.order.' . $orderDetail->status)
@if ($orderDetail)
@forelse ($orderDetail->items as $key => $item) @empty @endforelse
@lang('modules.menu.itemName') @lang('modules.order.qty') @lang('modules.order.price') @lang('modules.order.amount') @lang('app.action')
{{ $item->menuItem->item_name }}
{{ (isset($item->menuItemVariation) ? $item->menuItemVariation->variation : '') }}
{{ $item->quantity }} {{ currency() . $item->price }} {{ currency() . $item->amount }}
@lang('messages.noItemAdded')
@lang('modules.order.totalItem')
{{ count($orderDetail->items) }}
@lang('modules.order.subTotal')
{{ currency() }}{{ $orderDetail->sub_total }}
@foreach ($orderDetail->taxes as $item)
{{ $item->tax->tax_name }} ({{ $item->tax->tax_percent }}%)
{{ currency() }}{{ (($item->tax->tax_percent / 100) * $orderDetail->sub_total ) }}
@endforeach
@lang('modules.order.total')
{{ currency() }}{{ $orderDetail->total }}
@if ($orderDetail->status == 'billed') @endif
@endif