@extends('layouts.admin') @section('content')
{{-- Header --}}

Edit Order #{{ $order->order_number }}

Modify items, customer info, charges & discounts

@if(session('success'))
{{ session('success') }}
@endif
@csrf @method('PUT')
{{-- LEFT COLUMN: Items + Charges --}}
{{-- Order Items --}}
Order Items
@foreach($order->items as $index => $item)
{{ $item->product_name }}
@endforeach
{{-- Add Product Search --}}

➕ Add Product to Order

{{-- populated by JS --}}

Type to search, then click a product to add it to the order.

{{-- Charges & Discounts --}}
Charges & Discounts

e.g. handling, packaging

{{-- Order Summary Preview --}}
Order Summary Preview
Subtotal৳0.00
Shipping৳0.00
Extra Charges৳0.00
Discount-৳0.00
Grand Total৳0.00
{{-- RIGHT COLUMN: Customer + Status + Save --}}
{{-- Save button --}}

Ready to save changes?

{{-- Order Status --}}
Order Status
{{-- Customer Details --}}
Customer Details
{{-- Shipping Address --}}
Shipping Address
{{-- Order Notes --}}
Order Notes
@php $productsForJs = $products->map(fn($p) => [ 'id' => $p->id, 'name' => $p->name, 'sku' => $p->sku ?? '', 'price' => (float)($p->sale_price ?? $p->price), 'image' => $p->thumbnail_url, ])->values()->all(); @endphp @push('scripts') @endpush @endsection