@extends('layouts.user') @section('page-title', $order->order_number) @section('content') @if (session('status'))
{{ session('status') }}
@endif

{{ $order->order_number }}

{{ $order->created_at->format('d M Y, H:i') }}
Download Invoice @can('cancel', $order)
@csrf
@endcan
@if (!in_array($order->status, ['CANCELLED','REJECTED']))
Order Status
@php $steps = \App\Models\Order::TIMELINE_STATUSES; $currentIndex = array_search($order->status, $steps); @endphp
@foreach ($steps as $i => $step)
{{ $step }}
@endforeach
@else
@endif
@foreach ($order->items as $i) @endforeach
ProductSKUQtyUnit PriceSubtotal
{{ $i->product_name }}{{ $i->sku }}{{ $i->quantity }} ₹{{ number_format($i->unit_price,2) }}₹{{ number_format($i->subtotal,2) }}
Subtotal₹{{ number_format($order->subtotal,2) }}
GST₹{{ number_format($order->tax_amount,2) }}
Total₹{{ number_format($order->total_amount,2) }}
@endsection