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

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 --}}
Payment Address Shipping Address
Address : {{$order->billing_address}}
Zipcode : {{$order->billing_zip}}
City : {{$order->billing_city}}
State : {{$order->billing_state}}
Country : {{$order->billing_country}}
Address : {{$order->shipping_address}}
Zipcode : {{$order->shipping_zip}}
City : {{$order->shipping_city}}
State : {{$order->shipping_state}}
Country : {{$order->shipping_country}}

Order Item Details

@php $counter = 1; $subTotal = 0.00; @endphp @forelse($order->orderItems as $orderItems) @php $subTotal += $orderItems->product_per_price; @endphp @empty @endforelse
# Item Unit Cost Qty Total
{{$counter++}} {{$orderItems->product->product_name}} {{--
@if($orderItems->orderOptions!==null) @forelse($orderItems->orderOptions as $option)

{{ $option->optionValue['option']['option_name']}} : {{ $option->optionValue['option_value']}}

@empty @endforelse @endif--}}
${{$orderItems->product_per_price}} {{$orderItems->product_qty}} ${{floatval($orderItems->product_per_price*$orderItems->product_qty)}}
@if($order->discount > 0) @endif @if((float)$order->tax > 0) @endif @if((float)$order->shipping_cost > 0) @endif {{-- --}}
Subtotal ${{$order->sub_total}}
Discount ${{$order->discount}}
Tax ${{$order->tax}}
Shipping Cost ${{$order->shipping_cost}}
Flat Shipping Rate ${{$order->shipping_cost}}
Total ${{$order->total_amount}}
@endsection @section('script') @endsection