diff --git a/app/controllers/DashboardController.php b/app/controllers/DashboardController.php index a1d7a6f220fe..72f060ad0870 100644 --- a/app/controllers/DashboardController.php +++ b/app/controllers/DashboardController.php @@ -19,7 +19,7 @@ class DashboardController extends \BaseController { ->groupBy('accounts.id') ->first(); - $select = DB::raw('SUM(clients.paid_to_date) value'); + $select = DB::raw('SUM(clients.paid_to_date) as value'); $totalIncome = DB::table('accounts') ->select($select) @@ -62,4 +62,4 @@ class DashboardController extends \BaseController { return View::make('dashboard', $data); } -} \ No newline at end of file +}