update bug daashboards
This commit is contained in:
@@ -34,7 +34,7 @@ public function getDashboardData()
|
||||
public function yearlySubscriptions()
|
||||
{
|
||||
$subscriptions = PlanSubscribe::whereYear('created_at', request('year') ?? date('Y'))
|
||||
->selectRaw('MONTHNAME(created_at) as month, SUM(price) as total_amount')
|
||||
->selectRaw("TO_CHAR(created_at, 'Month') as month, SUM(price) as total_amount")
|
||||
->groupBy('month')
|
||||
->get();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user