Good morning I have an array manually and I want to export it to excel can you help me please because I get the following error: "array_keys() expects parameter 1 to be array, null given"
These are the data for the view:
$cliente=array (
'RUC' => '0106657950',
'CLIENTE' => 'MONTALVAN MONTALVAN EDGAR VINICIO',
'2019/03/17 - 2019/04/16' => '$326.02',
'2019/04/17 - 2019/05/17' => '$0.00',
'2019/05/18 - 2019/06/17' => '$0.00',
'2019/06/18 - 2019/07/18' => '$0.00',
'2019/07/19 - 2019/08/18' => '$0.00',
'2019/08/19 - En adelante' => '$0.00',
'TOTAL' => '$326.02',
)
$this->dataStore('cliente')->data($cliente);
In the view:
`
\koolreport\excel\Table::create(array(
"dataStores" => $this->dataStore("cliente")->data()
));