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

{{ $order->order_number }}

{{ $order->user->company_name }} — {{ $order->created_at->format('d M Y, H:i') }}
Print / Download Invoice
@foreach ($order->items as $i) @endforeach
ProductSKUQtyUnit PriceTax %Subtotal
{{ $i->product_name }}{{ $i->sku }}{{ $i->quantity }} ₹{{ number_format($i->unit_price, 2) }}{{ number_format($i->tax_percent, 1) }}% ₹{{ number_format($i->subtotal, 2) }}
Subtotal₹{{ number_format($order->subtotal, 2) }}
Discount₹{{ number_format($order->discount_amount, 2) }}
GST₹{{ number_format($order->tax_amount, 2) }}
Total₹{{ number_format($order->total_amount, 2) }}
Delivery Details
Billing Address

{{ $order->billing_address }}

Shipping Address

{{ $order->shipping_address }}

Update Status
@csrf @method('PATCH')
Timeline
@foreach ($order->statusHistory as $h)
{{ $h->created_at->format('d M Y H:i') }} @if ($h->note)
{{ $h->note }}
@endif
@endforeach
@endsection