  <?php 
    $this->load->view('templates/header');
    $action                     = (isset($_GET['action'])) ? $_GET['action'] : "";
    $start_date    = (isset($_GET['start_date'])) ? $_GET['start_date'] : date('d-m-Y');
    $end_date    = (isset($_GET['end_date'])) ? $_GET['end_date'] : date('d-m-Y');
  ?>
    <script>
        var link = "report";
        var sub_link = "invoice";
    </script>
    
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1> HSNWISE SALES report</h1>
      <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
        <li><a href="#">Sales</a></li>
        <li class="active">View</li>
      </ol>
    </section>

    <!-- Main content -->
    <section class="content">
        <div class="row">
            <div class="col-md-12 col-sm-12">
                <div class="box box-primary">
                    <!-- <div class="box-body"> -->
                        <form class="form-horizontal" id="search_form" action="<?php echo base_url('sales/salesctrl/hsnwise_sales_report')?>" method="get" target="_blank">
                            <div class="panel panel-body remove-bottom">
                                <div class="form-group floating-form">
                                    
                                                                      
                                    <input type="hidden" class="form-control" id="action" name="action" value="print" />  
                                    <div class="col-md-2 col-sm-1 floating-label">
                                        <input type="text" class="form-control floating-input" name="start_date" id="start_date" value="<?php echo $start_date ?>" placeholder=" " autocomplete="off"/>
                                        <label>FROM DATE</label>
                                    </div>
                                    <div class="col-md-2 col-sm-1 floating-label">
                                        <input type="text" class="form-control floating-input" name="end_date" id="end_date" value="<?php echo $end_date ?>" placeholder=" " autocomplete="off"/>
                                        <label>TO DATE</label>
                                    </div>

                                    
                                    <div class="col-md-1 col-sm-1 ">
                                        <button type="submit" class="btn btn-primary"><i class="fa fa-search" aria-hidden="true"></i>PRINT</button>   
                                    </div>

                                    <div class="col-md-1 col-sm-1">
                                        <a href="<?php echo base_url('sales/salesctrl/hsnwise_sales_report'); ?>" class="btn btn-primary"><i class="fa fa-undo" aria-hidden="true"></i>
                                            Reset
                                        </a>
                                    </div>                       
                                </div>
                            </div>
                        </form>
                    <!-- </div> -->
                </div>
            </div>
        </div>
    </section>
    <?php 
    $this->load->view('templates/footer');
   ?>
    <script src="<?php echo assets('js/sales.js')?>"></script> 
  