@extends('admin.layouts.app') @section('title', 'Order Details') @section('page_css') @endsection @section('section')
| #{{$order->order_no}} | |
| {{date('d-M-Y',strtotime($order->created_at))}} | |
| Flat Shipping Rate |
| {{-- @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}} |
| # | 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)}} |
| 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}} |