<div class="modal-header">
    <h4 class="modal-title" id="ceratModal">تعديل </h4>
    <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="X"></button>
</div>
<div class="modal-body">
    <form class="orderEditForm" data-id="{{ $order->id }}" enctype="multipart/form-data">
        @csrf
        <div class="row">
            <x-textarea-field label="{{ __('ملاحظة') }}" name="notes" value="{{ old('notes',$order->notes) }}"
                maxLength="10000" />
            <x-select-field label="{{ __('الحالة') }}" id="status" name="status" value="{{ old('status',$order->status) }}"
                :options="['new' => 'طلب جديد','urgent' => 'مستعجل','Completed' => 'مكتمل',
                            'Cancelled' => 'ملغي','under_review' => 'تحت المراجعة' ]"   />
            <div class="col-12 mt-2">
                <label class="form-label pb-1">هل مميز:</label>
                @if ($order->is_featured == 1)
                    <input type="checkbox" class="form-check-input" checked name="is_featured" value="1"
                        id="colorCheck4">
                @else
                    <input type="checkbox" class="form-check-input" name="is_featured" value="1" id="colorCheck4">
                @endif
                <label class="form-label ">مميز </label>
            </div>
        </div>

        <div class="row">
            <div class="col-12">
                <button class="btn btn-primary">{{ __('حفظ') }}</button>
            </div>
        </div>
    </form>
</div>
