2016-03-28 14:40:28 +00:00
|
|
|
@foreach($ticket->questions as $question)
|
|
|
|
|
<div class="col-md-12">
|
|
|
|
|
<div class="form-group">
|
2016-04-04 11:21:09 +00:00
|
|
|
{!! Form::label("ticket_holder_questions[{$ticket->id}][{$i}][$question->id]", $question->title, ['class' => $question->is_required ? 'required' : '']) !!}
|
2016-03-28 14:40:28 +00:00
|
|
|
|
|
|
|
|
@if($question->question_type_id == config('attendize.question_textbox_single'))
|
2016-04-04 15:20:35 +00:00
|
|
|
{!! Form::text("ticket_holder_questions[{$ticket->id}][{$i}][$question->id]", null, ['required' => $question->is_required ? 'required' : '', 'class' => "ticket_holder_questions.{$ticket->id}.{$i}.{$question->id} form-control"]) !!}
|
2016-03-28 14:40:28 +00:00
|
|
|
@elseif($question->question_type_id == config('attendize.question_textbox_multi'))
|
2016-04-04 15:20:35 +00:00
|
|
|
{!! Form::textarea("ticket_holder_questions[{$ticket->id}][{$i}][$question->id]", null, ['rows'=>5, 'required' => $question->is_required ? 'required' : '', 'class' => "ticket_holder_questions.{$ticket->id}.{$i}.{$question->id} form-control"]) !!}
|
2016-03-28 14:40:28 +00:00
|
|
|
@elseif($question->question_type_id == config('attendize.question_dropdown_single'))
|
2016-04-05 10:31:30 +00:00
|
|
|
{!! Form::select("ticket_holder_questions[{$ticket->id}][{$i}][$question->id]", $question->options->lists('name', 'name'), null, ['required' => $question->is_required ? 'required' : '', 'class' => "ticket_holder_questions.{$ticket->id}.{$i}.{$question->id} form-control"]) !!}
|
2016-03-28 14:40:28 +00:00
|
|
|
@elseif($question->question_type_id == config('attendize.question_dropdown_multi'))
|
2016-05-05 23:18:52 +00:00
|
|
|
{!! Form::select("ticket_holder_questions[{$ticket->id}][{$i}][$question->id][]",$question->options->lists('name', 'name'), null, ['required' => $question->is_required ? 'required' : '', 'multiple' => 'multiple','class' => "ticket_holder_questions.{$ticket->id}.{$i}.{$question->id} form-control"]) !!}
|
2016-03-28 14:40:28 +00:00
|
|
|
@elseif($question->question_type_id == config('attendize.question_checkbox_multi'))
|
|
|
|
|
<br>
|
|
|
|
|
@foreach($question->options as $option)
|
|
|
|
|
{{$option->name}}
|
2016-05-05 23:18:52 +00:00
|
|
|
{!! Form::checkbox("ticket_holder_questions[{$ticket->id}][{$i}][$question->id][]",$option->name, false,['class' => "ticket_holder_questions.{$ticket->id}.{$i}.{$question->id} form-control"]) !!}<br>
|
2016-03-28 14:40:28 +00:00
|
|
|
@endforeach
|
|
|
|
|
@elseif($question->question_type_id == config('attendize.question_radio_single'))
|
|
|
|
|
<br>
|
|
|
|
|
@foreach($question->options as $option)
|
|
|
|
|
{{$option->name}}
|
2016-04-04 15:20:35 +00:00
|
|
|
{!! Form::radio("ticket_holder_questions[{$ticket->id}][{$i}][$question->id]",$option->name, false, ['class' => "ticket_holder_questions.{$ticket->id}.{$i}.{$question->id} form-control"]) !!}<br>
|
2016-03-28 14:40:28 +00:00
|
|
|
@endforeach
|
|
|
|
|
@endif
|
|
|
|
|
|
2016-04-05 10:31:30 +00:00
|
|
|
@if($question->instructions)
|
|
|
|
|
<div class="help-block">
|
|
|
|
|
{{ $question->instructions }}
|
|
|
|
|
</div>
|
|
|
|
|
@endif
|
2016-03-28 14:40:28 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@endforeach
|