From a8752b910024e3a71b1a4faf5db0834bb403d9c2 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Tue, 30 Dec 2014 15:41:39 +0000 Subject: [PATCH] Revert "Use sexy laravel stuffs" This reverts commit 9e821d3f60355c0cc87f80c835b007fd4a59b297. --- app/controllers/DashboardController.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/app/controllers/DashboardController.php b/app/controllers/DashboardController.php index 3e20e246..efdb331e 100644 --- a/app/controllers/DashboardController.php +++ b/app/controllers/DashboardController.php @@ -10,7 +10,10 @@ class DashboardController extends Controller public function showDashboard() { // TODO: Find steps needed to complete setup. - return View::make('dashboard.index')->withComponents(Component::all()); + $components = Component::all(); + return View::make('dashboard.index')->with([ + 'components' => $components, + ]); } /** @@ -20,7 +23,9 @@ class DashboardController extends Controller */ public function showMetrics() { - return View::make('dashboard.metrics')->withPageTitle('Metrics - Dashboard'); + return View::make('dashboard.metrics')->with([ + 'pageTitle' => 'Metrics - Dashboard', + ]); } /** @@ -30,6 +35,8 @@ class DashboardController extends Controller */ public function showNotifications() { - return View::make('dashboard.notifications')->withPageTitle('Notifications - Dashboard'); + return View::make('dashboard.notifications')->with([ + 'pageTitle' => 'Notifications - Dashboard', + ]); } }