<?php $__env->startSection('content'); ?>
  <section class="content-header">
    <h1>
      <?php echo Trans('reports.menu'); ?>

      <small><?php echo Trans('sale_history.menu'); ?></small>
    </h1>
    <ol class="breadcrumb">
      <li><a href="/"><i class="fa fa-dashboard"></i> Home</a></li>
      <li class="active"><a href="#"><i class="fa fa-usd"></i> <?php echo Trans('reports.menu'); ?></a></li>
      <li class="active"><a href="#"><?php echo Trans('sale_history.menu'); ?></a></li>
    </ol>
  </section>

  <!-- Main content -->
  <section class="content">
    <?php if(Session::has('message')): ?>
      <p class="alert alert-warning">
        <?php echo Trans(Session::get('message')); ?>

      </p>
    <?php endif; ?>
    <div class="box box-body">
        <?php echo $__env->make('reports.inc.sale_form', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
        <div class="row">
          <hr>
          <div class="col-md-12">
            <?php if(isset($results) && count($results)): ?>
              <?php echo $__env->make('reports.inc.sale_history_table', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
            <?php else: ?>
              <p class="text-center">
                <?php echo trans('sale_history.msg'); ?>

              </p>
            <?php endif; ?>
            <div class="text-center">
              <?php echo $results->appends(Request::except('page'))->links(); ?>

            </div>
          </div>
        </div>
      </div>
  </section>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('addJs'); ?>
  </script>
  <?php echo HTML::script('plugins/datepicker/bootstrap-datepicker.js'); ?>

  <?php echo HTML::script('plugins/datepicker/locales/bootstrap-datepicker.kh.js'); ?>

  <script>
    $().datepicker({
      format: 'yyyy-mm-dd',
      language: 'kh'
    });
  </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.production', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>