        <!-- page content -->
        <div class="right_col" role="main">
          <div class="">
            <div class="page-title">
                <div class="title_left">
                    <h3></h3>
                </div>
            </div>
            <div class="clearfix"></div>

            <div class="row">
              <div class="col-md-12 col-sm-12 col-xs-12">
                <div class="x_panel">
                  <div class="x_title">
                    <h2>View video Lecture</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>
                  <div class="x_content">
<?php if ($this->session->flashdata('success')): ?>
<div class="alert alert-success">
<?php echo $this->session->flashdata('success'); ?>
</div>
<?php endif ?>
<?php if ($this->session->flashdata('error')): ?>
<div class="alert alert-danger">
<?php echo $this->session->flashdata('error'); ?>
</div>
<?php endif ?>


 <form method="post" action="<?php echo base_url();?>Syllabus/paid_emp"> 
     <input type="checkbox" id="all_check" name="all_check"> Check All(Only One Page)
    <input style="float:right" class="btn btn-primary" type="submit" value="Disable">

     <table id="datatable" class="table table-striped table-bordered">
                      <thead>
                        <tr>
                          <th>#</th>
                          <th>Class</th>
                          <th>Subject</th>
                          <th>Title</th>
                          <!--<th>Video</th>-->
                          <th>Date</th>
                          <th>Time</th>
                          <?php if($is_super){ ?>
                          <th>Branch</th>
                          <?php } ?>
                          <th>Action</th>
                        </tr>
                      </thead>


                      <tbody>
                        <?php $i=1; 
                        if(!empty($record))
                        {
                        foreach ($record as  $value) { ?>
                          <tr>
                          <td><input class="check_me" type="checkbox" name="employees_pay[]" value="<?php echo $value['id'] ?>"> <?php echo $i++; ?></td>
                          <td><?php echo $value['class_name']; ?></td>
                          <td><?php echo $value['name']; ?></td>
                          <td><?php echo $value['title'];?></td>
                          <!--<td>-->
                              <?php
                        //       $custom_link=str_replace("watch?v=","embed/",$value['link']);
                         
                        //   if (strpos($custom_link, '&') !== false) {
                        //       $custom_link=substr($custom_link, 0, strpos($custom_link, "&"));
                        //       }
                              ?>
                          <!--    <iframe width="400" height="200" src="<?php //echo $custom_link;?>" allowfullscreen></iframe>-->
                          <!--</td>-->
                          <td><?php echo $value['description']; ?></td>
                          <td><?php echo $value['time']." "."minutes"; ?></td>
                              <?php if($is_super){ ?>
                               <td><?php echo $value['b_name']; ?></td>
                              <?php } ?>
                          <td>
                            <a target="_blank" href="<?php echo base_url();?>Syllabus/view_lecture/<?php echo $value['id'];?>"><i class="fa fa-eye"></i></a>&nbsp;
                            
                             <?php if($edit_delete['edit']){?>
                                <a href="<?php echo base_url();?>Syllabus/edit_lecture/<?php echo $value['id'];?>"><i class="fa fa-pencil"></i></a>
                            <?php } ?>
                
                            <?php if($edit_delete['delete']){?>
                                <a onclick="return confirm('Are you sure to delete lecture?')" href="<?php echo base_url();?>Syllabus/delete_lecture/<?php echo $value['id']; ?>"><i class="fa fa-trash"></i></a>
                            <?php } ?> 
                             <?php
                              $publish=$value['show_status'];
                             if($publish==0){?>
                               <a href="<?php echo base_url();?>Syllabus/disable_show/<?php echo $value['id']?>" style="color:green;"><i class='fa fa-lg fa-check-circle' aria-hidden='true'></i>Enable &nbsp;<span class="label label-info">Click for Disable</span></a>
                               <?php } ?>
                             <?php 
                             if($publish==1)
                                { ?>
                                    <a href="<?php echo base_url();?>Syllabus/enable_show/<?php echo $value['id']?>" style="color:red;"><i class='fa fa-lg fa-times-circle' aria-hidden='true'></i>Disable &nbsp;<span class="label label-info">Click for Enable</span></a>   
                               <?php }?>
                            &nbsp;<a target="_blank" class="btn btn-success" href="<?php echo base_url();?>Syllabus/question/<?php echo $value['id'];?>">View Question</a>
                           </td>
                         
                        </tr>
                        <?php }} ?>
                      </tbody>
                    </table>
                     </form> 
  
 
 
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <!-- /page content -->
        <!-- footer content -->
        <footer>
          <div class="pull-right">
            EduSolutions
          </div>
          <div class="clearfix"></div>
        </footer>
        <!-- /footer content -->
      </div>
    </div>

        <!-- jQuery -->
    <script src="<?php echo base_url(); ?>assets/vendors/jquery/dist/jquery.min.js"></script>

    <!-- Custom JS -->
    <script src="<?php echo base_url(); ?>assets/js/main.js"></script>
    <!-- Bootstrap -->
    <script src="<?php echo base_url(); ?>assets/vendors/bootstrap/dist/js/bootstrap.min.js"></script>
    <!-- FastClick -->
    <script src="<?php echo base_url(); ?>assets/vendors/fastclick/lib/fastclick.js"></script>
    <!-- NProgress -->
    <script src="<?php echo base_url(); ?>assets/vendors/nprogress/nprogress.js"></script>
    <!-- Chart.js -->
    <script src="<?php echo base_url(); ?>assets/vendors/Chart.js/dist/Chart.min.js"></script>
    <!-- gauge.js -->
    <script src="<?php echo base_url(); ?>assets/vendors/gauge.js/dist/gauge.min.js"></script>
    <!-- bootstrap-progressbar -->
    <script src="<?php echo base_url(); ?>assets/vendors/bootstrap-progressbar/bootstrap-progressbar.min.js"></script>
    <!-- iCheck -->
    <script src="<?php echo base_url(); ?>assets/vendors/iCheck/icheck.min.js"></script>
    <!-- Skycons -->
    <script src="<?php echo base_url(); ?>assets/vendors/skycons/skycons.js"></script>
    <!-- Flot -->
    <script src="<?php echo base_url(); ?>assets/vendors/Flot/jquery.flot.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/Flot/jquery.flot.pie.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/Flot/jquery.flot.time.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/Flot/jquery.flot.stack.js"></script>
    <script src="<?php echo base_url(); ?>assets/vendors/Flot/jquery.flot.resize.js"></script>
    <!-- Flot plugins -->
    <script src="<?php echo base_url(); ?>assets/js/flot/jquery.flot.orderBars.js"></script>
    <script src="<?php echo base_url(); ?>assets/js/flot/date.js"></script>
    <script src="<?php echo base_url(); ?>assets/js/flot/jquery.flot.spline.js"></script>
    <script src="<?php echo base_url(); ?>assets/js/flot/curvedLines.js"></script>
    <!-- jVectorMap -->
    <script src="<?php echo base_url(); ?>assets/js/maps/jquery-jvectormap-2.0.3.min.js"></script>
    <!-- bootstrap-daterangepicker -->
    <script src="<?php echo base_url(); ?>assets/js/moment/moment.min.js"></script>
    <script src="<?php echo base_url(); ?>assets/js/datepicker/daterangepicker.js"></script>

    <!-- Custom Theme Scripts -->
    <script src="<?php echo base_url(); ?>assets/build/js/custom.min.js"></script>
     
       <!-- Datatables -->
 <script src="//code.jquery.com/jquery-1.12.4.js"></script>
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/buttons/1.4.1/js/dataTables.buttons.min.js"></script>
<script src="//cdn.datatables.net/buttons/1.4.1/js/buttons.flash.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/pdfmake.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/pdfmake/0.1.32/vfs_fonts.js"></script>
<script src="//cdn.datatables.net/buttons/1.4.1/js/buttons.html5.min.js"></script>
 <script src="//cdn.datatables.net/buttons/1.4.1/js/buttons.print.min.j"></script>
 
