@if($order->is_nextday)
⚠️ NEXT DAY DELIVERY ORDER
@endif
@if($settings->receipt_image && $settings->receipt_image != '') @endif @if($settings->receipt_header && $settings->receipt_header != '') receipt_header; ?> @endif

{{$settings->address.' '.$settings->city}}

{{isset($settings->phone_no)?$settings->phone_no:''}}, {{isset($settings->mobile_no)?$settings->mobile_no:''}}

{{ucwords($order->customer_name)}}

{{$order->customer_address}}

{{$order->customer_phone}}

{{date("d-m-Y, h:i:s A",strtotime($order->order_date))}}

@if($order->order_type == 'delivery')

Order: {{$order->order_type}} {{isset($order->server)?ucwords(' | '.$order->server):''}}

@endif @if($order->order_type == 'dinein')

Order: {{$order->order_type}} {{isset($order->table_no)?ucwords(' | '.$order->table_no):''}} {{isset($order->server)?ucwords(' | '.$order->server):''}}

@endif @if($order->order_type == 'pickup')

Order: {{$order->order_type}} - {{$order->pickup_time}}

@endif

Payment: {{$order->payment_type}}

By: {{Auth::user()->name}}

Order # {{$order->order_id}}

@php $subtotal = 0; @endphp @if(isset($order_detail)) @foreach($order_detail as $row) @php $itemTotal = $row->price * $row->quantity; $addonTotal = 0; @endphp @php $lineTotal = ($row->price + $addonTotal) * $row->quantity; $subtotal += $lineTotal; @endphp @endforeach @endif @php $discount = $order->discount ?? 0; $delivery = $order->delivery_charges ?? 0; $tax = $order->tax ?? 0; $total = $subtotal - $discount + $delivery + $tax; @endphp @if($discount > 0) @endif @if($delivery > 0) @endif @if($tax > 0) @endif
Items Price Qty Total
{{ $row->item_name . ' ' . $row->price_title }} {{-- POS Platform --}} @if($order->order_platform == 'pos' && !empty($row->addons))
@foreach(json_decode($row->addons) as $adon) @php $addon_array = explode("|", $adon->value); $addonPrice = isset($addon_array[1]) ? floatval($addon_array[1]) : 0; $addonTotal += $addonPrice; @endphp {{ $addon_array[0] }}{{ $addonPrice > 0 ? ' - ' . env('CURRENCY') . $addonPrice : '' }}
@endforeach @endif {{-- Web Platform --}} @if($order->order_platform == 'web' && !empty($row->addons))
@foreach(json_decode($row->addons) as $adon) @php $addonPrice = isset($adon->item_price) ? floatval($adon->item_price) : 0; $addonTotal += $addonPrice; @endphp {{ $adon->item_name }}{{ $addonPrice > 0 ? ' - ' . env('CURRENCY') . $addonPrice : '' }}
@endforeach @endif
{{ env('CURRENCY') }}{{ number_format($row->price + $addonTotal) }} {{ $row->quantity }}{{ env('CURRENCY') }}{{ number_format($lineTotal) }}
Subtotal {{ env('CURRENCY') }}{{ number_format($subtotal) }}
Discount -{{ env('CURRENCY') }}{{ number_format($discount) }}
Delivery Charges {{ env('CURRENCY') }}{{ number_format($delivery) }}
Tax ({{ $order->tax_rate }}%) {{ env('CURRENCY') }}{{ number_format($tax) }}
Total {{ env('CURRENCY') }}{{ number_format($total) }}
@if($order->special_instructions) Special Instructions
{{ $order->special_instructions }} @endif
@if($settings->receipt_footer && $settings->receipt_footer != '')

receipt_footer ?> @endif