{{-- This page is rendered by orders() method inside Front/OrderController.php (depending on if the order id Optional Parameter (slug) is passed in or not) --}} @extends('front.layout.layout') @section('content')

Order #{{ $orderDetails['id'] }} Details

{{-- Orders info table --}} @if ($orderDetails['coupon_code'] != '') @endif @if ($orderDetails['courier_name'] != '') @endif
Order Details
Order Date {{ date('Y-m-d h:i:s', strtotime($orderDetails['created_at'])) }}
Order Status {{ $orderDetails['order_status'] }}
Order Total EGP{{ $orderDetails['grand_total'] }}
Shipping Charges EGP{{ $orderDetails['shipping_charges'] }}
Coupon Code {{ $orderDetails['coupon_code'] }}
Coupon Amount EGP{{ $orderDetails['coupon_amount'] }}
Courier Name {{ $orderDetails['courier_name'] }}
Tracking Number {{ $orderDetails['tracking_number'] }}
Payment Method {{ $orderDetails['payment_method'] }}
{{-- Order products info table --}} @foreach ($orderDetails['orders_products'] as $product) @if ($product['courier_name'] != '') @endif @endforeach
Product Image Product Code Product Name Product Size Product Color Product Qty
@php $getProductImage = \App\Models\Product::getProductImage($product['product_id']); @endphp {{ $product['product_code'] }} {{ $product['product_name'] }} {{ $product['product_size'] }} {{ $product['product_color'] }} {{ $product['product_qty'] }}
Courier Name: {{ $product['courier_name'] }}, Tracking Number: {{ $product['tracking_number'] }}
{{-- Delivery Address info table --}}
Delivery Address
Name {{ $orderDetails['name'] }}
Address {{ $orderDetails['address'] }}
City {{ $orderDetails['city'] }}
State {{ $orderDetails['state'] }}
Country {{ $orderDetails['country'] }}
Pincode {{ $orderDetails['pincode'] }}
Mobile {{ $orderDetails['mobile'] }}
@endsection