<script src="<?php echo base_url(); ?>assets/vendors/datatables.net/js/jquery.dataTables.min.js"></script>
<script src="<?php echo base_url(); ?>assets/vendors/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
<script src="<?php echo base_url(); ?>assets/vendors/datatables.net-buttons/js/dataTables.buttons.min.js"></script>
<script src="<?php echo base_url(); ?>assets/vendors/datatables.net-buttons-bs/js/buttons.bootstrap.min.js"></script>
<script src="<?php echo base_url(); ?>assets/vendors/datatables.net-buttons/js/buttons.flash.min.js"></script>
<script src="<?php echo base_url(); ?>assets/vendors/datatables.net-buttons/js/buttons.html5.min.js"></script>
<script src="<?php echo base_url(); ?>assets/vendors/datatables.net-buttons/js/buttons.print.min.js"></script>
<script src="<?php echo base_url(); ?>assets/vendors/datatables.net-fixedheader/js/dataTables.fixedHeader.min.js"></script>
<script src="<?php echo base_url(); ?>assets/vendors/datatables.net-keytable/js/dataTables.keyTable.min.js"></script>
<script src="<?php echo base_url(); ?>assets/vendors/datatables.net-responsive/js/dataTables.responsive.min.js"></script>
<script src="<?php echo base_url(); ?>assets/vendors/datatables.net-responsive-bs/js/responsive.bootstrap.js"></script>
<script src="<?php echo base_url(); ?>assets/vendors/datatables.net-scroller/js/datatables.scroller.min.js"></script>
<script src="<?php echo base_url(); ?>assets/vendors/jszip/dist/jszip.min.js"></script>
<script src="<?php echo base_url(); ?>assets/vendors/pdfmake/build/pdfmake.min.js"></script>
<script src="<?php echo base_url(); ?>assets/vendors/pdfmake/build/vfs_fonts.js"></script>

     <script>
    $(document).ready(function() {
          
    $('#all_check').change(function() {
        if($(this).is(":checked")) {
          $('input[type=checkbox]').each(function () {
              $(this).prop('checked',true);
          });
        }else
        {
          $('input[type=checkbox]').each(function () {
           
               $(this).removeAttr('checked');  
          });
            
        }
    });
});
    </script>


 <script>
window.setTimeout(function() {
$(".alert").fadeTo(500, 0).slideUp(500, function(){
    $(this).remove(); 
});
}, 3000);
        </script>
    <!-- Datatables -->




    <script>
     $(document).ready(function() {
   
     $('#datatable').DataTable( {
        dom: 'lBfrtip',
        "bPaginate": true,
        "pageLength":10,
        "lengthMenu": [[10, 50, 100, -1], [10, 50, 100, "All"]],
        buttons: [
            'copy', 'csv', 'excel', 'pdf'
        ]
    } );
} );
     
    </script>
  </body>
</html>