@extends('layouts.app') @section('title','Order Details | Shopora') @section('content')

Order Details

Order #{{ $order->order_number }} · Placed on {{ $order->created_at->format('d M Y, h:i A') }}

Total

Rs. {{ number_format($order->total) }}

{{-- Tracker --}}

Status Tracker

@php $statuses=['pending','processing','shipped','delivered']; $cur=array_search($order->status,$statuses); @endphp @foreach($statuses as $idx => $s)

{{ $s }}

@endforeach
{{-- Items --}}

Package Items

@foreach($order->items as $item)
@if($item->product && $item->product->images && is_array($item->product->images) && count($item->product->images) > 0) {{ $item->product->name }} @else 🛍️ @endif

{{ $item->product_name }}

Qty: {{ $item->quantity }} · Price: Rs. {{ number_format($item->price) }}

@if($order->status === 'delivered') WRITE A REVIEW @endif

Rs. {{ number_format($item->total) }}

@endforeach
{{-- Summary --}}

Total Summary

SubtotalRs. {{ number_format($order->subtotal) }}
Shipping Fee{{ $order->shipping==0?'Free':'Rs. '.number_format($order->shipping) }}
@if($order->discount>0)
Voucher Discount- Rs. {{ number_format($order->discount) }}
@endif
Total Rs. {{ number_format($order->total) }}
@if(in_array($order->status,['pending','processing']))
@csrf
@endif
{{-- Delivery Info --}}

Delivery Information

{{ $order->shipping_name }}

HOME {{ $order->shipping_address }}, {{ $order->shipping_city }} - {{ $order->shipping_country }}

{{ $order->shipping_phone }}

{{ $order->shipping_email }}

Payment Method

{{ ucwords(str_replace('_',' ',$order->payment_method)) }}

{{ $order->payment_status }}

@endsection