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

<div class="content-wrapper">
  <section class="content">
  <div class="row">
    <div class="col-xs-12">
	    <div class="box">
        <div class="box-body table-responsive no-padding">
           <div class="border_full">
              <h3 class="full_h3">Course Info
                <a href="<?=site_url('admin/account/Account');?>" class="course_lists pull-right btn btn-sm btn-social" style="background-color: #ffffff;"><i class="fa fa-list text-green"></i> Account List</a>
                <a href="<?=site_url('admin/account/Account/teacher_wallet');?>" class="course_lists pull-right btn btn-sm btn-social" style="background-color: #ffffff;"><i class="fa fa-edit text-green"></i>Teacher Wallet</a>
                  <a href="<?=site_url('admin/account/Account/student_wallet');?>" class="course_lists pull-right btn btn-sm btn-social" style="background-color: #ffffff;"><i class="fa fa-edit text-green"></i>Student Wallet</a>
              </h3>
              <div class="table-responsive1">
                <table class="table table-bordered table-responsive" id="">
                  <thead>
                    <tr>
                      <th>Student Name</th>
                      <th>Course Name</th>
                      <th>Faculty</th>
                      <th>Total Course Enrolled</th>
                      <th>Total Class Enrolled</th>
                    </tr>
                  </thead>
                  <tbody>
                    <tr>
                      <td><?php echo strtoupper($list[0]->student_name);?>kriti</td>
                      <td><?php echo strtoupper($list[0]->course_name);?>maths</td>
                      <td><?php echo ucwords($list[0]->faculty); ?>puja gope</td>
                      <td><?php $a= explode(',',$course_count);echo count(array_unique($a)); ?>science</td>
                      <td><?php echo ucwords($class_count); ?>5</td>
                    </tr>
                  </tbody>
                </table>
              </div>
            </div>
         </div>
		 </div>
    <div class="box">
      <div class="box-body table-responsive no-padding">
        <div class="border_full">
          <h3 class="full_h3">AccountList Info
            <!-- <a href="<?=site_url('admin/account/Course');?>" class="course_lists pull-right btn btn-sm btn-social" style="background-color: #ffffff;"><i class="fa fa-list text-green"></i> Course List</a> -->
            <a href="<?=site_url('admin/course/Course');?>" class="course_lists pull-right btn btn-sm btn-social"
            style="background-color: #ffffff;"><i class="fa fa-fw fa-search  text-green"></i>Search</a>
            <a href="<?=site_url('admin/account/Account/assign_pay_type_teacher');?>" class="course_lists pull-right btn btn-sm btn-social"
            style="background-color: #ffffff;"><i class="fa fa-edit text-green"></i>Assign Teacher Pay Type</a>
          </h3>
          <div  id="reportsummary">
            <div id="tableContainer2" class="container-tb">
              <table class="table-hover">
                <thead >
                  <tr>
                    <th>Sr.</th>
                    <th>Student Id</th>
                    <th>Student</th>
                    <th>Total Wallet</th>
                    <th>Wallet Amount</th>
                    <th>Wallet Spent</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>
                    <td><?php echo  strtoupper($lists->userid);?></td>
                    <td><?php echo  strtoupper($lists->student_name);?></td>
                    <td><i class="fa fa-fw fa-rupee"></i><?php echo  strtoupper($lists->wallet_amount);?></td>
                    <td><i class="fa fa-fw fa-rupee"></i><?php echo  strtoupper($lists->wallet_amount);?></td>
                    <td><i class="fa fa-fw fa-rupee"></i><?php echo  strtoupper($lists->wallet_amount);?></td>
                    <td><?=anchor("admin/account/Account/edit_student_money_account/{$lists->id}",'<i class="fa fa-fw fa-edit"></i>',['class'=>'']);?></td>
                  </tr>
                  <?php $sn++;?>
                  <?php endforeach; ?>
                  <?php else : ?>
                  <tr>
                    <td><strong>No record found</strong></td>
                  </tr>
                  <?php endif; ?>
                </tbody>
              </table>
            </div>
            <?php $count++; //echo  $link; ?>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
</section>
</div>
<div class='wrap'>
  <div class='content content_pop'>
    <div class="col-md-12">
      <?=form_open('admin/Adminlte/course_list_search');?>
      <div class="">
        <div class="col-md-2 padding_20 emp_style">
          <select id='sel_category' class="form-control input-sm" name="category">
            <option value="" >Select Category</option>
            <?php
            foreach($category as $category1){
            echo "<option value='".$category1['id']."'>".strtoupper($category1['category_code'])." | ".strtoupper($category1['category'])."</option>";
            }
            ?>
          </select>
        </div>
        <div class="col-md-2  padding_20 emp_style">
          <select id='sel_class' class="form-control input-sm" name="class" >
            <option value="" >Select class</option>
          </select>
        </div>
        <div class="col-md-2 padding_20 emp_style">
          <select id='sel_subject' class="form-control input-sm" name="subject" >
            <option value="" >Select subject</option>
          </select>
        </div>
        <div class="col-md-2 padding_20 emp_style">
          <select id='sel_course_list' class="form-control input-sm" name="course" >
            <option value="" >Select course</option>
          </select>
        </div>
        <div class="col-md-2 padding_20">
          <?=form_dropdown('subject_code',$subject_code ,set_value('subject_code',$data_taskpo['subject_code']),['class'=>'form-control input-sm select2 select2-hidden-accessible',
          "tabindex"=>"-1","aria-hidden"=>"true","style"=>"width: 100%;"]);?>
        </div>
        <div class="col-md-2  padding_20 emp_style">
          <?php $options=array(''=>'Search Type','and'=>'And','or'=>'OR');?>
          <?=form_dropdown('seach_term',$options,set_value('seach_term','and'),['class'=>'form-control input-sm','style'=>'']);?>
        </div>
        <div class="col-md-2  padding_20 emp_style">
          <?php $options=array(''=>'Order By','ASC'=>'Ascending','DESC'=>'Descending','RANDOM'=>'Random');?>
          <?=form_dropdown('order_by',$options,set_value('order_by','ASC'),['class'=>'form-control input-sm']);?>
        </div>
      </div>
      <div class="btn_mrgin1">
        <?=form_submit('search','search',['class'=>'btn btn-primary btn_mrgin btn-sm']);?>
      </div>
      <?php echo form_close();?>
    </div>
  </div>
</div>
