@php $address = json_decode($order->order_address); $shipping = json_decode($order->shipping_method); $coupon = json_decode($order->coupon); @endphp @extends('dashboard.admin.layouts.master') @section('content')

{{ $title }}

{{ $title }}

Order #{{ $order->invoice_id }}

Billed To:
Name: {{ $address->name }}
Email: {{ $address->email }}
Phone: {{ $address->phone }}
Address: {{ $address->address }},
{{ $address->city }}, {{ $address->state }} , {{ $address->zip_code }}
{{ $address->country }}
Shipped To:
Name: {{ $address->name }}
Email: {{ $address->email }}
Phone: {{ $address->phone }}
Address: {{ $address->address }},
{{ $address->city }}, {{ $address->state }} , {{ $address->zip_code }}
{{ $address->country }}
Payment Information:
Method: {{ $order->payment_method }}
Transaction Id: {{ @$order->transaction->transaction_id }}
Status: {{ @$order->payment_status === 1 ? 'Completed' : 'Pending' }}
Order Date:
{{ $order->created_at->format('d M, Y') }}

Order Summary

All items here cannot be deleted.

@forelse($order->orderProducts as $orderProduct) @if (isset($orderProduct->product->slug)) @else @endif @empty @endforelse
# Item Vendor Name Price Quantity Totals
{{ ++$loop->index }}{{ $orderProduct->product_name }} {{ $orderProduct->product_name }}{{ $orderProduct->user->name }} {{ formatAmount($orderProduct->unit_price, $settings) }} {{ $orderProduct->qty }} @php $totalUnitPriceTimesQuantity = $orderProduct->unit_price * $orderProduct->qty; $total = $totalUnitPriceTimesQuantity; @endphp {{ formatAmount($total, $settings) }}
No Products Found
Subtotal
{{ formatAmount($order->sub_total, $settings) }}
Shipping (+)
{{ formatAmount(@$shipping->cost, $settings) }}
Coupon (-)
{{ @$coupon->type === 'percent' ? @$coupon->discount . '%' : formatAmount(@$coupon->discount, $settings) }}

Total
{{ formatAmount($order->amount, $settings) }}

Payment Evidence
{{--
--}}
@endsection @push('scripts') @endpush