<h2 style="background-color: #000;color:#fff"><?php echo Group::getGroupName($group->group); ?></h2>
<form role="form">
<?php if(isset($group->headerText)): ?>
    <blockquote><?php echo $group->headerText; ?></blockquote>
<?php endif; ?>
<?php foreach($group->questions as $question): ?>
    <?php if(isset($question->headerText)): ?>
        <blockquote><?php echo $question->headerText; ?></blockquote>
    <?php endif; ?>
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td style="background-color: #fafafa;padding:10px">
                <?php echo $__env->make('test.template.questions',array("question"=>$question), array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                <?php if(isset($question->questions)): ?>
                    <?php foreach($question->questions as $answer_questions): ?>
                        <?php echo $__env->make('test.template.questions',array("question"=>$answer_questions), array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                    <?php endforeach; ?>
                <?php endif; ?>
            </td>
        </tr>
    </table>
<?php endforeach; ?>
</form>
