{{ $isEdit ? 'Edit Dynamic Field' : 'Create Dynamic Field' }}

{{ $isEdit ? 'Cancel Edit' : 'Back to Dynamic Fields' }}

Basic Information

@error('name') {{ $message }} @enderror
@error('apply_to') {{ $message }} @enderror
@error('description') {{ $message }} @enderror

Fields Collection

@error('fields') {{ $message }} @enderror
@foreach($fields as $index => $field)

Field {{ $index + 1 }}

@error("fields.{$index}.name") {{ $message }} @enderror
@error("fields.{$index}.type") {{ $message }} @enderror
@error("fields.{$index}.required") {{ $message }} @enderror
@if(in_array($field['type'], ['select', 'radio', 'multiselect']))
@if(!isset($field['options']) || !is_array($field['options']) || count($field['options']) === 0)
No options defined yet. Add options below.
@else
@foreach($field['options'] as $optionIndex => $option)
{{ $option }}
@endforeach
@endif
@endif @if($field['type'] === 'file')
File Upload Info: Users will be able to upload files up to 10MB. Uploaded files will be securely stored and accessible via download links.
@endif @if($field['type'] === 'image')
Image Upload Info: Users will be able to upload images up to 5MB. Thumbnails will be displayed with the ability to view full-size images.
@endif
@endforeach

Add New Field

@error('newField.name') {{ $message }} @enderror
Cancel