@extends('layouts.app') @section('content')

Order {{ $order->order_number }}

{{ $order->uuid }}

Status

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

Order Type

{{ $order->is_custom_order ? 'Custom' : 'Standard' }}

Customer

{{ $order->user->name ?? 'N/A' }}

Created

{{ $order->created_at->format('M d, Y') }}

Scan to access this order:

📥 Download Sticker (A6 PDF)
{!! file_get_contents(storage_path("app/public/qr-codes/{$order->uuid}.svg")) !!}
@if($order->status === 'inspection') @include('ops.actions.inspection') @elseif($order->status === 'packing' || $order->status === 'printing') @include('ops.actions.packing') @elseif(in_array($order->status, ['ready_to_ship', 'awaiting_collection', 'in_transit'])) @include('ops.actions.read-only') @else

No actions available for this order status.

@endif

Order Items

@forelse($order->items as $item) @empty @endforelse
Product Type Quantity Amount
{{ $item->product->name ?? 'N/A' }} {{ $item->product_type ?? 'N/A' }} {{ $item->quantity }} R{{ number_format($item->unit_price * $item->quantity, 2) }}
No items
@if($order->packing_completed_at)

Packing Details

Width

{{ $order->packing_width }} cm

Length

{{ $order->packing_length }} cm

Weight

{{ $order->packing_weight }} kg

Packed At

{{ $order->packing_completed_at->format('M d, H:i') }}

@endif @if($order->courier_waybill_id)

Shipment Details

Waybill ID

{{ $order->courier_waybill_id }}

Tracking Number

{{ $order->courier_tracking_number ?? 'N/A' }}

Status

{{ str_replace('_', ' ', $order->courier_status ?? 'pending') }}

@endif
@endsection