 <div class="container">

   
 
<div id="update_notice"></div>  
 


<div class="row">

<div class="col-md-4">

<div class="card border-left-primary shadow  py-2">
                <div class="card-body">
                  <div class="row no-gutters align-items-center">
                    <div class="col mr-2">
                      <div class="text-xs font-weight-bold text-primary text-uppercase mb-1">
					  <a href="<?php echo site_url('user');?>">
					  <?php echo $this->lang->line('no_registered_user');?>
						</a>					  
						</div>
                      <div class="h5 mb-0 font-weight-bold text-gray-800"><?php echo $num_users;?></div>
                    </div>
                    <div class="col-auto">
                      <i class="fas fa-users fa-2x text-gray-300"></i>
                    </div>
                  </div>
                </div>
</div>

</div>


<div class="col-md-4">

<div class="card border-left-success shadow  py-2">
                <div class="card-body">
                  <div class="row no-gutters align-items-center">
                    <div class="col mr-2">
                      <div class="text-xs font-weight-bold text-primary text-uppercase mb-1">
					  <a href="<?php echo site_url('qbank');?>">
					  <?php echo $this->lang->line('no_questions_qbank');?>
						</a>					  
						</div>
                      <div class="h5 mb-0 font-weight-bold text-gray-800"><?php echo $num_qbank;?></div>
                    </div>
                    <div class="col-auto">
                      <i class="fas fa-book fa-2x text-gray-300"></i>
                    </div>
                  </div>
                </div>
</div>

</div>

<div class="col-md-4">

<div class="card border-left-warning shadow  py-2">
                <div class="card-body">
                  <div class="row no-gutters align-items-center">
                    <div class="col mr-2">
                      <div class="text-xs font-weight-bold text-primary text-uppercase mb-1">
					  <a href="<?php echo site_url('quiz');?>">
					  <?php echo $this->lang->line('no_registered_quiz');?>
						</a>					  
						</div>
                      <div class="h5 mb-0 font-weight-bold text-gray-800"><?php echo $num_quiz;?></div>
                    </div>
                    <div class="col-auto">
                      <i class="fas fa-chalkboard-teacher fa-2x text-gray-300"></i>
                    </div>
                  </div>
                </div>
</div>

</div>


 
 
 
 
 

</div>
 
<div class="row"></div>






<!--<div class="row" style="margin-top:20px;">
      <div class="col-lg-7">


<div class="row">-->
     


<!--<div class="col-md-6">

<div class="card border-left-success shadow  py-2">
                <div class="card-body">
                  <div class="row no-gutters align-items-center">
                    <div class="col mr-2">
                      <div class="text-xs font-weight-bold text-primary text-uppercase mb-1">
					  <a href="<?php echo site_url('user');?>">
					 <?php echo $this->lang->line('active');?> <?php echo $this->lang->line('users');?>
						</a>					  
						</div>
                      <div class="h5 mb-0 font-weight-bold text-gray-800"><?php echo $active_users;?></div>
                    </div>
                    <div class="col-auto">
                      <i class="fas fa-user fa-2x text-gray-300"></i>
                    </div>
                  </div>
                </div>
</div>

</div>-->

<!--<div class="col-md-6">



<div class="card border-left-danger shadow  py-2">
                <div class="card-body">
                  <div class="row no-gutters align-items-center">
                    <div class="col mr-2">
                      <div class="text-xs font-weight-bold text-primary text-uppercase mb-1">
					  <a href="<?php echo site_url('user');?>">
					 <?php echo $this->lang->line('inactive');?> <?php echo $this->lang->line('users');?>
						</a>					  
						</div>
                      <div class="h5 mb-0 font-weight-bold text-gray-800"><?php echo $inactive_users;?></div>
                    </div>
                    <div class="col-auto">
                      <i class="fas fa-ban fa-2x text-gray-300"></i>
                    </div>
                  </div>
                </div>
</div>

</div>-->


	 
  

