@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)
@if (user_can('Delete Order')) @endif @forelse ($orderDetail->items->load('modifierOptions') as $key => $item) @if (user_can('Delete Order')) @endif @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 }}
@if (isset($item->menuItemVariation))
{{ $item->menuItemVariation->variation }}
@endif @if ($item->modifierOptions->isNotEmpty())
@foreach ($item->modifierOptions as $modifier)
{{ $modifier->name }} {{ currency_format($modifier->price) }}
@endforeach
@endif
{{ $item->quantity }} {{ currency_format($item->price) }} {{ currency_format($item->amount + $item->modifierOptions->sum('price')) }}
@lang('messages.noItemAdded')
@lang('modules.order.totalItem')
{{ count($orderDetail->items) }}
@lang('modules.order.subTotal')
{{ currency_format($orderDetail->sub_total, restaurant()->currency_id) }}
@if (!is_null($orderDetail->discount_amount))
@lang('modules.order.discount') @if ($orderDetail->discount_type == 'percent') ({{ rtrim(rtrim($orderDetail->discount_value), '.') }}%) @endif
-{{ currency_format($orderDetail->discount_amount, restaurant()->currency_id) }}
@endif @foreach ($orderDetail->charges as $item)
{{ $item->charge->charge_name }} @if ($item->charge->charge_type == 'percent') ({{ $item->charge->charge_value }}%) @endif
@if ($item->charge->charge_type == 'percent') {{ currency_format(($item->charge->charge_value / 100) * ($order->sub_total - ($order->discount_amount ?? 0))) }} @else {{ currency_format($item->charge->charge_value) }} @endif
@endforeach @foreach ($orderDetail->taxes as $item)
{{ $item->tax->tax_name }} ({{ $item->tax->tax_percent }}%)
{{ currency_format(($item->tax->tax_percent / 100) * ($orderDetail->sub_total - ($orderDetail->discount_amount ?? 0)), restaurant()->currency_id) }}
@endforeach
@lang('modules.order.total')
{{ currency_format($orderDetail->total, restaurant()->currency_id) }}
@if ($orderDetail->status == 'billed') @endif
@endif