@extends('admin.layouts.app') @section('title', 'Order Details') @section('page_css') @endsection @section('section')
Print

Order Details

{{-- --}} {{-- --}} {{-- --}} {{-- --}}
#{{$order->order_no}}
{{date('d-M-Y',strtotime($order->created_at))}}
Flat Shipping Rate

Customer Details

@if($order->customer_id == null) {{$order->customer_name}} @else {{$order->customer->first_name.' '.$order->customer->last_name}} @endif
@if($order->customer_id == null) {{$order->customer_email}} @else {{$order->customer->user->email}} @endif
@if($order->customer_id == null) {{$order->phone_no ?? ''}} @else {{$order->customer->phone_no ?? ''}} @endif
{{$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 Item Details

@php $counter = 1; $subTotal = 0; @endphp @forelse($order->orderItems as $orderItems) @php $subTotal += $orderItems->product_per_price; @endphp @empty @endforelse
# Item Price Qty Color 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->color!=null ? $orderItems->color : '-' }} ${{$orderItems->product_per_price*$orderItems->product_qty}}
@if($order->discount > 0) @endif
Subtotal ${{$order->sub_total}}
Discount ${{$order->discount}}
Shipping Rate ${{$order->shipping_cost}}
Tax ${{$order->tax}}
Total ${{$order->total_amount}}
@endsection @section('script') @endsection