{!! Form::text('text', $question->text, [ 'class' => 'input-text', 'placeholder' => trans('backend.ph.title'), 'required' => true]) !!} @lang('backend.ph.write_options')
@foreach($question->questionMatchings as $key => $questionMatch)
{!! Form::text("questions[$questionMatch->id]", $questionMatch->text, [ 'class' => 'input-text', 'placeholder' => trans('backend.ph.option'), 'required' => true, 'id' => 'opt-'.$key ]) !!} {!! Form::text("answers[$questionMatch->id]", $questionMatch->answerMatching->text, [ 'class' => 'input-text', 'placeholder' => trans('backend.ph.pair'), 'required' => true, 'id' => 'pair-'.$key ]) !!}
@endforeach @if($question->questionMatchings->count() < 5) @for($i = $question->questionMatchings->count()+1; $i < 6; $i++) @endfor @endif