<?php $row_id = $this->view->survey_tag.'_row_'.$index; ?>

<div class="form-group col-lg-12" id="<?php echo $row_id; ?>">
	<label class="label-main-question"><?php echo htmlspecialchars($item['question']); ?></label>
	
	<input type="hidden" name="data[<?php echo $index; ?>][group]" value="<?php echo $item['group']; ?>">
	<input type="hidden" name="data[<?php echo $index; ?>][question_type]" value="radio">
	<input type="hidden" name="data[<?php echo $index; ?>][question]" value="<?php echo htmlspecialchars($item['question']); ?>">
	
	<?php foreach($item['answer'] as $answer_index => $answer): ?>
	
		<?php $input_id = $this->view->survey_tag.'_answer_'.$index.'_'.$answer_index; ?>
		
		<div class="form-check form-check-inline">
			<input class="form-check-input" type="radio" id="<?php echo $input_id; ?>" name="data[<?php echo $index; ?>][answer]" value="<?php echo $answer['value']; ?>">
			<label class="form-check-label" for="<?php echo $input_id; ?>"><?php echo htmlspecialchars($answer['label']); ?></label>
		</div>
	<?php endforeach; ?>
</div>