@php $address = json_decode($order->order_address); $shipping = json_decode($order->shipping_method); $coupon = json_decode($order->coupon); @endphp @extends('dashboard.user.layouts.master') @section('content') {{-- DASHBOARD START --}}
@include('dashboard.user.layouts.sidebar')

{{ $title }}

{{-- INVOICE PAGE START --}}
Billing Information
Name: {{ $address->name }}

Email: {{ $address->email }}

Phone: {{ $address->phone }}

Address: {{ $address->address }},
{{ $address->city }}, {{ $address->state }} , {{ $address->zip_code }}
{{ $address->country }}

shipping information
Name: {{ $address->name }}

Email: {{ $address->email }}

Phone: {{ $address->phone }}

Address: {{ $address->address }},
{{ $address->city }}, {{ $address->state }} , {{ $address->zip_code }}
{{ $address->country }}

Invoice Id: #{{ $order->invoice_id }}
Order Status: {{ config('order_status.order_status_admin')[$order->order_status]['status'] }}

Method: {{ $order->payment_method }}
Transaction Id: {{ @$order->transaction->transaction_id }}
Status: {{ @$order->payment_status === 1 ? 'Completed' : 'Pending' }}

@forelse ($order->orderProducts as $orderProduct) @if (isset($orderProduct->product->slug)) @else @endif @empty @endforelse
# product Vendor amount quantity total
{{ ++$loop->index }}{{ $orderProduct->product_name }} {{ $orderProduct->product_name }} {{ $orderProduct->user->name }} {{ formatAmount($orderProduct->unit_price, $settings) }} {{ $orderProduct->qty }} {{ formatAmount($orderProduct->unit_price * $orderProduct->qty, $settings) }}
{{-- INVOICE PAGE END --}}
{{-- DASHBOARD START --}} @endsection @push('scripts') @endpush