{{__('ORDER INVOICE')}}

Order Details

@if (!empty($order->token_no)) @endif @if (!empty($order->shipping_method)) @endif @if (!empty($order->shipping_method)) @endif
Token No: #{{$order->token_no}}
Order Number: #{{$order->order_number}}
Order Date: {{$order->created_at->format('d-m-Y')}}
{{__('Serving Method')}}: @if(strtolower($order->serving_method) == 'on_table') {{__('On Table')}} @elseif(strtolower($order->serving_method) == 'home_delivery') {{__('Home Delivery')}} @elseif(strtolower($order->serving_method) == 'pick_up') {{__('Pick up')}} @endif
Payment Method: {{$order->method}}
Payment Status: {{$order->payment_status}}
Shipping Method: {{$order->shipping_method}}
Shipping Charge: {{$be->base_currency_text_position == 'left' ? $be->base_currency_text : ''}} {{$order->shipping_charge}} {{$be->base_currency_text_position == 'right' ? $be->base_currency_text : ''}}
Grand Total: {{$be->base_currency_text_position == 'left' ? $be->base_currency_text : ''}} {{$order->total}} {{$be->base_currency_text_position == 'right' ? $be->base_currency_text : ''}}

@if ($order->serving_method == 'home_delivery') Billing Details @else Information @endif

@if (!empty($order->billing_lname)) @endif @if (!empty($order->billing_email)) @endif @if (!empty($order->billing_number)) @endif @if (!empty($order->billing_address)) @endif @if (!empty($order->billing_city)) @endif @if (!empty($order->billing_country)) @endif @if ($order->serving_method == 'on_table') @if (!empty($order->table_number)) @endif @if (!empty($order->waiter_name)) @endif @endif @if ($order->serving_method == 'pick_up') @if (!empty($order->pick_up_date)) @endif @if (!empty($order->pick_up_time)) @endif @endif
Billing Name: {{$order->billing_fname }} {{$order->billing_lname}}
Billing Email: {{$order->billing_email}}
Billing Number: {{$order->billing_number}}
Billing Address: {{$order->billing_address}}
Billing City: {{$order->billing_city}}
Billing Country: {{$order->billing_country}}
Table Number: {{$order->table_number}}
Waiter Name: {{$order->waiter_name}}
Pick up Date: {{$order->pick_up_date}}
Pick up Time: {{$order->pick_up_time}}
@if ($order->serving_method == 'home_delivery')

Shipping Details

Shipping Name: {{$order->shpping_fname }} {{$order->shpping_lname}}
Shipping Email: {{$order->shpping_email}}
Shipping Number: {{$order->shpping_number}}
Shipping Address: {{$order->shpping_address}}
Shipping City: {{$order->shpping_city}}
Shipping Country: {{$order->shpping_country}}
@endif

Ordered Products

@foreach ($order->orderitems as $key => $item) @endforeach
# Product Title Price Qty Total
{{$key+1}}

{{$item->title}}

@php $variations = json_decode($item->variations, true); @endphp @if (!empty($variations))

{{__("Variation")}}:
@foreach ($variations as $vKey => $variation) {{str_replace("_"," ",$vKey)}}: {{$variation["name"]}} @if (!$loop->last) , @endif @endforeach

@endif @php $addons = json_decode($item->addons, true); @endphp @if (!empty($addons))

Add On's: @foreach ($addons as $addon) {{$addon["name"]}} @if (!$loop->last) , @endif @endforeach

@endif

{{__("Product")}}: {{$order->currency_code_position == 'left' ? $order->currency_code : ''}} {{(float)$item->product_price}} {{$order->currency_code_position == 'right' ? $order->currency_code : ''}}

@if (is_array($variations))

{{__("Variation")}}: {{$order->currency_code_position == 'left' ? $order->currency_code : ''}} {{(float)$item->variations_price}} {{$order->currency_code_position == 'right' ? $order->currency_code : ''}}

@endif @if (is_array($addons))

{{__("Add On's")}}: {{$order->currency_code_position == 'left' ? $order->currency_code : ''}} {{(float)$item->addons_price}} {{$order->currency_code_position == 'right' ? $order->currency_code : ''}}

@endif
{{$item->qty}} {{$order->currency_code_position == 'left' ? $order->currency_code : ''}} {{$item->total}} {{$order->currency_code_position == 'right' ? $order->currency_code : ''}}