fix editing orders
This commit is contained in:
18
app/Repositories/Shop/Dashboards.php
Normal file
18
app/Repositories/Shop/Dashboards.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?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(),
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user