@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')
@elseif($question->type == 'select')
{!! Form::select('answer[' . $question->id . ']',
$question->values, '',
['class' => 'form-control select-picker']) !!}
@elseif($question->type == 'date')
@elseif($question->type == 'checkbox')
@elseif($question->type == 'file')
@endif
@endforeach
@endforeach