@foreach($group->employerFields()->orderBy('sort_order')->get() as $field)
@if($field->type=='text')
required))required @endif type="text" class="form-control" id="{{ 'field_'.$field->id }}" name="{{ 'field_'.$field->id }}" value="{{ $value }}">
@if ($errors->has('field_'.$field->id))
{{ $errors->first('field_'.$field->id) }}
@endif
@elseif($field->type=='select')
{{ Form::select('field_'.$field->id, $selectOptions,$value,['placeholder' => $field->placeholder,'class'=>'form-control']) }}
@if ($errors->has('field_'.$field->id))
{{ $errors->first('field_'.$field->id) }}
@endif
@elseif($field->type=='textarea')
@if ($errors->has('field_'.$field->id))
{{ $errors->first('field_'.$field->id) }}
@endif
@elseif($field->type=='checkbox')
@elseif($field->type=='radio')
{{ $field->name }}
@foreach($radioOptions as $value2)
@endforeach
@elseif($field->type=='file')
@endif
@endforeach