        <!-- page content -->
        <div class="right_col" role="main">
          <div class="">
            <div class="page-title">
                <div class="title_left">
                   
                </div>
            </div>
            <div class="clearfix"></div>
            <?php if(!$is_super){ ?>
            <div class="row">
              <div class="col-md-12 col-sm-6 col-xs-12 ">
                <div class="x_panel">
                  <div class="x_title">
                    <h2>Teacher Status</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">

                    <form class="form-horizontal form-label-left" action="<?php echo $base_url; ?>Report/fetch_teacher_status" method="post">
                        
                           <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="role">Status 
                        </label>
                        <div class="col-md-4 col-sm-9 col-xs-12">
                          <select id="status" class="form-control col-md-7 col-xs-12" name="status" >
                            <option value="">Select Status</option>
                             <?php 
                                        $branch=$this->user_model->getbranch();      
                                       $this->db->where('is_delete',0)->where('branch',$branch) ;
                                       $this->db->where('type','Teacher') ;
                                $satus=$this->db->get('status')->result();
                              foreach($satus as $value) {
                  ?>
                              <option value="<?php echo $value->id;?> "><?php echo $value->name; ?></option>
                       <?php     } 
                            ?>
                          </select>
                        </div>
                      </div>
                      <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12" for="user">Teacher
                        </label>
                        <div class="col-md-4 col-sm-9 col-xs-12">
                          <select id="teacher" class="form-control col-md-7 col-xs-12" multiple name="teacher[]" >
                           
                             <?php       
                                       $this->db->where('status',0)->where('branch',$branch) ;
                               $tea=$this->db->get('teacher')->result();
                              foreach($tea as $value) {
                  ?>
                              <option value="<?php echo $value->id;?> "><?php echo $value->firstname." ".$value->lastname; ?></option>
                       <?php     } 
                            ?>
                          </select>
                        </div>
                      </div>
                       <div class="item form-group">
                              <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">From       </label>
                                 <div class="col-md-4 col-sm-9 col-xs-12">
                        <input type="date" class="form-control " id="date" name="from" pattern="([0-9]{2}|[0-9]{1})[-]([0-9]{2}|[0-9]{1})[-][0-9]{4}" required-temp="true" placeholder="dd-mm-yyyy" 
                          style="width:100%;">
                            
                            </div>
                            </div>
                            
                            <div class="item form-group">
                              <label class="control-label col-md-3 col-sm-3 col-xs-12" for="name">To       </label>
                            <div class="col-md-4 col-sm-9 col-xs-12">
                          <input type="date" class="form-control " id="date1" name="to" pattern="([0-9]{2}|[0-9]{1})[-]([0-9]{2}|[0-9]{1})[-][0-9]{4}" required-temp="true" placeholder="dd-mm-yyyy" 
                          style="width:100%;">
                          
                            </div>
                              </div>
                  
                      <div class="ln_solid"></div>
                      <div class="form-group">
                              <div class="col-md-4 col-md-offset-3">
                              <input id="send" type="submit" class="btn btn-success pull-right" value="Get Report" />
                        </div>
                      </div>
                    </form>
                  </div>
                </div>
              </div>

              

            </div>

                <?php } ?>
  
          </div>
        </div>
        <!-- /page content -->

        <!-- footer content -->
        <footer>
          <div class="pull-right">
            Prudmac
          </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>
    
    <!-- jQuery Tags Input -->
    <script src="<?php echo base_url(); ?>assets/vendors/jquery.tagsinput/src/jquery.tagsinput.js"></script>
    <script src="<?php echo base_url()?>assets/select/js/select2.min.js"></script> 
    <script>
 
     $('#status').select2({
     //selectOnClose: true,
    allowClear:true
    });
    </script>
    <script>
        $(function(){
         
            $(document).on("load","#class",function(){
                var val = $(this).val();
                $.get("<?php echo base_url(); ?>load/teacherWise/"+val,{},function(ret){
                    $("#teacher").html(ret);
                    jq('#teacher').multiselect('reload');
                });
            });
        

            jq('#teacher').multiselect({
                columns: 1,
                placeholder: 'Select Teacher',
                selectAll: true,
                search: true
            });
        });
    </script>
    <script src="<?php echo base_url(); ?>assets/js/datepicker/daterangepicker.js"></script>
      <!-- Jquery UI-daterangepicker -->
    <script src="<?php echo base_url(); ?>assets/vendors/datepicker/jquery-ui.min.js"></script>
    
 <script>
        
     $( function() {
        $( '.date' ).datepicker({ dateFormat: 'd-m-yy' }).val();
      } );
    
        function date(selector) {
            var dNow = new Date();
            var localdate = dNow.getFullYear()+'/' +(dNow.getMonth() + 1)+'/' + dNow.getDate();
           
        };
    </script>
    <script>
        
     $( function() {
        $( '.date1' ).datepicker({ dateFormat: 'd-m-yy' }).val();
      } );
    
        function date(selector) {
            var dNow = new Date();
            var localdate = dNow.getFullYear()+'/' +(dNow.getMonth() + 1)+'/' + dNow.getDate();
           
        };
    </script>
  </body>
</html>