mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-02-23 19:24:03 +01:00
37 lines
845 B
PHP
37 lines
845 B
PHP
<?php
|
|
|
|
namespace CachetHQ\Cachet\Http\Controllers\Admin;
|
|
|
|
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 notifications view.
|
|
*
|
|
* @return \Illuminate\View\View
|
|
*/
|
|
public function showNotifications()
|
|
{
|
|
return View::make('dashboard.notifications.index')->with([
|
|
'pageTitle' => trans('dashboard.notifications.notifications').' - '.trans('dashboard.dashboard'),
|
|
]);
|
|
}
|
|
}
|