@extends('admin.layout') @section('title', $order ? 'Edit order' : 'New order') @section('content') @php $v = fn ($k, $d = '') => old($k, $order ? ($order->{$k} ?? $d) : $d); $dateV = fn ($k, $d) => old($k, $order ? $order->{$k}->format('Y-m-d') : $d); @endphp

{{ $order ? 'Edit order #'.$order->order_no : 'New order' }}

← Back
📷 Fill from a photo (AI)

Take a photo of the order slip or page. The AI reads it and fills the form below. It can make mistakes, so always check the yellow boxes before you save.

@csrf @if($order) @method('PUT') @endif
—
Products total: ৳0
@if($order && !empty($order->measurement_data))
@foreach($order->measurement_data as $k => $val) {{ $k }}: {{ $val }} @endforeach
@endif @if($order && $order->measurements) @endif

Leave empty to show the stage’s default message. Changing the stage clears an old message unless you type a new one.

@if($order) @endif

@if($order)
@csrf @method('DELETE')
@endif @endsection