@if($errors->has('type'))
{{ $errors->first('type') }}
@endif
@php
if(isset($v_custom_field)){
$v_lengths = json_decode($v_custom_field->min_max_length);
$v_values = json_decode($v_custom_field->min_max_value);
}
@endphp
@php
$v_name_values = [];
if (isset($v_custom_field) && !empty($v_custom_field->name_value)) {
$v_name_values = json_decode($v_custom_field->name_value);
}
@endphp
@if (isset($v_custom_field) && in_array($v_custom_field->type, ["checkboxInput", "radioInput", "dropdownInput"]) && is_array($v_name_values))
@foreach ($v_name_values as $v_name_value)
@if ($errors->has('value'))
{{ $errors->first('value') }}
@endif
@endforeach
@endif
@if($errors->has('width'))
{{ $errors->first('width') }}
@endif
@if(userPermission("store-student-registration-custom-field") || userPermission("store-staff-registration-custom-field"))