@php($fields = old('form_fields', $formFields->map(fn($f) => [
'section' => $f->section, 'field_no' => $f->field_no, 'question' => $f->question,
'field_type' => $f->field_type, 'dropdown_list_id' => $f->dropdown_list_id,
'validation_rule' => $f->validation_rule, 'sub_indicator_code' => $f->sub_indicator_code, 'mandatory' => $f->mandatory ? 1 : 0,
'character_limit' => $f->character_limit,
])->toArray()))
@foreach($fields as $i => $f)
@endforeach