@extends('layouts.app') @section('title', 'Order ' . $order->order_number) @section('content')

Order {{ $order->order_number }}

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

Status Timeline

@foreach(\App\Models\Order::STATUS_FLOW as $i => $step) {{ ucwords(str_replace('_', ' ', $step)) }} @endforeach @if(in_array($order->order_status, ['cancelled', 'returned'])) {{ ucfirst($order->order_status) }} @endif

Items

@foreach($order->items as $item)
{{ $item->product_name }} × {{ $item->quantity }} ₹{{ number_format($item->total, 2) }}
@endforeach

Summary

Subtotal₹{{ number_format($order->subtotal, 2) }}
Coupon Discount-₹{{ number_format($order->coupon_discount, 2) }}
Delivery₹{{ number_format($order->delivery_charge, 2) }}
Total₹{{ number_format($order->total, 2) }}
@if($order->address)

Delivery Address

{{ $order->address->name }}, {{ $order->address->address }}, {{ $order->address->city }} - {{ $order->address->pincode }}

@endif @if($order->canBeCancelled())
@csrf
@endif
@endsection