<?php 
$result_details = array_combine($sess_ques_id, $sess_selected_ans);

?>
<div class="col-sm-12 form-group">
    <div class="col-sm-6 form-group">
        <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
        <!-- TT one -->
        <ins class="adsbygoogle"
             style="display:block"
             data-ad-client="ca-pub-3140114751019908"
             data-ad-slot="5137628623"
             data-ad-format="auto"></ins>
        <script>
            (adsbygoogle = window.adsbygoogle || []).push({});
        </script>
    </div>

    <div class="col-sm-6 form-group">
        <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
        <!-- TT two -->
        <ins class="adsbygoogle"
             style="display:block"
             data-ad-client="ca-pub-3140114751019908"
             data-ad-slot="9567828225"
             data-ad-format="auto"></ins>
        <script>
            (adsbygoogle = window.adsbygoogle || []).push({});
        </script>
    </div>
</div>
<div class="col-sm-12 form-group">
    
    <div class="col-sm-12 padding-zero gray_ttc text-center" style="border-bottom: 2px solid #8CC73F;padding-top: 10px;padding-bottom: 10px;font-weight: bold">
        <div class="col-sm-6" style="padding:10px 0"> Question </div>
        <div class="col-sm-6" style="padding:10px 0"> Answer </div>
    </div>

    <?php foreach ($result_details as $key => $value) {
        ?>
    <div class="col-sm-12 padding-zero gray_ttc text-center">
        <div class="col-sm-6" style="padding:10px 0"> 
            <?php 
            $question_name = $this->quiz_model->get_question_info($key);
            echo $this->utility_model->view_tinyMce_information($question_name->quiz_created_by, $question_name->url, $question_name->question_details);
            ?> 
        </div>
        <?php if(!$value){ ?>
            <div class="col-sm-6" style="padding:10px 0">
               <?php  echo 'not answered'; ?>
            </div>
                        
        <?php }else { ?>        
            <?php 
            $option_name = $this->quiz_model->question_option($value);
             if($option_name->question_option_status == 1) { ?>        
                <div class="col-sm-6" style="color: green; padding:10px 0">
                    <?php echo $this->utility_model->view_tinyMce_information($question_name->quiz_created_by, $question_name->url, $option_name->question_option); ?> 
                </div>        
            <?php } else {?>        
                <div class="col-sm-6" style="color: red; padding:10px 0">
                    <?php echo $this->utility_model->view_tinyMce_information($question_name->quiz_created_by, $question_name->url, $option_name->question_option); ?> 
                </div>        
            <?php } ?>   
        
        <?php } ?>
        
    </div>
    <?php } ?>
    
    
</div> 
       
<div class="col-sm-12 form-group">
    <div class="col-sm-6 form-group">
        <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
        <!-- TT three -->
        <ins class="adsbygoogle"
             style="display:block"
             data-ad-client="ca-pub-3140114751019908"
             data-ad-slot="2044561420"
             data-ad-format="auto"></ins>
        <script>
                            (adsbygoogle = window.adsbygoogle || []).push({});
        </script>
    </div>
    <div class="col-sm-6 form-group">
        <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
        <!-- TT four -->
        <ins class="adsbygoogle"
             style="display:block"
             data-ad-client="ca-pub-3140114751019908"
             data-ad-slot="8060742220"></ins>
        <script>
                            (adsbygoogle = window.adsbygoogle || []).push({});
        </script>
    </div>
</div>

 
</script>
<script type="text/javascript" src="<?php echo base_url(); ?>front_end_resource/quiz/quiz.js"></script>

