Files
opensem/app/Repositories/Shop/Dashboards.php
Ludovic CANDELLIER d33b5eea52 fix editing orders
2022-11-19 23:43:12 +01:00

19 lines
326 B
PHP

<?php
namespace App\Repositories\Shop;
use App\Models\Shop\Homepage;
class Dashboards
{
public static function getStats()
{
return [
'orders_count' => Orders::countByMonth(),
'orders_sum' => Orders::sumByMonth(),
'orders_avg' => Orders::avgByMonth(),
];
}
}