        <!-- page content -->
        <div class="right_col" role="main">
          <div class="">
            <div class="page-title">
                <div class="title_left">
                   
                </div>
            </div>
             <?php if($this->session->flashdata('msg')){
                 $show_mesg=$this->session->flashdata('msg');
                  echo"<h2>".$show_mesg."</h2>";
             }?>
            <div class="clearfix"></div>
            
            <div class="row">
              <div class="col-md-12 col-sm-6 col-xs-12 ">
                <div class="x_panel">
                  <div class="x_title">
                    <h2>Daily Fee Collection Details</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_daily_fee" method="post">
                        <div class="row" style="padding: 10px 0">

<?php 
 if($this->user_model->is_super())
                 {    $com= $this->db->select("name,id")->from("branch")->get()->result_array();
                 
?>




                    <div class="col-md-3 col-sm-3 col-xs-6 col-md-offset-1">
                              <label for="class">Select Branch<span class="required">*</span></label>
                            <select id="branch" class="form-control col-md-7 col-xs-12" name="branch" required="required">
                            

                            <option value=''>Select Branch</option>
                    <?php   
                    
                              foreach ($com as $value) {
                  ?>
                    <option value="<?php echo $value['id']; ?>"><?php echo $value['name']?></option>

                  <?php } ?>
                          </select>
                            </div>

                    <?php }else{$branch=$this->user_model->getbranch();?>
                            <div class="col-md-3 col-sm-3 col-xs-6 col-md-offset-1">
                              <label for="class">Branch<span class="required">*</span></label>
                                    <input id="branch" name="branch" type="hidden" value="<?= $branch ?>">
                                    <input class="form-control col-md-3 col-sm-3 col-xs-12" id="branch_name" name="branch_name" type="input" readonly value="<?= $this->report_model->getBranch()[0]['name']; ?>">
                            </div>
                      <?php  } ?>
                      <div class="col-md-2 col-sm-2 col-xs-4">
                              <label for="class">Class</label>
                              <select id="class" class="form-control" name="class" >
                              </select>
                          </div>
                     

                      <div  class="col-md-3 col-sm-3 col-xs-6 " id="branch_div">
                        <label for="role">Select Date<span class="required">*</span>
                        </label>
                        <input type="input" class="form-control date datepicker" id="date" name="date" 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%;"> 
                          <!--<input class="form-control col-md-3 col-sm-3 col-xs-6" type="date" name="date" required="required">-->
                      </div>
                      <div class="col-md-2 col-sm-2 col-xs-4">
                          <label class="col-md-12 col-sm-12 col-xs-12" for="student">Select Status<span class="required">*</span></label>

                          <input type="radio" name="status" value="1" id="status" checked /><span>All | </span>
                          <input type="radio" name="status" value="2" id="status"  /><span>Bank | </span>
                          <input type="radio" name="status" value="3" id="status"  /><span>Cash | </span>
                          </select>
                        </div>

<br><br>

                      <div class="ln_solid"></div>
                      <div class="form-group">
                        <div class="col-md-6 col-md-offset-3">
                          <button id="send" type="submit" class="btn btn-success pull-right">Get Report</button>
                        </div>
                      </div>
                    </form>
                  </div>
                </div>
              </div>

              

            </div>

             
          </div>
        </div>
        <!-- /page content -->

        <!-- footer content -->
       
        <!-- /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>
    <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 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>
 
    <?php if($this->user_model->is_super()){ ?>
    $('#branch').select2({
     //selectOnClose: true,
    placeholder: "Select a Branch",
    allowClear:true
    });
    <?php } ?>
    
    
    
    
    </script>
     <script>
 
    <?php if($this->user_model->is_super()){ ?>
    $('#branch').select2({
     //selectOnClose: true,
    placeholder: "Select a Branch",
    allowClear:true
    });
    <?php } ?>
     $('#class').select2({
     //selectOnClose: true,
    placeholder: "Select a Class",
    allowClear:true
    });
    $('#section').select2({
     //selectOnClose: true,
    placeholder: "Select a Section",
    allowClear:true
    });

    
    
    
    </script>
    <script>
        $(document).ready(function(){
            <?php if($this->user_model->is_super()){ ?>
            $(document).on("change","#branch",function(){
                var value = $(this).val();
                $.get("<?php echo base_url(); ?>load/classs/role/"+value,{},function(d){
                    var pre = '<option value="">Select class</opiton>';
                    $("#class").html(pre+d);
                });
            });
            <?php }else{ ?>
                var value = $('#branch').val();
                $.get("<?php echo base_url(); ?>load/classs/role/"+value,{},function(d){
                    var pre = '<option value="">Select class</opiton>';
                    $("#class").html(pre+d);
                });
            <?php } ?>
            
        });
           $(document).on("change","#class",function(){
                var val = $(this).val();
                $.get("<?php echo base_url(); ?>load/section/role/"+val,{},function(ret){
                    var d = '<option value="">Select Section</option>';
                    $("#section").html(d+ret);
                });
            });
            
       
    

    </script>
  <script>
          $(document).ready(function(){
                    $("#class_div").hide();
                    $("#section_div").hide();
                    $("#student_div").hide();
                    $("#status_div").hide();
            
        });
    </script>
  </body>
</html>