@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
| {{ $kot->order->show_formatted_order_number }} | {{ flipText(__('modules.table.table'), $appLocale, $rtlPrintingChoice) }}: {{ $kot->order->table ? $kot->order->table->table_code : '-' }} |
| {{ flipText(__('app.date'), $appLocale, $rtlPrintingChoice) }}: {{ $kot->created_at->timezone($kot->branch->restaurant->timezone)->format(dateFormat()) }} | {{ flipText(__('app.time'), $appLocale, $rtlPrintingChoice) }}: {{ $kot->created_at->timezone($kot->branch->restaurant->timezone)->format(timeFormat()) }} |
| {{ flipText(__('modules.order.waiter'), $appLocale, $rtlPrintingChoice) }}: {{ $kot->order->waiter->name }} |
| @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, $rtlPrintingChoice) }}: {{ $kotOrderTypeLabel }} | @if($kot->order->order_type === 'pickup' && $kot->order->pickup_date) {{ flipText(__('modules.order.pickupAt'), $appLocale, $rtlPrintingChoice) }}: {{ \Carbon\Carbon::parse($kot->order->pickup_date)->timezone($kot->branch->restaurant->timezone)->format(timeFormat()) }} @endif |
| {{ flipText(__('modules.menu.itemName'), $appLocale, $rtlPrintingChoice) }} | {{ flipText(__('modules.order.qty'), $appLocale, $rtlPrintingChoice) }} |
|---|---|
|
{{ flipText($item->menuItem->item_name, $appLocale, $rtlPrintingChoice) }}
@if (count($receiptLanguages) > 1 && $item->menuItem->translations->count() > 1)
{{ flipText($item->menuItem->getTranslatedValue('item_name', $receiptLanguages[1]), $receiptLanguages[1], $rtlPrintingChoice) }} @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, $rtlPrintingChoice) }}: {{ $item->note }}
@endif
|
{{ $item->quantity }} |