<?php
$this->load->view('partials/report_start', $this->data);
$this->load->helper('report');
$report = isset($report) ? $report : array();
$columns = report_catalogue_columns('book');
?>
<form method="post">
<?php if (!empty($searched)) { ?>
  <div class="report-results-toolbar">
  <p class="report-summary mb-0"><strong><?php echo count($report); ?></strong> book record(s)</p>
  <?php $this->load->view('partials/report_exports'); ?>
</div>
  <?php
  $this->load->view('partials/report_datatable', array(
      'columns' => $columns,
      'rows' => $report,
      'table_id' => 'bookReportTable',
  ));
  ?>
<?php } ?>
</form>
<?php $this->load->view('partials/report_end'); ?>
