@extends('layouts.app', ['title' => 'Order Details | Print Cards']) @section('content')

{{ $order->order_number }}

Status: {{ ucfirst($order->status) }} | Payment: {{ ucfirst($order->payment_status) }}

Invoice @if($order->payment_status !== 'paid') Pay Now @endif Back to Orders

Order Items

@foreach($order->items as $item)
{{ $item->item_name }}
{{ $item->page_size }} | {{ strtoupper($item->print_mode) }} | {{ ucfirst($item->sides) }} sided | {{ $item->copies }} copies
Binding: {{ ucfirst($item->binding_type) }} | Lamination: {{ ucfirst($item->lamination_type) }} | PVC: {{ $item->pvc_printing ? 'Yes' : 'No' }}
@endforeach

Tracking Timeline

@forelse($order->trackingUpdates as $update)
{{ $update->title }}
{{ ucfirst($update->status) }} | {{ $update->created_at->format('d M Y h:i A') }}
@if($update->location)
Location: {{ $update->location }}
@endif @if($update->description)
{{ $update->description }}
@endif
@empty

Tracking updates will appear here after the first workflow change.

@endforelse

Billing

SubtotalRs {{ number_format($order->subtotal, 2) }}
DiscountRs {{ number_format($order->discount_amount, 2) }}
GSTRs {{ number_format($order->gst_amount, 2) }}
DeliveryRs {{ number_format($order->delivery_amount, 2) }}

TotalRs {{ number_format($order->total_amount, 2) }}
Invoice: {{ $order->invoice_number ?? 'Pending' }}

Delivery Address

{{ $order->address?->recipient_name }}
{{ $order->address?->line1 }}
{{ $order->address?->line2 }}
{{ $order->address?->city }}, {{ $order->address?->state }} - {{ $order->address?->postal_code }}
Courier: {{ $order->delivery_partner ?: 'Pending assignment' }}
{{ $order->tracking_number ? 'Tracking: ' . $order->tracking_number : 'Tracking not assigned yet' }}
@endsection