Customer Details

First Name {{$order->customer->first_name ?? ''}}
Last Name {{$order->customer->last_name ?? ''}}
Email {{$order->customer->email??$order->customer_email}}
Phone Number {{$order->customer->phone_no ?? $order->phone_no}}
Company Name {{$order->customer->company ?? ''}}
Payment Address Shipping Address
Name : {{$order->customer_name ?? ''}}
Address : {{$order->billing_address_1 ?? ''}} {{$order->billing_address_2 ?? ''}}
City : {{$order->billing_city}}
State : {{$order->billing_state}}
Country : {{$order->billing_country}}
Zip Code : {{$order->billing_zip}}
Name : {{$order->shipping_first_name ?? $order->customer_name}} {{$order->shipping_last_name ?? ''}}
Address : {{$order->shipping_address_1 ?? $order->billing_address_1}} {{$order->shipping_address_2 ?? $order->billing_address_2}}
City : {{$order->shipping_city ?? $order->billing_city}}
State : {{$order->shipping_state ?? $order->billing_state}}
Country : {{$order->shipping_country ?? $order->billing_country}}
Zip Code : {{$order->shipping_zip ?? $order->billing_zip}}

Order Details

Order No. #{{$order->order_no}}
Order Date {{date('d-M-Y',strtotime($order->created_at))}}
Order Status {{$order->order_status ?? ''}}

Order Item Details

@php $counter = 1; $subTotal = 0; @endphp @forelse($order->orderItems as $orderItems) @php $subTotal += $orderItems->product_per_price; @endphp @empty @endforelse @if($order->discount > 0) @endif
Sr. No Item Price Qty Total
{{$counter++}} {{ $orderItems->product ? $orderItems->product->product_name : ''}}
@forelse($orderItems->orderOptions as $option)

{{ removeColon($option->option_name)}} : {{ $option->option_value}}

@empty @endforelse
${{$orderItems->product_per_price}} {{$orderItems->product_qty}} ${{$orderItems->product_per_price*$orderItems->product_qty}}
Subtotal ${{$order->sub_total}}
Discount ${{$order->discount}}
Shipping Rate ${{$order->shipping_cost}}
Tax ${{$order->tax}}
Total ${{$order->total_amount}}