@section('title') Edit Form - {{ $form->name }} @endsection @section('breadcrumbs') {{ Breadcrumbs::render('form-management.forms.edit', $form) }} @endsection

Form Details

@csrf @method('PUT')
@error('name')
{{ $message }}
@enderror
@error('type')
{{ $message }}
@enderror
is_common) ? 'checked' : '' }} />
Back to Forms

Form Builder

@if($form->formSections->count() > 0) @foreach($form->formSections->sortBy('order_index') as $section)

{{ $section->section_name }} Order: {{ $section->order_index }}

@foreach($section->formSubSections->sortBy('order_index') as $subSection)
{{ $subSection->section_name }} Order: {{ $subSection->order_index }}
@if($subSection->formDetails->count() > 1) @endif
@if($subSection->formDetails->count() > 0)
@foreach($subSection->formDetails->sortBy('order_index') as $field) @endforeach
  Field Name Type Required Unit Order Actions
{{ $field->name }} @if($field->is_deprecated) Deprecated @endif {{ ucfirst(str_replace('_', ' ', $field->input_type)) }} {{ $field->input_type }} @if($field->is_required) Yes @else No @endif {{ $field->unit ?? '-' }} {{ $field->option_key ?? '' }} {{ $field->order_index }}
@if(!$field->is_deprecated) @endif @if(in_array($field->input_type, ['dropdown', 'radio'])) @endif @if($field->is_deprecated) @else @endif
@else

No fields added to this sub-section yet.

@endif
@endforeach
@if($section->formSubSections->count() == 0)

No sub-sections added to this section yet.

@endif
@endforeach @else

Start Building Your Form

Add sections to organize your form fields hierarchically.

@endif
@include('pages.apps.form-management.forms.modals.section-modal') @include('pages.apps.form-management.forms.modals.subsection-modal') @include('pages.apps.form-management.forms.modals.field-modal') @include('pages.apps.form-management.forms.modals.options-modal') @include('pages.apps.form-management.forms.modals.split-field-modal') @push('styles') @endpush @push('scripts') @endpush