<section class="edu_admin_content">
	<div class="edu_admin_right sectionHolder edu_view_paper">
	    <div class="edu_main_wrapper">				
    		<div class="edu_admin_informationdiv">
    		    <div class="question_paper_views">
    		        <div class="row">
                        <div class="col-lg-6 col-md-6 col-sm-12 col-12 padderBottom20">
                            <div class="responsive_center">
                                <h4 class="edu_sub_title">
                                    <?php  
                    				if(!empty($paperData[0]['name'])){
                    					echo '<span>Paper Name:</span>'.$paperData[0]['name']; 
                    				} ?>
                    			</h4>
                            </div>
                        </div>
                        <div class="col-lg-6 col-md-6 col-sm-12 col-12 padderBottom20">
                             <div class="responsive_center text-right">
                                <h4 class="edu_sub_title">
                                    <?php
                    				if(!empty($paperData[0]['time_duration'])){
                    					$hr=intval($paperData[0]['time_duration']/60);
                    					$min=intval($paperData[0]['time_duration']%60);
                    					echo '<span>Time:</span> ';
                    					if($hr>0){
                    						echo  $hr.' Hr  ';
                    					}
                    					if($min>0){
                    						echo  $min.' Min';
                    					} 
                    				} ?> 
                    			</h4>
                            </div>
                        </div>
                    </div>
                    <div class="edu_questionView_section">
                        <ol>
                            <?php 
        						$cnt=1;
        						if(!empty($paperData)){
        							$questions = json_decode($paperData[0]['question_ids']);
        							foreach($questions as $ques){
        								$questionData = $this->db_model->select_data('question,options','questions use index (id)',array('id'=>$ques),1);
        								if(!empty($questionData)){
        								?> 
        								<li>
                                            <div class="edu_single_questionView_wrap">
                                                <div class="edu_singleView_question questionsDiv">
                									<div class="quest">Q <?php echo  $cnt; ?>.
                										<?php 
                										echo $questionData[0]['question'];
                										?>
                									</div>
                									<div class="edu_questionView_options">
                    									<ul class="question_options">
                    										<?php
                    										$optionArr = json_decode($questionData[0]['options'],true);
                    										$i = 'A';
                    										foreach($optionArr as $op){
                    											echo '<li>'.$i.'.&nbsp; '.$op.'</li>';
                    											$i++;
                    										}
                    										?>
                    									</ul>
                    								</div>
                								</div>
        								    </div>
        								</li>
        								<?php
        								}
        							}
        						}
        						?>
                        </ol>
                    </div>
                </div>
    		</div>
    	</div>
	</div>
</section> 