<?php defined('BASEPATH') OR exit('No direct script access allowed');
   if($this->session->flashdata('error')) {
      echo '<div class="alert alert-danger alert-dismissible error1">
      <button type="button" class="close" aria-label="close" data-dismiss="alert">&times;</button>
      <strong>Message! </strong> '.$this->session->flashdata("error").'
      </div>';
   }
?>
<div class="container home_page">
 
    <!-- Latest Quiz Work Start --> 
      <div class="col-12">
        <div class="row">
          <div class="col-12 text-center"> 
          <!-- <h2 class="heading"><?php echo lang('latest_quizes') ?></h2>  -->
          <!-- <hr> -->
          </div>
          <?php 
              $data['quiz_list_data'] = $latest_quiz_data; 
           //   $this->load->view('quiz_data_list',$data); 
          ?>
        </div>
      </div>    
    <!-- Latest Quiz Work End -->

        <!-- Popular Quiz Work Start -->
    
          <!-- Popular Quiz Work End -->
   <!-- Latest Session Start -->   
   <?php if(!empty($latest_session)){ ?>     
    <div class="col-12">
        <div class="row">
          <div class="col-12 text-center"> <h2 class="heading">Latest Session</h2> <hr></div>
          <?php 
          
          $this->load->view('grid_session_data',$data); 
              //  $data['latest_session'] = $latest_session;
              //  $this->load->view('session_data_list',$data); 
             
          ?>
        </div>
    </div>
   <?php } ?>
<!-- Latest Session End -->  

        </div>
      </div>

     
        </div>
      </div>

<script type="text/javascript">
  setTimeout(function() {
    $('.error1').fadeOut('fast');
  }, 1000);   
</script>

      
