srp admin stats

This commit is contained in:
2019-07-03 21:14:29 -05:00
parent fa4367e8d9
commit 254562f940

View File

@@ -118,15 +118,18 @@ class SRPAdminController extends Controller
$srpHelper = new SRPHelper();
//Get the number of approved, denied, and under review payouts currently from the database
$pieOpen = SRPShip::where(['approved' => 'Under Review'])
->where('created_at', '>=', $end)
->count();
$pieApproved = SRPShip::where(['approved' => 'Approved'])
->where('created_at', '>=', $end)
->count();
$pieDenied = SRPShip::where(['approved' => 'Denied'])
-where('created_at', '>=', $end)
->count();
$pieOpen = SRPShip::where([
'approved' => 'Under Review',
['created_at', '>=', $end],
])->count();
$pieApproved = SRPShip::where([
'approved' => 'Approved',
['created_at', '>=', $end],
])->count();
$pieDenied = SRPShip::where([
'approved' => 'Denied',
['created_at', '>=', $end],
])->count();
//Get the amount of open orders
//Just copy the data from the previous data pull