|
|
@@ -117,6 +117,7 @@ class SiteController extends BackendController |
|
|
|
*/ |
|
|
|
public function actionIndex() |
|
|
|
{ |
|
|
|
|
|
|
|
// commandes |
|
|
|
$optionDashboardNumberDistributions = Producer::getConfig('option_dashboard_number_distributions') ; |
|
|
|
$dashboardNumberDistributions = $optionDashboardNumberDistributions ? $optionDashboardNumberDistributions : 3 ; |
|
|
@@ -175,8 +176,6 @@ class SiteController extends BackendController |
|
|
|
]); |
|
|
|
|
|
|
|
// clients |
|
|
|
$nbUsers = User::searchCount(); |
|
|
|
|
|
|
|
$usersArray = User::findBy() |
|
|
|
->orderBy('created_at DESC') |
|
|
|
->limit(5) |
|
|
@@ -196,7 +195,6 @@ class SiteController extends BackendController |
|
|
|
'distributionsArray' => $distributionsArray, |
|
|
|
'ordersArray' => $ordersArray, |
|
|
|
'usersArray' => $usersArray, |
|
|
|
'nbUsers' => $nbUsers, |
|
|
|
'usersNegativeCredit' => $usersNegativeCredit, |
|
|
|
'producer' => $producer, |
|
|
|
'productsCount' => $productsCount, |