{{$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}}
@endifPayment: {{$order->payment_type}}
By: {{Auth::user()->name}}
Order # {{$order->order_id}}
| 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 }} | @php $lineTotal = ($row->price + $addonTotal) * $row->quantity; $subtotal += $lineTotal; @endphp{{ 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) }} | ||
receipt_footer ?> @endif