@php $id = $field['id']; $inputName = 'data[' . $id . '][]'; $inputId = 'field_' . str_replace(['-', '_', '.'], '_', $id); $required = $field['required'] === true; $oldVals = old('data.' . $id, []); if (!is_array($oldVals)) $oldVals = []; @endphp
{{ $field['label_en'] }} @if($required) @elseif(($field['required'] ?? false) === 'conditional') (if applicable) @endif (select all that apply) @if(!empty($field['label_bn']))

{{ $field['label_bn'] }}

@endif
@foreach ($field['options'] as $option) @php $optionId = $inputId . '_' . Str::slug($option); @endphp @endforeach
@error('data.' . $id) @enderror