add new metrics, graph metrics, prepare basket to storage

This commit is contained in:
ludo
2024-01-29 23:44:49 +01:00
parent 9fcc81f4d9
commit 53ad10eefa
12 changed files with 219 additions and 214 deletions

View File

@@ -3,13 +3,13 @@
namespace App\Charts\Shop;
use Akaunting\Apexcharts\Chart;
use App\Repositories\Shop\OrderStatistics;
use App\Repositories\Shop\OrderMetrics;
class Order
{
public static function getMonthly()
{
$data = OrderStatistics::getTotalMonthly();
$data = OrderMetrics::getTotalMonthly();
return (new Chart)->setType('bar')
->setWidth('100%')