diff --git a/app/controllers/DashboardController.php b/app/controllers/DashboardController.php index 99ccc29b..eac65281 100644 --- a/app/controllers/DashboardController.php +++ b/app/controllers/DashboardController.php @@ -45,6 +45,16 @@ class DashboardController extends Controller { ]); } + /** + * Shows the notifications view. + * @return \Illuminate\View\View + */ + public function showNotifications() { + return View::make('dashboard.notifications')->with([ + 'pageTitle' => 'Notifications - Dashboard' + ]); + } + /** * Shows the settings view. * @return \Illuminate\View\View diff --git a/app/lang/en/cachet.php b/app/lang/en/cachet.php index 041f359a..7f332ec7 100644 --- a/app/lang/en/cachet.php +++ b/app/lang/en/cachet.php @@ -36,6 +36,7 @@ return array( 'metrics' => 'Metrics', 'status_page' => 'Status Page', 'settings' => 'Settings', + 'notifications' => 'Notifications', 'toggle_navigation' => 'Toggle Navigation', 'search' => 'Search...', ), diff --git a/app/routes/dashboard.php b/app/routes/dashboard.php index 6ca22ccf..f90b8eb3 100644 --- a/app/routes/dashboard.php +++ b/app/routes/dashboard.php @@ -5,6 +5,7 @@ Route::group(['before' => 'auth', 'prefix' => 'dashboard'], function() { Route::get('components', ['as' => 'dashboard.components', 'uses' => 'DashboardController@showComponents']); Route::get('incidents', ['as' => 'dashboard.incidents', 'uses' => 'DashboardController@showIncidents']); Route::get('metrics', ['as' => 'dashboard.metrics', 'uses' => 'DashboardController@showMetrics']); + Route::get('notifications', ['as' => 'dashboard.notifications', 'uses' => 'DashboardController@showNotifications']); Route::get('status-page', ['as' => 'dashboard.status-page', 'uses' => 'DashboardController@showStatusPage']); Route::get('settings', ['as' => 'dashboard.settings', 'uses' => 'DashboardController@showSettings']); }); diff --git a/app/views/dashboard/notifications.blade.php b/app/views/dashboard/notifications.blade.php new file mode 100644 index 00000000..5950ba68 --- /dev/null +++ b/app/views/dashboard/notifications.blade.php @@ -0,0 +1,26 @@ +@extends('layout.dashboard') + +@section('content') +