<div class="form-group">
    <label><?php echo Question::getQuestionName($question->question); ?></label>

    <?php if(isset($question->answers)): ?>
        <?php if($question->type=="SEL" || $question->type=="ARRAY" || $question->type=="MUL_SEL"): ?>
            <ul class="list-group">
        <?php endif; ?>
        <?php foreach($question->answers as $answer): ?>
            <?php if($patient!=""): ?>
                <?php echo $__env->make('test.result.answers',array("answer"=>$answer,"result"=>Results::getResult($patient,$question->question)), array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
            <?php else: ?>
                <?php echo $__env->make('test.result.answers',array("answer"=>$answer,"result"=>""), array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
            <?php endif; ?>
        <?php endforeach; ?>

        <?php if($question->type=="SEL" || $question->type=="ARRAY" || $question->type=="MUL_SEL"): ?>
            </ul>
        <?php endif; ?>
    <?php endif; ?>
</div>