@extends('admin.layouts.app') @section('title', 'Order') @section('content') @php $user = \App\Models\User::find($order->user_id) @endphp

First Name

{{$user->first_name ?? 'Null'}}


Last Name

{{$user->last_name ?? 'Null'}}


Email

{{$user->email ?? 'Null'}}


Phone

{{$user->phone_number ?? 'Null'}}


Address

{{$user->address ?? 'Null'}}


Country

{{$user->country ?? 'Null'}}


City

{{$user->city ?? 'Null'}}


Zip

{{$user->zip ?? 'Null'}}


State

{{$user->state ?? 'Null'}}

@foreach($order->items as $item) @php $product = \App\Models\Product::find($item->product_id); $category = \App\Models\Category::find($product->category_id); @endphp
Phone

{{$product->name ?? ''}}

{{$category->name ?? ''}}

Qty: {{$item->product_qty}}

${{$product->sale_price ?? $product->price}}


Track Order

{{$order->status ?? ''}}

@endforeach

Order Details

Total ${{$order->total_amount ?? 'Null'}}

Discount

Discount ${{$order->discount ?? 'Null'}}

Tax : {{$order->created_at->format('d/m/Y')}}

GST 18% {{$order->tax ?? 'Null'}}

@endsection