<?php
use \koolreport\pivot\widgets\PivotTable;
?>
    <div class="report-content">
      <div class="text-center">
        <h1>Sale Report</h1>
        <p class="lead">
          The sale report by Years - Months - Customers - Categories
        </p>
      </div> 
      
        <?php
          $dataStore = $this->dataStore('customers');
          PivotTable::create(array(
            "dataStore"=>$dataStore,
            "rowDimension"=>"row",
            "columnDimension"=>"column",
            
    /* 'measures'=>array(
          'first_name - count',
        ),
        'rowSort' => array(
              'concatday' => function($a, $b) {
                return (int)$a < (int)$b;
              },),
 
                'rowCollapseLevels' => array(1),
        'width' => '50%',*/
          ));
        ?>
      
    </div>
