@php $appLocale = app()->getLocale(); if (!function_exists('flipText')) { function flipText($text, $language = null, $printingChoice = 'browserPopupPrint') { if ($printingChoice == 'browserPopupPrint') { return $text; } if ($language && in_array($language, ['ar', 'fa', 'ur', 'he', 'ps', 'ku', 'sd', 'ckb'])) { $arabic = new ArPHP\I18N\Arabic(); $text = $arabic->utf8Glyphs($text); return $text; } return $text; } } @endphp
@if(isset($kotPlace) && $kotPlace)
{{ $kotPlace->name }}
@endif
{{ flipText(__('modules.order.kot'), $appLocale, $printingChoice) }} #{{ $kot->kot_number }} @if($kot->token_number)
{{ flipText(__('modules.order.tokenNumber'), $appLocale, $printingChoice) }}: {{ $kot->token_number }}
@endif
{{ $kot->order->show_formatted_order_number }} {{ flipText(__('modules.table.table'), $appLocale, $printingChoice) }}: {{ $kot->order->table ? $kot->order->table->table_code : '-' }}
{{ flipText(__('app.date'), $appLocale, $printingChoice) }}: {{ $kot->created_at->timezone($kot->branch->restaurant->timezone)->format(dateFormat()) }} {{ flipText(__('app.time'), $appLocale, $printingChoice) }}: {{ $kot->created_at->timezone($kot->branch->restaurant->timezone)->format(timeFormat()) }}
@if($kot->order->waiter)
{{ flipText(__('modules.order.waiter'), $appLocale, $printingChoice) }}: {{ $kot->order->waiter->name }}
@endif @if($kot->order->order_type)
@php $kotOrderType = (string) $kot->order->order_type; $kotOrderTypeKey = 'modules.order.' . $kotOrderType; $kotOrderTypeLabel = __($kotOrderTypeKey); if ($kotOrderTypeLabel === $kotOrderTypeKey) { $kotOrderTypeLabel = Str::title(str_replace('_', ' ', $kotOrderType)); } @endphp {{ flipText(__('modules.settings.orderType'), $appLocale, $printingChoice) }}: {{ $kotOrderTypeLabel }} @if($kot->order->order_type === 'pickup' && $kot->order->pickup_date) {{ flipText(__('modules.order.pickupAt'), $appLocale, $printingChoice) }}: {{ \Carbon\Carbon::parse($kot->order->pickup_date)->timezone($kot->branch->restaurant->timezone)->format(timeFormat()) }} @endif
@endif
@php $items = isset($kotPlaceId) ? $kot->items->filter(function($item) use($kotPlaceId) { return $item->menuItem && $item->menuItem->kot_place_id == $kotPlaceId; }) : $kot->items; @endphp @foreach($items as $item) @endforeach
{{ flipText(__('modules.menu.itemName'), $appLocale, $printingChoice) }} {{ flipText(__('modules.order.qty'), $appLocale, $printingChoice) }}
{{ flipText($item->menuItem->item_name, $appLocale, $printingChoice) }} @if (count($receiptLanguages) > 1 && $item->menuItem->translations->count() > 1)
{{ flipText($item->menuItem->getTranslatedValue('item_name', $receiptLanguages[1]), $receiptLanguages[1], $printingChoice) }} @endif @if (isset($item->menuItemVariation))
({{ $item->menuItemVariation->variation }}) @endif @foreach ($item->modifierOptions as $modifier)
• {{ $modifier->name }}
@endforeach @if ($item->note)
{{ flipText(__('modules.order.note'), $appLocale, $printingChoice) }}: {{ $item->note }}
@endif
{{ $item->quantity }}
@if ($kot->note) @endif