status == 'kot' && !is_null($order->table_id)) href="{{ route('pos.order', $order->table_id) }}" wire:navigate.hover @elseif ($order->status == 'kot' && is_null($order->table_id)) href="{{ route('pos.kot', $order->id).'?showOrderDetail=true' }}" wire:navigate.hover @else wire:click="$dispatch('showOrderDetail', { id: {{ $order->id }} })" @endif wire:key='order-item-{{ $order->id . microtime() }}' href="javascript:;">

@if ($order->order_type == 'pickup') @elseif($order->order_type == 'delivery') @else {{ $order->table->table_code ?? '--' }} @endif

{{ $order->customer->name ?? '--' }}
@lang('modules.order.orderNumber') #{{ $order->order_number }}
($order->status == 'draft'), 'bg-yellow-100 text-yellow-800 dark:bg-yellow-700 dark:text-yellow-400 border border-yellow-400' => ($order->status == 'kot'), 'bg-blue-100 text-blue-800 dark:bg-gray-700 dark:text-blue-400 border border-blue-400' => ($order->status == 'billed' || $order->status == 'out_for_delivery'), 'bg-green-100 text-green-800 dark:bg-gray-700 dark:text-green-400 border border-green-400' => ($order->status == 'paid' || $order->status == 'delivered'), 'bg-red-100 text-red-800 dark:bg-gray-700 dark:text-red-400 border border-red-400' => ($order->status == 'canceled'|| $order->status == 'payment_due'), ])> @lang('modules.order.' . $order->status)
($order->status == 'kot'), 'text-gray-500' => ($order->status == 'draft'), 'text-blue-500' => ($order->status == 'billed' || $order->status == 'out_for_delivery'), 'text-green-500' => ($order->status == 'paid' || $order->status == 'delivered'), 'text-red-500' => ($order->status == 'canceled' || $order->status == 'payment_due'), ]) viewBox="0 0 16 16"> @lang('modules.order.info' . $order->status)
{{ $order->date_time->timezone(timezone())->translatedFormat('F d, Y H:i A') }}
@if ($order->status == 'kot') {{ $order->kot->count() }} @lang('modules.order.kot') @else {{ $order->items->count() }} @lang('modules.menu.item') @endif
{{ currency() }}{{ $order->total }}
@if ($order->status == 'kot' && !is_null($order->table_id) && user_can('Create Order'))
@lang('modules.order.newKot')
@endif @if ($order->waiter)
{{ $order->waiter->name ?? '--' }}
@endif