diff --git a/app/controllers/DashboardController.php b/app/controllers/DashboardController.php index b536472b..331a1dd1 100644 --- a/app/controllers/DashboardController.php +++ b/app/controllers/DashboardController.php @@ -8,4 +8,10 @@ class DashboardController extends Controller { public function showDashboard() { return View::make('dashboard.index'); } + + public function showSettings() { + return View::make('dashboard.settings')->with([ + 'pageTitle' => 'Settings - Dashboard' + ]); + } } diff --git a/app/routes/dashboard.php b/app/routes/dashboard.php index d10a59f6..6394fff3 100644 --- a/app/routes/dashboard.php +++ b/app/routes/dashboard.php @@ -6,5 +6,5 @@ Route::group(['before' => 'auth', 'prefix' => 'dashboard'], function() { Route::get('incidents', ['as' => 'dashboard.incidents', 'uses' => 'DashboardController@showDashboard']); Route::get('metrics', ['as' => 'dashboard.metrics', 'uses' => 'DashboardController@showDashboard']); Route::get('status-page', ['as' => 'dashboard.status-page', 'uses' => 'DashboardController@showDashboard']); - Route::get('settings', ['as' => 'dashboard.settings', 'uses' => 'DashboardController@showDashboard']); -}); \ No newline at end of file + Route::get('settings', ['as' => 'dashboard.settings', 'uses' => 'DashboardController@showSettings']); +}); diff --git a/app/views/dashboard/settings.blade.php b/app/views/dashboard/settings.blade.php new file mode 100644 index 00000000..95014225 --- /dev/null +++ b/app/views/dashboard/settings.blade.php @@ -0,0 +1,22 @@ +@extends('layout.dashboard') + +@section('content') +