<!-- page content -->
        <div class="right_col" role="main">
          <div class="">
            <div class="page-title">
                <div class="title_left">
                    
                </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>Branch Wise Admission Report</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/print_branchWise_admission_report" method="post">

                      <div class="row" style="padding: 10px 0">
                            <div class="col-md-3 col-sm-3 col-xs-12">
                              <label for="class">Branch<span class="required">*</span></label>
                              <select id="classes" class="form-control" name="branch"  required>
                                <option value=''>Select Branch</option>
                                <?php foreach($branchh as $k=>$v){ ?>
                                <option value="<?php echo $v['id']; ?>"><?php echo $v['name']; ?></option>
                                <?php } ?>
                              </select>
                            </div>

                          <div class="col-md-3 col-sm-3 col-xs-12">
                            <label for="branch">Start Date</label>
                            <input class="form-control" type="date" name="datefrom">
                          </div>

                          <div class="col-md-3 col-sm-3 col-xs-12">
                            <label for="gender">End Date</label>
                            <input class="form-control" type="date" name="dateto">
                          </div>

                      </div>
                      <!-- end-row -->
                        <div class="ln_solid"></div>
                        <div class="form-group">
                        <div class="col-md-9">
                          <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 -->
        
      </div>
    </div>


<!-- Datatables -->
    <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>

    <!-- Datatables -->
    <script>
      jq(document).ready(function() {


            jq("#admission").DataTable({
               dom: "Bfrtip",
              
              buttons: [
                'csv', 'pdf', 'print'
              ],
             responsive: true

            });

      });
    </script>
    <!-- /Datatables -->




<script>




jq(document).ready(function() {
  
jq( "#classes" ).change(function() {

    var classId = jq(this).val();

    jq.ajax({
      url: '<?php echo base_url(); ?>Report/getSections',
      type: 'POST',
      data: {classId: classId},
      success: function(data) {

        var res = "" ;
        var pre = "" ;
        var result = JSON.parse(data);

        jq.each(result, function(key, value) {

         pre = "<option value=''> Select Options  </option>";
         res += "<option value='" + value.section_id + "'>" + value.section_name + "</option>";

        });

        jq("#section").html(pre+res);


      }


    })


});




});


</script>