mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-02-23 11:16:05 +01:00
44 lines
944 B
PHP
44 lines
944 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.index')->with([
|
|
'pageTitle' => 'Metrics - Dashboard',
|
|
]);
|
|
}
|
|
|
|
/**
|
|
* Shows the notifications view.
|
|
*
|
|
* @return \Illuminate\View\View
|
|
*/
|
|
public function showNotifications()
|
|
{
|
|
return View::make('dashboard.notifications.index')->with([
|
|
'pageTitle' => 'Notifications - Dashboard',
|
|
]);
|
|
}
|
|
}
|