<?php defined('BASEPATH') OR exit('No direct script access allowed');
   if($this->session->flashdata('success')) {
      echo '<div class="alert alert-success alert-dismissible">
      <button type="button" class="close" aria-label="close" data-dismiss="alert">&times;</button>
      <strong>Success!</strong> '.$this->session->flashdata("success").'
      </div>';
   }
?>
<div class="panel panel-default">
              <div class="row">
                    <div class="form-group col-12 col-md-3">
                              <select name="state" id="state" class="form-control input-lg">
                                                   <option value="0">Select State</option>
                               <?php if(isset($states) && !empty($states)){ 
                                 foreach ($states as $key => $value) {
                                    echo  sprintf("<option value='%s'>%s</option>",$value->id,$value->name);
                                 }  
                               } ?>                    
                               
                              </select>
                     </div>
                    <div class="form-group col-12 col-md-3">
                              <select name="districts" id="districts" class="form-control input-lg">
                                                   <option value="0">Select District</option>
                                 
                              </select>
                     </div>
                    <div class="form-group col-12 col-md-3">
                              <select name="facilities" id="facilities" class="form-control input-lg">
                                                   <option value="0">Select Facility</option>
                                                   <?php if(isset($facilities) && !empty($facilities)){ 
                                 foreach ($facilities as $key => $value) {
                                    echo  sprintf("<option value='%s'>%s</option>",$value->id,$value->name);
                                 }  
                               } ?>
                              </select>
                     </div>
                    <div class="form-group col-12 col-md-3">
                              <select name="quiz" id="quiz" class="form-control input-lg">
                                                   <option value="0">Select Quiz</option>
                                                   <?php if(isset($quizes) && !empty($quizes)){ 
                                 foreach ($quizes as $key => $value) {
                                    echo  sprintf("<option value='%s'>%s</option>",$value->id,$value->title);
                                 }  
                               } ?>
                              </select>
                     </div>
               </div>
   <div class="clearfix"></div>
   <hr>
   <div class="table-responsive">
         
      <table id="scroll-vert-hor2" class="display table table-striped table-bordered" cellspacing="0" width="100%">
         <thead>
            <tr>
               <th>Number</th>
               <th>Name</th>
               <th>Mobile Number</th>
               <th>Facility Type</th>
               <th>State</th>
               <th>District</th>
               <th>Quiz</th>
               <th>Attempt</th>
               <th>Correct</th>
               <th>Wrong</th>
               <th>Total Scope</th>
               <th width="200">Action</th>
            </tr>
         </thead>
         <tbody>
            
         </tbody>
      </table>
</div>
</div>