@extends('admin.layouts.app') @section('title', 'Edit Order #' . $order->id) @section('header', 'Edit Order #' . $order->id) @section('content')
Back to Order Details
@if (!in_array($order->order_status, ['pending', 'confirmed']))

Limited Editing

This order is currently in "{{ ucfirst($order->order_status) }}" status. Only customer information can be edited.

@endif
@csrf @method('PUT')

Customer Information

@error('customer_name')

{{ $message }}

@enderror
@error('customer_phone')

{{ $message }}

@enderror
@error('customer_email')

{{ $message }}

@enderror
@error('payment_method')

{{ $message }}

@enderror
@error('customer_address')

{{ $message }}

@enderror

Order Items

Order Items Information

Order items cannot be modified after order creation. Contact administrator if changes are needed.

@foreach ($order->orderItems as $item) @endforeach
Product Quantity Unit Price Total Instructions
{{ $item->product_name }}
SKU: {{ $item->product_sku ?? 'N/A' }}
{{ $item->quantity }} Rp {{ number_format($item->unit_price, 0, ',', '.') }} Rp {{ number_format($item->total_price, 0, ',', '.') }} {{ $item->special_instructions ?? '-' }}

Order Summary

Subtotal: Rp {{ number_format($order->subtotal, 0, ',', '.') }}
@if ($order->tax_amount > 0)
Tax: Rp {{ number_format($order->tax_amount, 0, ',', '.') }}
@endif @if ($order->shipping_amount > 0)
Shipping: Rp {{ number_format($order->shipping_amount, 0, ',', '.') }}
@endif @if ($order->discount_amount > 0)
Discount: -Rp {{ number_format($order->discount_amount, 0, ',', '.') }}
@endif
Total: Rp {{ number_format($order->total_amount, 0, ',', '.') }}

Current Status

{{ ucfirst($order->order_status) }}
{{ ucfirst($order->payment_status) }}
{{ $order->order_date ? $order->order_date->format('d M Y, H:i') : 'N/A' }}
{{ $order->updated_at->format('d M Y, H:i') }}
Cancel
@endsection