@extends('backEnd.layouts.master') @section('title','Create Manual Order') @push('styles') @endpush @section('content')

Create Manual Order

{{-- AI Fill — separate from manual form; uses Global AI settings --}}
AI Fill FB / WhatsApp paste @if($aiConfigured ?? false) Global AI ready @else API key লাগবে @if(\App\Support\SanafWorld::isDeveloper(auth()->user())) → Global AI Settings @endif @endif

Messenger/WhatsApp থেকে order message copy করে paste করুন → Parse & Fill → form auto-fill → শেষে Confirm Order চাপুন। @if(\App\Support\SanafWorld::isDeveloper(auth()->user())) API key: Social Automation → Global AI (Gemini recommended). @else Global AI settings শুধু Developer configure করতে পারবেন। @endif

@csrf @if($errors->any())
Order save হয়নি — নিচের field গুলো ঠিক করুন:
    @foreach($errors->all() as $err)
  • {{ $err }}
  • @endforeach
@endif
{{-- Customer Info --}}
Customer Details
{{-- Phone lookup --}} @if(isset($repeat))
Repeat order from #{{ $repeat->invoice_id }} — {{ $repeat->customer_name }}
@endif
Phone দিন — returning customer auto-fill হবে। Full order message paste করলে AI Fill box-এ যাবে।
Area, upazila, district লিখলে District ও Upazila auto select হবে (e.g. panchlaish, ctg) @include('shared.partials.delivery-area-breadcrumb')
@error('district')
{{ $message }}
@enderror Shipping charge auto-loads from Shipping Settings
@error('upazila')
{{ $message }}
@enderror District select করলে upazila list load হবে — না পেলে type করে Enter চাপুন
{{-- Products — POS style: search → auto add to cart --}}
Order Items 0 items
Search করে product select করলে নিচে auto add হবে — একই product আবার select করলে qty বাড়বে।
Product Price Qty Total

কোনো product add হয়নি — উপরে search করুন

Order Source *
@foreach(\App\Models\Order::sourceOptions() as $key => $meta) @if($key === 'website') @continue @endif @endforeach
Website থেকে আসা order auto “Website” tag পায় — manual order-এ source select করুন। @error('order_source')
{{ $message }}
@enderror
{{-- Summary --}}
Order Summary
Subtotal ৳0
Shipping
Discount

Total ৳0
Admin Note
Cancel
@endsection @push('scripts') @endpush