<?php
$this->load->view('partials/report_start', $this->data);
$report = isset($report) ? $report : array();
?>
<form method="post">
<?php if (!empty($searched)) { ?>
  <div class="report-results-toolbar">
  <p class="report-summary mb-0"><strong><?php echo count($report); ?></strong> new arrival(s) (last 300 days)</p>
  <?php $this->load->view('partials/report_exports'); ?>
</div>
  <?php
  $this->load->view('partials/report_datatable', array(
      'columns' => array(
          'S.No' => 'S_No',
          'Biblio No' => 'biblionumber',
          'Acc No' => 'Acc_No',
          'ISBN' => 'isbn',
          'Title' => 'Title',
          'Author' => 'Author',
          'Class No' => 'Class_No',
          'Publisher' => 'Publisher',
          'Subject' => 'Subject',
      ),
      'rows' => $report,
      'table_id' => 'newArrivalsTable',
  ));
  ?>
<?php } ?>
</form>
<?php $this->load->view('partials/report_end'); ?>
