 
<?php $__env->startSection('content'); ?>
<div style="width: 635px;margin-left: 20px;">
	<div align="center">
		<img style="" src="<?php echo SITE_URL.'img/admin/logo-printable.gif'; ?>" alt="">
		<br><br>
	</div>
    <p class="lesson-title">QUESTIONNAIRE <?php echo $record['lesson']['id']; ?> - <?php echo $record['e_status']; ?></p>
    <br>
    <b>Name:</b> <?php echo $record['member']['v_first_name'].', '.$record['member']['v_last_name']; ?><br>
    <b>Student ID:</b> <?php echo $record['member']['v_student_id']; ?><br>
    <b>Status:</b> <?php echo $record['e_status']; ?><br>
    <?php if($record['e_status'] == 'Submitted'): ?>
        <b>Questionnaire Submitted On:</b> <?php echo date('m/d/Y  H:m:i A',strtotime($record['d_submitted_date'])); ?><br>
    <?php endif; ?>
    <a href="<?php echo SITE_URL.'review-lessons'; ?>">Back to main admin page</a><br>
    <br>
    <?php if($record['lesson']['v_page_heading'] != ''): ?>
        <br>
        <p><?php echo $record['lesson']['v_page_heading']; ?></p>
        <br><br>
    <?php endif; ?>
</div>       
    <table width="635" id="print-lesson">
	<tbody>
    <?php $i = 1; $j = 1;
        foreach($memberlessonAnswer as $key => $val){ ?>
    	<tr>
           	<td class="lesson-td">
                <?php if($val['lesson_question']['v_pre_description'] != '') {
                    echo '<span class="pre-description">'.$val['lesson_question']['v_pre_description'].'</span>';
                 } 
                if($val['lesson_question']['v_description'] != ''){
                    echo '<span class="question-no">'.$j.'.&nbsp;&nbsp</span>';
                    echo '<div class="lesson-desc">';
                    echo $val['lesson_question']['v_description'];
                    $j++;       
                    echo '</div>';
                 }?>
                <?php 
                    if($val['lesson_question']['v_description'] == '' && $val['lesson_question']['i_parent_id'] == 0) 
                    {
                        echo '<span class="question-no">'.$j.'.&nbsp;&nbsp</span>';
                        $j++;    
                    } else {
                        echo '<span class="question-no">&nbsp;&nbsp</span>';
                    }
                    echo '<div class="lesson-desc">'; 
                    echo $val['lesson_question']['v_question'];
                    echo '</div>';
                ?>
                <div class="lesson-review-answer-print"><?php echo $val['v_question_answer']; ?></div>
            </td>
    	</tr>
     <?php $i++; }
	   echo '<tr><td class="lesson-td"><div class="lesson-desc">'.$record['lesson']['v_page_footer'].'</div></p></tr>';
    if($record['e_status'] == 'Reviewed'){ ?>
        <tr>
    		<td> &nbsp;</td>	
    	</tr>
        <tr>
    		<td><b>Review Date: <?php echo date('m/d/Y  H:m:i A',strtotime($record['d_reviewed_date'])); ?></b></td>
        </tr>
        <tr>
    		<td class="lesson-td"><b>Review By:</b><br /><?php echo $record['v_reviewed_by']; ?></td>
        </tr>
    	<tr>
    		<td class="lesson-td"><b>Review Comments:</b><br /><?php echo $record['v_reviewed_comment']; ?></td>
    	</tr>
   <?php } ?>
        <tr>
    		<td> &nbsp;</td>	
    	</tr>
        <tr>
    		<td> <a href="<?php echo SITE_URL.'review-lessons'; ?>">Back to main admin page</a><br></td>	
    	</tr>
    </tbody>
</table>
<style>
.body{color: #868686; background: none !important;font-family: 'Lato', sans-serif;}
</style>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layout.default', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>