@foreach ($fields as $q) @foreach ($q as $question) @if ($question->type == 'text') @elseif($question->type == 'password') @elseif($question->type == 'number') @elseif($question->type == 'textarea') @elseif($question->type == 'radio')
@foreach ($question->values as $key => $value) @endforeach
@elseif($question->type == 'select')
{!! Form::select('answer[' . $question->id . ']', $question->values, '', ['class' => 'form-control select-picker']) !!}
@elseif($question->type == 'date') @elseif($question->type == 'checkbox')
@foreach ($question->values as $key => $value) @endforeach
@elseif($question->type == 'file')
@endif @endforeach @endforeach