</div>


        <!-- recent users -->
<div class="row">
<div class="col-md-12">
        <div class="card  shadow  py-2" style="margin-top:20px;">
          <div class="card-heading" style="padding:5px;">
		 <h6 class="m-0 font-weight-bold text-primary" >
            <?php echo $this->lang->line('recently_registered');?> 
		   </h6>
          </div>
          <div class="card-body table-responsive">
            <table class="table table-striped valign-middle">
              <thead>
                <tr>
                <th><?php echo $this->lang->line('uid');?></th>
                <th><?php echo $this->lang->line('reg_no');?></th>
                <th><?php echo $this->lang->line('email');?></th>
                <!--<th class="text-xs-right"><?php echo $this->lang->line('full_name');?></th>-->
                <!--<th class="text-xs-right"><?php echo $this->lang->line('group_name');?></th>-->
                <th><?php echo $this->lang->line('name');?></th>
                <th><?php echo $this->lang->line('account_status');?></th>
                <th><?php echo $this->lang->line('contact_no');?></th>
                <th><?php echo $this->lang->line('branch');?></th>
                <th><?php echo $this->lang->line('pct_10');?></th>
                <th><?php echo $this->lang->line('pct_12');?></th>
                <th><?php echo $this->lang->line('cgpa');?></th>
                <th><?php echo $this->lang->line('dob');?></th>
                <th></th>
              </tr></thead>
              <tbody> 
              <?php 
if(count($result)==0){
	?>
<tr>
 <td colspan="3"><?php echo $this->lang->line('no_record_found');?></td>
</tr>	
	
	
	<?php
}
foreach($result as $key => $val){
?><tr>
<td>
<?php echo $val['uid'];?>
<!--<a href="<?php echo site_url('user/edit_user/'.$val['uid']);?>"><?php echo $val['email'];?> <?php echo $val['wp_user'];?></a>--></td>
<!--<td  class="text-xs-right"><?php echo $val['name'];?><?php echo $val['first_name'];?> <?php echo $val['last_name'];?></td>-->
 <!--<td  class="text-xs-right"><?php echo $val['group_name'];?></td>-->
 <td><?php echo $val['reg_no'];?></td>
 <td><?php echo $val['email'].' '.$val['wp_user'];?></td>
 <td><?php echo $val['name'];?> </td>
 <td><?php echo $val['user_status'];?> </td>
<td><?php echo $val['contact_no'];?></td>
<td><?php echo $val['branch'];?> </td>
<td><?php echo $val['pct_10'];?> </td>
<td><?php echo $val['pct_12'];?> </td>
<td><?php echo $val['cgpa'];?> </td>
<td><?php echo $val['dob'];?> </td>

                
              </tr>
             
             <?php 
             }
             ?> 
     
            </tbody></table>
          </div>
        </div>

        <!-- recent users -->

      </div></div></div>
      <div class="col-lg-5">
	  
	  
	  
	<!--<?php 
$revenue_months2=array();
foreach($revenue_months as $fk => $fv){
$revenue_months2[]=floatval($fv);
}
?>-->
 
<!--<?php 
 
$months=array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');
?>		-->  
	  
	                <!--<div class="card shadow mb-4">-->
                <!-- Card Header - Dropdown -->
                <!--<div class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
                  <h6 class="m-0 font-weight-bold text-primary"><?php echo $this->lang->line('revenue');?>-->
				  
	<!--	<?php 
