@php( $headerOption = \App\Http\Controllers\Controller::getHeaderOptions( $title ?? '', $subTitle ?? '', isset($filters) ? $filters : [], isset($advancedFilters) ? $advancedFilters : [] ) ) @php($isEdit = isset($order) && isset($order->id)) @php( $headingOptions = [ ' Back', ] ) @if($canEdit) @php( $headingOptions[] = '' ) @php( $headingOptions[] = '' ) @endif @extends('admin.layouts.layout', $headerOption) @section('content')
@csrf @if($isEdit) @method('PATCH') @endif @if($isEdit) @endif @if($isEdit) @endif @if($isEdit && !$canEdit)
This order is read-only. You do not have permission to edit it.
@endif {{-- Lead Selection (create mode only) --}} @if(!$isEdit)

Lead *

@if($leadId > 0) {{-- From lead context: show as non-editable disabled select --}} @else {{-- From orders menu: show required searchable select --}} @error('lead_id'){{ $message }}@enderror @endif
@endif
@include('admin.orders.partials.form_body')
@endsection @push('page_script') @endpush