@foreach ($custom_fields as $key => $custom_field)
@if ($custom_field->type == 'textInput')
@elseif($custom_field->type == 'numericInput')
@php
$min_max_value = json_decode($custom_field->min_max_value);
@endphp
@elseif($custom_field->type == 'multilineInput')
@php
$min_max_length = json_decode($custom_field->min_max_length);
@endphp
@if ($errors->has('customF.'.$custom_field->label))
{{ str_replace('custom f.', '', $errors->first('customF.'.$custom_field->label)) }}
@endif
@elseif($custom_field->type == 'datepickerInput')
@elseif($custom_field->type == 'checkboxInput')
@php
$checkbox_values = json_decode($custom_field->name_value);
@endphp
@if ($checkbox_values)
@foreach ($checkbox_values as $key => $checkbox_value)
@endforeach
@endif
@elseif($custom_field->type == 'radioInput')
@php
$name_values = json_decode($custom_field->name_value);
@endphp
{{ $custom_field->label }}
{{ $custom_field->required == 1 ? '*' : '' }}
@if ($name_values)
@foreach ($name_values as $key => $name_value)
id, $custom_field->label, $student->custom_field_form_name)) checked @endif
value="{{ $name_value }}"
class="common-radio relationButton">
@endforeach
@endif
@elseif($custom_field->type == 'dropdownInput')
@php
$dropdown_name_values = json_decode($custom_field->name_value);
@endphp
@if ($errors->has('customF.'.$custom_field->label))
{{ str_replace('custom field', '', $errors->first('customF.'.$custom_field->label)) }}
@endif
@elseif($custom_field->type == 'fileInput')
@endif
@endforeach
@endif
@include('backEnd.partials.date_picker_css_js')