@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 --}} |
| Billing details | {{--Shipping--}} {{-- Address--}} {{-- | --}}
|
Address : {{$order->billing_address}}
Time to Pickup : {{$order->time_to_pickup}} {{-- 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--}} |
${{round($orderItems->product_per_price, 2)}} | {{$orderItems->product_qty}} | ${{floatval($orderItems->product_per_price*$orderItems->product_qty)}} |
| Subtotal | ${{round($order->sub_total, 2)}} |
| Discount | ${{round($order->discount, 2)}} |
| Tax | ${{round($order->tax, 2)}} |
| Shipping Cost | ${{round($order->shipping_cost, 2)}} |
| Flat Shipping Rate | ${{$order->shipping_cost}} |
| Total | ${{round($order->total_amount, 2)}} |