<?php defined('BASEPATH') or exit('No direct Access is Allowed'); ?>
<style>

#calendar{
  margin-bottom: 9px;
  border: 4px solid #ccc;
}
.container-tb {
    height: 300px;
    width: 100%;
    overflow: auto;
    border: 2px solid #999;
}
* {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
table {
    border-collapse: collapse;
    table-layout: fixed;
    width: auto;
    min-width: 100%;
}
td, th {
    border: 1px solid #ccc;
    padding-left: 10px;
    padding-right: 10px;
    white-space: nowrap;
}
thead td, thead th {
    border-top: none;
    border-bottom: none;
}
tfoot td, thead th {
    border-top: none;
    border-bottom: none;
}
td.fth-header, th.fth-header, td.fth-footer, th.fth-footer {
    border-top: none !important;
    border-bottom: none !important;
}
td.fth-header, th.fth-header {
        padding: 3px;
    background-color: #444;
    border-bottom: rgba(0,0,0,0.2);
    color: white;
}
td.fth-footer, th.fth-footer {
    background-color:  #444;
    border-top:  rgba(0,0,0,0.2);
    color: white;
}
.span_inventory{
	display:flex!important;
	justify-content:center;
	align-items:center;
}
</style>
   <div class="content-wrapper" id="renderpage">
        <!-- Content Header (Page header) -->
        <section class="content-header">

          <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
            <li class="active">Dashboard</li>
          </ol>
        </section>

        <!-- Main content -->
        <section class="content">
          <!-- Info boxes -->
          <div class="row">
            <div class="col-md-3 col-sm-6 col-xs-12">
              <div class="info-box">
			    <div class="info-box-icon bg-red">
						 <i class="ion ion-ios-people-outline student_ios"></i>
						  <span class="info-box-number">Students</span>
                </div>
                <div class="info-box-content">
                <!--   <span class="info-box-text">Attendee</span> -->
                  <span class="info-box-text">Total<small class="pull-right info-box-number"><?=$this->total_attendee;?></small></span>
                  <span class="info-box-text">Email Confirm<small class="pull-right info-box-number"><?=$this->attendee_confirm;?></small></span>
                  <span class="info-box-text">Not Yet Confirmed<small class="pull-right info-box-number"><?=$this->total_attendee-$this->attendee_confirm;?></small></span>

                </div><!-- /.info-box-content -->
              </div><!-- /.info-box -->
               <div class="info-box">
			    <div class="info-box-icon bg-orange">
						 <i class="ion ion-ios-people-outline student_ios"></i>
						  <span class="info-box-number">Students</span>
                </div>
                <div class="info-box-content">
                <!--   <span class="info-box-text">Attendee</span> -->
                  <span class="info-box-text">Total Student<small class="pull-right info-box-number"><?=$this->total_attendee;?></small></span>
                  <span class="info-box-text">Total Request<small class="pull-right info-box-number"><?=$this->student_request_for_course;?></small></span>
                  <span class="info-box-text">Total Course Enrollled<small class="pull-right info-box-number"><?=$this->student_course_enrolled;?></small></span>
                </div><!-- /.info-box-content -->
              </div><!-- /.info-box -->
            </div><!-- /.col -->
            <div class="col-md-3 col-sm-6 col-xs-12">
              <div class="info-box">
                <div class="info-box-icon bg-green">
						 <i class="ion ion-ios-people-outline student_ios"></i>
						  <span class="info-box-number">Teachers</span>
                </div>
                <div class="info-box-content">
                <!--   <span class="info-box-text">Attendee</span> -->
                  <span class="info-box-text">Total<small class="pull-right info-box-number"><?=$this->total_presenter;?></small></span>
                  <span class="info-box-text">Email Confirm<small class="pull-right info-box-number"><?=$this->presenter_confirm;?></small></span>
                  <span class="info-box-text">Not Yet Confirmed<small class="pull-right info-box-number"><?=$this->total_presenter-$this->presenter_confirm;?></small></span>
                  <span class="info-box-text">Approved<small class="pull-right info-box-number"><?=$this->presenter_confirm_approve;?></small></span>
                </div><!-- /.info-box-content -->
              </div><!-- /.info-box -->
            </div><!-- /.col -->

            <!-- fix for small devices only -->
            <div class="clearfix visible-sm-block"></div>

            <div class="col-md-3 col-sm-6 col-xs-12">

              <div class="info-box">
			    <div class="info-box-icon bg-yellow">
						 <i class="ion ion-ios-pricetag-outline student_ios"></i>
						  <span class="info-box-number">Courses</span>
                </div>
                <div class="info-box-content">
                <!--   <span class="info-box-text">Attendee</span> -->
                  <span class="info-box-text">Total<small class="pull-right info-box-number"><?=$this->total_course;?></small></span>
                  <span class="info-box-text">Running<small class="pull-right info-box-number"><?=$this->total_course_running;?></small></span>
                  <span class="info-box-text">Completed<small class="pull-right info-box-number"><?=$this->total_course_completed;?></small></span>
                  <span class="info-box-text">Not Start yet<small class="pull-right info-box-number"><?=$this->total_course_remaining;?></small></span>
                </div><!-- /.info-box-content -->
              </div><!-- /.info-box -->
            </div><!-- /.col -->
            <div class="col-md-3 col-sm-6 col-xs-12">
              <div class="info-box">
					  <div class="info-box-icon bg-red">
								 <i class="fa fa-files-o student_ios"></i>
								  <span class="info-box-number">Classes</span>
					  </div>
                  <div class="info-box-content">
                <!--   <span class="info-box-text">Attendee</span> -->
                  <span class="info-box-text">Total<small class="pull-right info-box-number"><?=$this->total_classes;?></small></span>
                  <span class="info-box-text">Completed<small class="pull-right info-box-number"><?=$this->total_classes_over;?></small></span>
                  <span class="info-box-text">Not Start Yet<small class="pull-right info-box-number"><?=$this->total_classes_remaining;?></small></span>
                </div><!-- /.info-box-content -->
              </div><!-- /.info-box -->
            </div><!-- /.col -->
            <div class="col-md-3 col-sm-6 col-xs-12">
              <div class="info-box">
			          <div class="info-box-icon  bg-blue">
								 <i class="fa fa-files-o student_ios"></i>
								  <span class="info-box-number">Today's</span>
					  </div>
                  <div class="info-box-content">
                <!--   <span class="info-box-text">Attendee</span> -->
                  <span class="info-box-text">Today's Classes<small class="pull-right info-box-number"><?=$this->total_classes_today;?></small></span>
                  <span class="info-box-text">Running Now<small class="pull-right info-box-number"><?=$this->total_classes_now;?></small></span>
                  <span class="info-box-text">Today Completed<small class="pull-right info-box-number"><?=$this->total_classes_today_over;?></small></span>
                  <span class="info-box-text">Today left<small class="pull-right info-box-number"><?=$this->total_classes_today_remaining;?></small></span>
                </div><!-- /.info-box-content -->
              </div><!-- /.info-box -->
            </div><!-- /.col -->

            <div class="col-md-3 col-sm-6 col-xs-12">
              <div class="info-box">
			          <div class="info-box-icon bg-aqua">
								 <i class="fa fa-files-o student_ios"></i>
								  <span class="info-box-number">Classes</span>
					  </div>
                  <div class="info-box-content">
                <!--   <span class="info-box-text">Attendee</span> -->
                  <span class="info-box-text">This <b style="color:#ffa500;">Week/<?=date('M')?>/<?=date('Y')?></b><small class="pull-right info-box-number"><?=$this->total_classes_week.'/'.$this->totalclasses_month.'/'.$this->totalclasses_year;?></small></span>
                  <span class="info-box-text">Last <b style="color:#ffa500;">Week/Month/Year</b><small class="pull-right info-box-number"><?=$this->total_classes_last_week.'/'.$this->totalclasses_last_month.'/'.$this->totalclasses_last_year;?></small></span>
                  <span class="info-box-text">Next <b style="color:#ffa500;">Week/Month/Year</b><small class="pull-right info-box-number"><?=$this->total_classes_next_week.'/'.$this->total_classes_next_month.'/'.$this->total_classes_next_year;?></small></span>
                </div><!-- /.info-box-content -->
              </div><!-- /.info-box -->
            </div><!-- /.col -->
            <div class="col-md-3 col-sm-6 col-xs-12">
              <div class="info-box">
			        <div class="info-box-icon bg-light-blue">
								 <i class="fa fa-files-o student_ios"></i>
								  <span class="info-box-number">Classes</span>
					  </div>

                  <div class="info-box-content">
                <!--   <span class="info-box-text">Attendee</span> -->
                  <span class="info-box-text">CREATE <b style="color:#00c0ef">Month/Year</b><small class="pull-right info-box-number"><?=$this->total_create_classes_this_month.'/'.$this->total_create_classes_this_year;?></small></span>
                  <span class="info-box-text">MODIFY <b style="color:#00c0ef;">Month/Year</b><small class="pull-right info-box-number"><?=$this->total_modify_classes_this_month.'/'.$this->total_modify_classes_this_year;?></small></span>
                  <span class="info-box-text">CANCEL <b style="color:#00c0ef;">Month/Year</b><small class="pull-right info-box-number"><?=$this->total_cancel_classes_this_month.'/'.$this->total_cancel_classes_this_year;?></small></span>
                </div><!-- /.info-box-content -->
              </div><!-- /.info-box -->
            </div><!-- /.col -->
            <?php /*?>
            <div class="col-md-3 col-sm-6 col-xs-12">
              <div class="info-box">
                <span class="info-box-icon bg-green"><i class="fa fa-files-o"></i><span style="font-size:12px;">Classes</span></span>
                  <div class="info-box-content">
                <!--   <span class="info-box-text">Attendee</span> -->
                  <span class="info-box-text">This Month<small class="pull-right info-box-number"><?=$totalclasses_month;?></small></span>
                  <span class="info-box-text">Last Month<small class="pull-right info-box-number"><?=$totalclasses_last_month;?></small></span>
                  <span class="info-box-text">Next Month<small class="pull-right info-box-number"><?=$total_classes_next_month;?></small></span>
                </div><!-- /.info-box-content -->
              </div><!-- /.info-box -->
            </div><!-- /.col -->
            <div class="col-md-3 col-sm-6 col-xs-12">
              <div class="info-box">
                <span class="info-box-icon bg-yellow"><i class="fa fa-files-o"></i><span style="font-size:12px;">Classes</span></span>
                  <div class="info-box-content">
                <!--   <span class="info-box-text">Attendee</span> -->
                  <span class="info-box-text">This YEAR<small class="pull-right info-box-number"><?=$totalclasses_year;?></small></span>
                  <span class="info-box-text">Last Year<small class="pull-right info-box-number"><?=$totalclasses_last_year;?></small></span>
                  <span class="info-box-text">Next Year<small class="pull-right info-box-number"><?=$total_classes_next_year;?></small></span>
                </div><!-- /.info-box-content -->
              </div><!-- /.info-box -->
            </div><!-- /.col -->
            <?php */?>
          </div><!-- /.row -->

          <div class="row">
            <div class="col-md-12">
              <div class="box">
                <div class="box-header with-border">
                  <h3 class="box-title">Course Wise Class report</h3>
                  <div class="box-tools pull-right">
                    <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
                    <div class="btn-group">
                      <button class="btn btn-box-tool dropdown-toggle" data-toggle="dropdown"><i class="fa fa-wrench"></i></button>
                      <ul class="dropdown-menu" role="menu">
                        <li><a href="#">Action</a></li>
                        <li><a href="#">Another action</a></li>
                        <li><a href="#">Something else here</a></li>
                        <li class="divider"></li>
                        <li><a href="#">Separated link</a></li>
                      </ul>
                    </div>
                    <button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
                  </div>
                </div><!-- /.box-header -->
                <div class="box-body">
                  <div class="row">
                    <div class="col-md-6">
                      <!-- <p class="text-center">
                        <strong>Sales: 1 Jan, 2014 - 30 Jul, 2014</strong>
                      </p> -->
                      <div class="chart" id="course_classes_total">
                        <!-- Sales Chart Canvas -->
                       <!-- <canvas id="salesChart" style="height: 180px;"></canvas>-->
                           <div id="cont" style="height:301px;"></div><!-- min-width: 1000px; max-width: 1300px;margin: 0 auto; -->
                      </div><!-- /.chart-responsive -->
                    </div><!-- /.col -->
                    <div class="col-md-6">
                      <!-- <p class="text-center">
                        <strong>Sales: 1 Jan, 2014 - 30 Jul, 2014</strong>
                      </p> -->
                      <div class="chart2" id="">
                        <!-- Sales Chart Canvas -->
                       <!-- <canvas id="salesChart" style="height: 180px;"></canvas>-->
                           <div id="contas" style="height: 400px;height:301px;"></div><!-- min-width: 1000px; max-width: 1300px;margin: 0 auto; -->
                      </div><!-- /.chart-responsive -->
                    </div>

                  </div><!-- /.row -->
                </div><!-- ./box-body -->

              </div><!-- /.box -->
            </div><!-- /.col -->
          </div><!-- /.row -->

		<div class="row">
            <div class="col-md-12">
              <div class="box">
                <div class="box-header with-border">
                  <h3 class="box-title">Course Wise Chart View</h3>
                  <div class="box-tools pull-right">
                    <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
                    <div class="btn-group">
                      <button class="btn btn-box-tool dropdown-toggle" data-toggle="dropdown"><i class="fa fa-wrench"></i></button>
                      <ul class="dropdown-menu" role="menu">
                        <li><a href="#">Action</a></li>
                        <li><a href="#">Another action</a></li>
                        <li><a href="#">Something else here</a></li>
                        <li class="divider"></li>
                        <li><a href="#">Separated link</a></li>
                      </ul>
                    </div>
                    <button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
                  </div>
                </div><!-- /.box-header -->
                <div class="box-body">
                  <div class="row">
                    <div class="col-md-8">
                      <!-- <p class="text-center">
                        <strong>Sales: 1 Jan, 2014 - 30 Jul, 2014</strong>
                      </p> -->
                      <div class="chart" id="course_classes_total">
                       <!-- <canvas id="salesChart" style="height: 180px;"></canvas>-->

                          <div id="tableContainer2" class="container-tb">
                                <table>
                                  <thead >
                                    <tr>
                                      <th>Sr.</th>
									                    <th>Chart View</th>
                                      <th>Course Name</th>
                                      <th>Category</th>
                                      <th>Class</th>
                                      <th>Subject</th>
                                      <th>Course Faculty</th>
                                      <th>Expected/Assigned (Hrs)</th>
                                      <th>Hour Unit Price</th>
                                      <th>Earning/Expected/Loss</th>
                                      <th>Course Start</th>
                                      <th>Session</th>
                                      <th>Total/Active/Inactive</th>
                                      <th>Timezone</th>
                                      <th>Class/cancelled count</th>
                                      <th>Add Classes/Student-View</th>
                                    </tr>
                                  </thead>
                                  <tbody  style="font-size: 12px;">
                        			<?php if( count($list) ):$sn=1;
                        			$count = $this->uri->segment(4);
                        			foreach($list as $lists ): ?>
                                    <tr>
                                      <td><?php echo  $sn; ?>
									    <td><a id="option1" data-course="<?=$lists->course_name?>" data-total="<?=$lists->course_class_count?>" data-over="<?=$lists->course_over_count?>"
									  data-left="<?=$lists->course_left_count?>" data-cancel="<?=$lists->course_class_cancel_count?>"
                                        data-reschedule="<?=$lists->course_reschedule_count?>" data-running="<?=$lists->course_running_count?>"
                                         href="#" onclick="return goDoSomething(this);"> <i class="fa fa-fw fa-pie-chart"></i>  </a></td>
									<!--  <td><a id="option1" data-course="<?=$lists->course_name?>" data-total="45" data-over="20" data-left="10" data-cancel="10"
                                        data-reschedule="5" data-running="10"
                                         href="#" onclick="return goDoSomething(this);"> Chart  </a></td>
                                      <?php //echo anchor("admin/Adminlte/course_class_list/{$lists->id}",'<i class="fa fa-fw fa-eye"></i>',['title'=>'View Class List']); ?>
                                    </td>-->
                                      <td><?php echo anchor("admin/course/Course/course_class_list/{$lists->id}","{$lists->course_name}",['title'=>'Class List','class'=>'']); ?></td>
                                      <td><?php echo  strtoupper($lists->category_id);?></td>
                                      <td><?php echo  strtoupper($lists->class_id);?></td>
                                      <td><?php echo  strtoupper($lists->subject_id);?></td>
                                      <!-- <td><?php //echo  strtoupper($lists->subject_code);?></td> -->
                                      <td><?php echo  strtoupper($lists->faculty);?> </td>

                                      <td><?php $done=0; echo  $lists->course_duration_hours."/".
                                      round(($lists->sum_duration+$lists->sum_duration_extend)/60,2) //."/".(double)($lists->course_duration_hours-round(($lists->sum_duration+$lists->sum_duration_extend)/60,2));?></td>
                                      <td>  <i class="fa fa-fw fa-rupee"></i> <?php echo  $lists->class_unit_price;?></td>
                                      <td><i class="fa fa-fw fa-rupee"></i> <?php echo  $lists->earning_from_class."/".
                                      $lists->class_unit_price*$lists->course_class_count*$lists->attendee_limit."/".
                                      ($lists->class_unit_price*$lists->course_class_count*$lists->attendee_limit-$lists->earning_from_class);?></td>
                                      <td><?php echo  strtoupper(date("d-M-Y",strtotime($lists->course_start_from)));?></td>
                                      <td><?php echo  strtoupper($lists->session_name);?></td>
                                      <td><?php echo strtoupper($lists->attendee_limit." / ".$lists->course_student."/ ".$lists->inactive_student. " student");//$lists->total_attendee." - ".?></td>
                                      <!-- <td><?php //echo  strtoupper(str_replace(',',' | ',$lists->week_days));?></td> -->
                                      <td><?php echo  $lists->time_zone;?></td>
                                      <td><?php echo //$lists->course_duration_hours."/".
                                      $lists->course_class_count."/".$lists->course_class_cancel_count;?></td>
                                      <td><?php echo anchor("admin/course/Course/add_class_as_well_student_to_course/{$lists->id}",'<i class="fa fa-fw fa-plus-square text-green"></i>',['title'=>'Add More Classes','class'=>'btn btn-sm btn-default']); ?>
                                      <?php echo anchor("admin/course/Course/edit_course_student/{$lists->id}",'<i class="fa fa-fw fa-user-plus text-orange"></i>',['title'=>'Edit Course Student','class'=>'btn btn-sm btn-default']); ?>
                                      <?php echo anchor("admin/course/Course/class_calendar/{$lists->id}",'<i class="fa fa-fw fa-calendar-check-o text-orange"></i>',
                                      ['title'=>'class Schedule','class'=>'btn btn-sm btn-default']); ?>
                                      <!-- <input name="checkbox[]" class="checkbox1" type="checkbox" id="checkbox[]" value="<?php //echo $lists->id ?>"> -->
                                      </td>
                                    </tr>
                                    <?php $sn++;?>
                        			<?php endforeach; ?>
                                    <?php else : ?>
                                    <tr>
                                      <td><strong>No record found</strong></td>
                                    </tr>
                                    <?php endif; ?>

                                  </tbody>
                                <?php echo form_close();?>
                                <tfoot >
                                    <tr>
                                       <?php echo  $link;?>
                                    </tr>
                                  </tfoot>
                                </table>
                                </div>
                                <?php $count++; //echo  $link; ?>
                      </div><!-- /.chart-responsive -->
                    </div><!-- /.col -->
                    <div class="col-md-4">
                      <!-- <p class="text-center">
                        <strong>Sales: 1 Jan, 2014 - 30 Jul, 2014</strong>
                      </p> -->
                      <div class="chart" id="">
                        <!-- Sales Chart Canvas -->
                       <!-- <canvas id="salesChart" style="height: 180px;"></canvas>-->
                           <div id="pier" style="height:301px;"></div><!-- min-width: 1000px; max-width: 1300px;margin: 0 auto; -->
                      </div><!-- /.chart-responsive -->
                    </div>

                  </div><!-- /.row -->
                </div><!-- ./box-body -->

              </div><!-- /.box -->
            </div><!-- /.col -->
          </div><!-- /.row -->

          <!-- Main row -->
          <div class="row">
            <!-- Left col -->
            <div class="col-md-8">
            <div class="row">
                <div class="col-md-6">
                  <!-- USERS LIST -->
                  <div class="box box-danger">
                    <div class="box-header with-border">
                      <h3 class="box-title">Latest Student</h3>
                      <div class="box-tools pull-right">
                        <span class="label label-danger"><?=count($this->attendee_list);?> New Students <?=date('M/Y')?></span>
                        <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
                        <button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
                      </div>
                    </div><!-- /.box-header -->
                    <div class="box-body no-padding">
                      <ul class="users-list clearfix">
                      <?php foreach($this->attendee_list as $at){?>
                        <li>
                          <!-- <img src="<?=base_url('assets/adminlte');?>/dist/img/user1-128x128.jpg" alt="User Image">-->

                           <?php if(preg_match ('./',$at->profile_image) && ($at->profile_image!="")){
                               echo img(array("src"=>base_url($at->profile_image),"class"=>"","style"=>"cursor: pointer;",'title'=>$at->email.','.$at->mobile));
                        }
                        else if(!preg_match ('./',$at->profile_image) && ($at->profile_image!="") ){
                            echo img(array("src"=>$at->profile_image,"class"=>"","style"=>"cursor: pointer;",'title'=>$at->email.','.$at->mobile));
                        }
                        else {echo img(array("src"=>"assets/adminlte/dist/img/user1-128x128.jpg","class"=>"","style"=>"cursor: pointer;",'title'=>$at->email.','.$at->mobile));}?>



                          <a class="users-list-name" href="#"><?=ucfirst($at->first_name)." ".ucfirst($at->last_name);?></a>
                          <span class="users-list-date"><?=ucfirst($at->mobile);?></span>
                          <span class="users-list-date"><?=ucfirst($at->created_at);?></span>
                        </li>
                        <?php }?>
                      </ul><!-- /.users-list -->
                    </div><!-- /.box-body -->
                    <div class="box-footer text-center">
                      <a href="<?=site_url('admin/master/Attendee');?>" class="uppercase">View All Users</a>
                    </div><!-- /.box-footer -->
                  </div><!--/.box -->
                </div><!-- /.col -->

                <div class="col-md-6">
                  <!-- USERS LIST -->
                  <div class="box box-danger">
                    <div class="box-header with-border">
                      <h3 class="box-title">Latest Teachers</h3>
                      <div class="box-tools pull-right">
                        <span class="label label-danger"><?=count($this->presenter_list);?> New teachers <?=date('M/Y')?></span>
                        <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
                        <button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
                      </div>
                    </div><!-- /.box-header -->
                    <div class="box-body no-padding">
                      <ul class="users-list clearfix">
                         <?php foreach($this->presenter_list as $pr){?>
                        <li>
                          <!-- <img src="<?=base_url('assets/adminlte');?>/dist/img/user1-128x128.jpg" alt="User Image">-->

                           <?php if(preg_match ('./',$pr->profile_image) && ($pr->profile_image!="")){
                               echo img(array("src"=>base_url($pr->profile_image),"class"=>"","style"=>"cursor: pointer;",'title'=>$pr->email.','.$pr->mobile));
                        }
                        else if(!preg_match ('./',$pr->profile_image) && ($pr->profile_image!="") ){
                            echo img(array("src"=>$pr->profile_image,"class"=>"","style"=>"cursor: pointer;",'title'=>$pr->email.','.$pr->mobile));
                        }
                        else {echo img(array("src"=>"assets/adminlte/dist/img/user1-128x128.jpg","class"=>"","style"=>"cursor: pointer;",'title'=>$pr->email.','.$pr->mobile));}?>



                          <a class="users-list-name" href="#"><?=ucfirst($pr->first_name)." ".ucfirst($pr->last_name);?></a>
                          <span class="users-list-date"><?=ucfirst($at->mobile);?></span>
                          <span class="users-list-date"><?=ucfirst($pr->created_at);?></span>
                        </li>
                        <?php }?>
                      </ul><!-- /.users-list -->
                    </div><!-- /.box-body -->
                    <div class="box-footer text-center">
                      <a href="<?=site_url('admin/master/Presenter');?>" class="uppercase">View All Users</a>
                    </div><!-- /.box-footer -->
                  </div><!--/.box -->
                </div><!-- /.col -->
              </div><!-- /.row -->

              <!-- MAP & BOX PANE -->
              <div class="box box-success">
                <div class="box-header with-border">
                  <h3 class="box-title">Weekly Class Report</h3>
                  <div class="box-tools pull-right">
                    <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
                    <button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
                  </div>
                </div><!-- /.box-header -->
                <div class="box-body no-padding">
                  <div class="row">
                    <div class="col-md-12 col-sm-8">
                      <div class="pad">
                        <!-- Map will be created here -->
                        <!-- <div id="world-map-markers" style="height: 325px;"></div>-->
                        <div id="tableContainer2" class="container-tb">
                                <table>
                                  <thead >
                                    <tr>
                                        <th>Sr.</th>
                                        <th>CourseId</th>
                                        <th>Class id</th>
                                        <th>Date</th>
                                        <th>Start @</th>
                                        <th>End @</th>
                                        <th>Duration</th>
                                        <th>Extend Time</th>
                                        <th>Teacher</th>
                                        <th>Attendee</th>
                                        <th>Category</th>
                                        <th>Class</th>
                                        <th>Subject</th>
                                    </tr>
                                  </thead>
                                  <tbody  style="font-size: 12px;">
                        			<?php if( count($list2) ):$sn=1;
                        			$count = $this->uri->segment(4);
                        			foreach($list2 as $lists ): ?>
                                    <tr>
                                        <td style="text-align:right;"><?php echo  $sn; ?></td>
                                        <td><?php echo  strtoupper($lists->course_name);?></td>
                                        <td><?php echo  strtoupper($lists->class_name);?></td>
                                        <td><?php echo  strtoupper($lists->class_date);?></td>
                                        <td><?php echo  date('g:i a',strtotime($lists->class_start_time));?></td>
                                     	<td><?php echo  date('g:i a',strtotime($lists->class_end_time));?></td>
                                      	<td><?php echo  $lists->class_duration_min." Mins";?></td>
                                       	<td><?php echo  $lists->class_extend_min." Mins";?></td>
                                        <td><?php echo  strtoupper($lists->faculty);?></td>
                                        <td><?php echo strtoupper($lists->attendee_limit." / ".$lists->today_strength_class. " student");//$lists->total_attendee." - ".?></td>
                                        <td><?php echo  strtoupper($lists->category_id);?></td>
                                        <td><?php echo  strtoupper($lists->class_id);?></td>
                                         <td><?php echo strtoupper($lists->subject_id);?></td>

                                    </tr>
                                    <?php $sn++;?>
                        			<?php endforeach; ?>
                                    <?php else : ?>
                                    <tr>
                                      <td><strong>No record found</strong></td>
                                    </tr>
                                    <?php endif; ?>

                                  </tbody>
                                <tfoot >
                                    <tr>
                                       <?php echo  $link2;?>
                                    </tr>
                                  </tfoot>
                                </table>
                                </div>
                                <?php $count++; //echo  $link; ?>
                      </div>
                    </div><!-- /.col -->

                  </div><!-- /.row -->
                </div><!-- /.box-body -->
              </div><!-- /.box -->

              <!-- TABLE: LATEST ORDERS -->
              <div class="box box-info">
                <div class="box-header with-border">
                  <h3 class="box-title">Latest Payments</h3>
                  <div class="box-tools pull-right">
                    <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
                    <button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
                  </div>
                </div><!-- /.box-header -->
                <div class="box-body">

                          <div id="tableContainer2" class="container-tb">
                                <table>
                                  <thead >
                                    <tr>
                                        <th>#</th>
                                          <th>Student</th>
                                          <th>Toatl Wallet</th>
                                          <th>Current Wallet</th>
                                          <th>Spent</th>
                                         <th>Last Amount Received</th>
                                        <th>Mode Of payment</th>
                                        <th>Receive Date</th>
                                    </tr>
                                  </thead>
                                  <tbody  style="font-size: 12px;">
                        			<?php if( count($list1) ):$sn=1;
                        			$count = $this->uri->segment(4);
                        			foreach($list1 as $lists ): ?>
                                    <tr>
                                    	<td><?php echo  $sn; ?></td>
                                      	<td><?php echo  strtoupper($lists->student_name);?></td>
                                        <td><?php echo $lists->total_amount;?></td>
                                        <td><?php echo $lists->wallet_amount;?></td>
                                        <td><?php echo $lists->total_amount-$lists->wallet_amount;?></td>
                                      	<td><?php echo $lists->w_amount;?></td>
                                      	<td><?php echo $lists->mode_of_payment;?></td>
                                      	<td><?php echo $lists->wallet_add_date_time;?></td>
                                    </tr>
                                    <?php $sn++;?>
                        			<?php endforeach; ?>
                                    <?php else : ?>
                                    <tr>
                                      <td><strong>No record found</strong></td>
                                    </tr>
                                    <?php endif; ?>

                                  </tbody>
                                <tfoot >
                                    <tr>
                                       <?php echo  $link1;?>
                                    </tr>
                                  </tfoot>
                                </table>
                                </div>
                                <?php $count++; //echo  $link; ?>
                </div><!-- /.box-body -->
                <div class="box-footer clearfix">
                  <a href="<?=site_url('admin/account/Account/add_student_money_account');?>" class="btn btn-sm btn-info btn-flat pull-left">Add new Payment</a>
                  <a href="<?=site_url('admin/account/Account');?>" class="btn btn-sm btn-default btn-flat pull-right">View Wallet</a>
                </div><!-- /.box-footer -->
              </div><!-- /.box -->
            </div><!-- /.col -->

            <div class="col-md-4">
              <!-- Info Boxes Style 2 -->


              <div class="box box-default">
                <div id="calendar">

                </div>
              </div><!-- /.box -->

              <!-- PRODUCT LIST -->
              <div class="box box-primary">
                <div class="box-header with-border">
                  <h3 class="box-title">Recently Added Products</h3>
                  <div class="box-tools pull-right">
                    <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
                    <button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button>
                  </div>
                </div><!-- /.box-header -->
                <div class="box-body">
                  <ul class="products-list product-list-in-box">
                    <li class="item">
                      <div class="product-img">
                        <img src="<?=base_url('assets/adminlte');?>/dist/img/default-50x50.gif" alt="Product Image">
                      </div>
                      <div class="product-info">
                        <a href="javascript::;" class="product-title">Samsung TV <span class="label label-warning pull-right">$1800</span></a>
                        <span class="product-description">
                          Samsung 32" 1080p 60Hz LED Smart HDTV.
                        </span>
                      </div>
                    </li><!-- /.item -->
                    <li class="item">
                      <div class="product-img">
                        <img src="<?=base_url('assets/adminlte');?>/dist/img/default-50x50.gif" alt="Product Image">
                      </div>
                      <div class="product-info">
                        <a href="javascript::;" class="product-title">Bicycle <span class="label label-info pull-right">$700</span></a>
                        <span class="product-description">
                          26" Mongoose Dolomite Men's 7-speed, Navy Blue.
                        </span>
                      </div>
                    </li><!-- /.item -->
                    <li class="item">
                      <div class="product-img">
                        <img src="<?=base_url('assets/adminlte');?>/dist/img/default-50x50.gif" alt="Product Image">
                      </div>
                      <div class="product-info">
                        <a href="javascript::;" class="product-title">Xbox One <span class="label label-danger pull-right">$350</span></a>
                        <span class="product-description">
                          Xbox One Console Bundle with Halo Master Chief Collection.
                        </span>
                      </div>
                    </li><!-- /.item -->
                    <li class="item">
                      <div class="product-img">
                        <img src="<?=base_url('assets/adminlte');?>/dist/img/default-50x50.gif" alt="Product Image">
                      </div>
                      <div class="product-info">
                        <a href="javascript::;" class="product-title">PlayStation 4 <span class="label label-success pull-right">$399</span></a>
                        <span class="product-description">
                          PlayStation 4 500GB Console (PS4)
                        </span>
                      </div>
                    </li><!-- /.item -->
                  </ul>
                </div><!-- /.box-body -->
                <div class="box-footer text-center">
                  <a href="javascript::;" class="uppercase">View All Products</a>
                </div><!-- /.box-footer -->
              </div><!-- /.box -->
            </div><!-- /.col -->
          </div><!-- /.row -->
        </section><!-- /.content -->
      </div><!-- /.content-wrapper -->
