@extends('admin.layouts.app') @section('title', 'New Order') @push('styles') @endpush @section('content')
@csrf
{{-- LEFT --}}
{{-- Customer --}}
Customer Details
@if($errors->any())
{{ $errors->first() }}
@endif
{{-- Items --}}
Order Items
{{-- Column headers --}}
Product name
Grade
Qty
Unit price (₹)
Notes
{{-- rows injected by JS --}}
{{-- RIGHT --}}
Order Settings
{{-- Pricing --}}
Pricing & Tax
Subtotal
GST (0%)
Discount
Shipping
Grand Total
@push('scripts') @php $productsJson = json_encode($products->map(fn($p) => [ 'id' => $p->id, 'name' => $p->name, 'sku' => $p->sku, 'grade' => $p->grade, 'price' => $p->price ? $p->price / 100 : null, 'brand' => $p->brand?->name, ])); @endphp @endpush @endsection