@extends('backoffice.dashboard') @section('content')

{{ $fieldDefinition->exists ? 'تعديل الحقل' : 'إضافة حقل جديد للنموذج' }}

الحقول التي تحمل علامة * إلزامية. يمكنك معاينة مفتاح الحقل الذي سيُنشأ تلقائياً.

@if($errors->any())
    @foreach($errors->all() as $err)
  • {{ $err }}
  • @endforeach
@endif
@csrf @if($fieldDefinition->exists) @method('PUT') @endif {{-- LABEL + key preview --}}
مفتاح الحقل المتوقع: {{ old('label', $fieldDefinition->label) ? \Illuminate\Support\Str::slug(mb_strtolower(old('label', $fieldDefinition->label)), '_') : 'field' }}
{{-- INPUT TYPE + SORT ORDER --}}
قيمة أصغر تعني عرضاً أعلى في الاستمارة
{{-- OPTIONS (visible only for select/radio/checkbox/multiselect) --}} {{-- OPTIONS (visible only for select/radio/checkbox/multiselect) --}}
يمكنك إدخال JSON array أو كل خيار في سطر جديد أو فاصلة تفصل بين الخيارات.
{{-- VISIBLE / REQUIRED toggles --}}
is_visible) ? 'checked' : '' }}>
is_required) ? 'checked' : '' }}>
{{-- placeholder for alignment --}}
{{-- Actions --}}
العودة
@push('styles') @endpush @push('scripts') @push('scripts') @endpush {{-- Inline fallback in case your layout forgets to render @stack('scripts') --}} @endpush @endsection