    <div class="right_col" role="main">
            <div class="row">
              <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                  <div class="x_title">
                    <h2><?php echo $title;?></h2>
                    <ul class="nav navbar-right panel_toolbox">
                      <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a></li>
                    </ul>
                    <div class="clearfix"></div>
                  </div><!-- x_title -->
                  
                    <div class="x_content">

                    <div class="right_col" role="main">
                        <div class="row">

                          <table id="notes" class="table table-bordered">
                            <thead>
                              <tr>
                                 < <th>#</th>
                                <th>Subject</th>
                                <th>Title</th>
                                <th>Date</th>
                                <th>Duration</th>
                                <!--<th>Video</th>-->
                                
                                <th>Complete Status</th>
                                <th>Action</th>
                              </tr>
                            </thead>
                            <tbody>
                                <?php $i=1;foreach($table as $k=>$v){ ?>
                                    <tr>
                                        <td><?php echo $i++; ?></td>
                                        <td><?php echo $v["name"]; ?></td>
                                        <td><?php echo $v["title"]; ?></td>
                                        <td><?php echo $v['description']; ?></td>
                                        <td><?php echo $v["time"]." "."minutes"; ?></td>
                                        <td style="text-align:center">
                                            <?php
                                                 $autochaker=$this->db->select('id')
                                                                   ->from('lecture_log')
                                                                   ->where('lec_id',$v['id'])
                                                                   ->where('student_id',$is_active_id)
                                                                   ->get()->row_array()['id'];
                                              if(empty($autochaker)){?>
                                                  <i class="fa fa-times" style="color:red" aria-hidden="true"></i>
                                             <?php }else{ ?>
                                                  <i class="fa fa-check" style="color:green" aria-hidden="true"></i>
                                             <?php } ?>
                                          
                                        </td>
                                        <td>
                                            <a href="<?php echo base_url();?>Syllabus/view_lecture/<?php echo $v['id'];?>"><i class="fa fa-eye"></i></a>&nbsp;
                                            <a class="btn btn-success" href="<?php echo base_url();?>Syllabus/question/<?php echo $v['id'];?>">Ask Question</a>
                                        </td>  
                                    </tr>
                                    <?php } ?>
                           
                             
                            </tbody>
                          </table>
                       
                      </div><!-- x_content -->
                </div>
              </div>
            </div>
          </div>

</div><!-- right_col -->
            
 <script>
    $(document).ready(function() {
            $('.table').DataTable();
        } );
    </script>
    
        






      