Files
cachet-docker/app/controllers/DashboardController.php
Graham Campbell a8752b9100 Revert "Use sexy laravel stuffs"
This reverts commit 9e821d3f60.
2014-12-30 15:41:39 +00:00

43 lines
931 B
PHP

<?php
class DashboardController extends Controller
{
/**
* Shows the dashboard view.
*
* @return \Illuminate\View\View
*/
public function showDashboard()
{
// TODO: Find steps needed to complete setup.
$components = Component::all();
return View::make('dashboard.index')->with([
'components' => $components,
]);
}
/**
* Shows the metrics view.
*
* @return \Illuminate\View\View
*/
public function showMetrics()
{
return View::make('dashboard.metrics')->with([
'pageTitle' => 'Metrics - Dashboard',
]);
}
/**
* Shows the notifications view.
*
* @return \Illuminate\View\View
*/
public function showNotifications()
{
return View::make('dashboard.notifications')->with([
'pageTitle' => 'Notifications - Dashboard',
]);
}
}