@php $data = json_decode($data); $custom_kot_products = json_decode($custom_kot_products); $print_title = "KOT"; if(count((array)$custom_kot_products) > 0){ $products = $custom_kot_products; }else{ $products = $data->products; } @endphp Order {{ $print_title }} #{{ $data->order_number }}
{{ $print_title }}
@if ($data->restaurant_mode == 1) @if ($data->waiter_data !='') @endif @endif
Order #{{ $data->order_number }} Date: {{ $data->created_at_label }}
Type: {{ $data->order_type }} Table: {{ ($data->table != '')?$data->table:'-' }}
Waiter: {{ ($data->waiter_data !='')?$data->waiter_data->user_code .'-'.$data->waiter_data->fullname:'-' }}
@foreach ($products as $order_products) @php $addon_spacing = ''; $addon_indicator = ''; if(isset($order_products->parent_order_product) && $order_products->parent_order_product == false){ $addon_spacing = ' pl-12'; $addon_indicator = '+ '; } @endphp @endforeach
Description Qty
{{ $addon_indicator }}{{ $order_products->product_code.'-'.$order_products->name }} {{ $order_products->quantity }}