$todaymonth=date('M',time());
if(date('m',time()) != 1){
$mm=date('m',time())-1;

}else{

$mm=date('m',time());

}
$pastmonth=$months[$mm-1];
$cal=number_format(((($revenue_months[$todaymonth]-$revenue_months[$pastmonth])/$revenue_months[$pastmonth])*100),'2','.','');
 if($cal < 0){
?>-->
<!--<small class="font-weight-light text-muted" style="font-size:16px;color:#ff0000;" title="<?php echo $this->lang->line('growth_lath_month');?>">
 <?php echo $cal;?>% <i class="fa fa-arrow-down"></i>
</small>-->
<?php 
}else{
?>
<!--<small class="font-weight-light text-muted" style="font-size:16px;color:#72B159;" title="<?php echo $this->lang->line('growth_lath_month');?>">
 <?php echo $cal;?>% <i class="fa fa-arrow-up"></i>
</small>-->
<?php
}
?>		  
	<!--<?php echo $this->lang->line('past_days');?>-->			  
				  
				  </h6>
               
                </div>
                <!-- Card Body -->
                <div class="card-body">
                  
		  
<!--<div class="font-size-34"><small class="font-weight-light text-muted"><?php echo $this->config->item('base_currency_prefix');?></small> <strong><?php echo  number_format(array_sum($revenue_months2), 2, '.', ''); ?></strong>
<small class="font-weight-light text-muted"><?php echo $this->lang->line('this_year');?> </small>
</div>
<canvas id="myChart" width="340" height="340"></canvas>
</div>
<script>
var ctx = document.getElementById("myChart");
var myChart = new Chart(ctx, {
    type: 'line',
    data: {
        labels: <?php echo json_encode($months);?>,
        datasets: [{
            label: '<?php echo $this->lang->line('rev_paid_quiz');?>',
            data: <?php echo json_encode($revenue_months2);?>,
            backgroundColor: 
                'rgba(255, 188, 188, 0.2)',
            borderColor: 
                'rgba(153, 0, 0, 1)',
            borderWidth: 1
        }]
    },
    options: {
        scales: {
            yAxes: [{
                ticks: {
                    beginAtZero:true
                }
            }]
        }
    }
});
</script>-->				  
				  
				  
				  
                </div>
               










        <!-- References -->

        <!--<div class="panel">
          <div class="panel-heading">
            <div class="panel-title"><?php echo $this->lang->line('recent_sub');?></div>
          </div>-->


  <!--<?php 
if(count($payments)==0){
	?>
 	
	<div class="box m-y-2">
            <div class="box-cell valign-middle text-xs-center" style="width: 60px">
              <i class="ion-social-twitter font-size-28 line-height-1 text-info"></i>
            </div>
            <div class="box-cell p-r-3">
              <?php echo $this->lang->line('no_record_found');?>
              <div class="progress m-b-0" style="height: 5px; margin-top: 5px;">
                <div class="progress-bar progress-bar-info" style="width: 40%"></div>
              </div>
            </div>
          </div>
	
	<?php
}
$i=0;
$colorcode=array(
'success',
'warning',
'info',
'danger'
);
foreach($payments as $key => $val){
?>-->
<!--<div class="alert alert-<?php echo $colorcode[$i];?>" style="margin:5px;">
          
           <a href="<?php echo site_url('user/edit_user/'.$val['uid']);?>">   <?php echo $val['first_name'].' '.$val['last_name'];?></a>
                <?php echo $this->lang->line('subscribed');?> 
                 <?php echo $val['group_name'];?>
                  <button class="btn btn-<?php echo $colorcode[$i];?>">
  <?php echo $this->config->item(strtolower($val['payment_gateway']).'_currency_prefix');?> <?php echo $val['amount'];?> <?php echo $this->config->item(strtolower($val['payment_gateway']).'_currency_sufix');?>  
          </button>    
     </div>  -->   

         

<?php 
 if($i >= 4){
	  $i=0;
	  }else{
	  $i+=1;
	  }
}
?>

        <!-- / payments -->

      </div>
    </div>















</div>
 
<div class="row text-center" style="margin-top:30px; margin-left:30px;">
 
<?php 
echo "Page rendered in <strong> {elapsed_time} </strong> seconds. You may improve it by hosting on recommended hosting. <a href='https://www.ajatus.in/' target='af'>Click here</a> ";
?>
</div>

<script>
update_check('5');
</script>
