Hi, I'm trying to get the result of dividing two dataStore results to use on a SimpleCard. Would appreciate some direction as not sure how get the desired result.
SimpleCard::create(array(
"title"=>"Average Spend",
"value"=>($this->dataStore("grossSales"))/($this->dataStore("coversQty")->sum("Pax")),
"preset"=>"warning",
));
The above code does not work. The "grossSales" and "coversQty" contain only one value.
Alternatively, what would be the way to create a third dataStore from the calculation of the first two and then pas the result to the view.php file
Many thanks