 
                     <?php echo form_open_multipart(base_url(''),array('class'=>"form-horizontal filter_sheet", 'id'=>"filter_sheet")); ?>
                                <div class="card-body">
                                   <div class="row">

                                    <div class="col-lg-5 col-md-6 col-sm-12">

                                                <div class="form-group">
                                                    <label class="form-label">Select Date:</label>
                                                     <input type="date" id="insert_date" name="insert_date"   class="form-control insert_date">
                                                 </div>
                                                </div>
                                       
                                        </div>

                                        <div class="col-lg-6 col-md-6 col-sm-12">
                                            <div class="form-group">
                                                <label class="form-label">Machine Type:</label>
                                                <select data-live-search="true" name="machine_type"  id="machine_type" required class="form-control" tabindex="-98">
                                                    <option value="">Select Option</option>
                                                    <option value="2">Injection</option>
                                                   <option value="1">Blow</option>
                                                  
                                                   
                                                    </select>
                                            </div>
                                        </div>

                                     <button type="submit" id="dis_submit" class="btn btn-primary">Filter <i class="icon-arrow-right14 position-right"></i></button>
                              
                          
                        </div>
                            
                         <?php form_close();?>


                  
                            
                         

                                 <div id="filter_daily_sheet"></div>
                             
               

                   
          
                         
                         

 <script type='text/javascript'>
                   
             var sheet = $('#filter_sheet');   
    
        sheet.on('submit',function(e){


        e.preventDefault();
        
        var add_sheet = sheet.serialize();
        
            $.ajax({
                type:'POST',
                url:'<?php echo base_url('Admin/day_night_report'); ?>',
                data:add_sheet,
                dataType:'json',
                success:function(data){
                    console.log('first'+data);
                $('#filter_daily_sheet').show().html(data.html);
                    
                     //$('#filter_daily_sheet').show(filter_data);
                },
                error:function(data){console.log(data.responseText);}
            });
       // }
    });

</script>