Files
cachet-docker/src/Http/Controllers/DashboardController.php
2015-01-14 16:00:18 +00:00

49 lines
1.1 KiB
PHP

<?php
namespace CachetHQ\Cachet\Http\Controllers;
use CachetHQ\Cachet\Models\Component;
use Illuminate\Routing\Controller;
use Illuminate\Support\Facades\View;
class DashboardController extends Controller
{
/**
* Shows the dashboard view.
*
* @return \Illuminate\View\View
*/
public function showDashboard()
{
$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' => trans('dashboard.metrics.metrics').' - '.trans('dashboard.dashboard'),
]);
}
/**
* Shows the notifications view.
*
* @return \Illuminate\View\View
*/
public function showNotifications()
{
return View::make('dashboard.notifications.index')->with([
'pageTitle' => trans('dashboard.notifications.notifications').' - '.trans('dashboard.dashboard'),
]);
}
}