diff --git a/app/controllers/DashboardController.php b/app/controllers/DashboardController.php index 331a1dd1..61acf172 100644 --- a/app/controllers/DashboardController.php +++ b/app/controllers/DashboardController.php @@ -9,6 +9,40 @@ class DashboardController extends Controller { return View::make('dashboard.index'); } + /** + * Shows the components view. + * @return \Illuminate\View\View + */ + public function showComponents() { + return View::make('dashboard.components')->with([ + 'pageTitle' => 'Components - Dashboard' + ]); + } + + /** + * Shows the incidents view. + * @return \Illuminate\View\View + */ + public function showIncidents() { + return View::make('dashboard.incidents')->with([ + 'pageTitle' => 'Incidents - Dashboard' + ]); + } + + /** + * Shows the metrics view. + * @return \Illuminate\View\View + */ + public function showMetrics() { + return View::make('dashboard.metrics')->with([ + 'pageTitle' => 'Metrics - Dashboard' + ]); + } + + /** + * Shows the settings view. + * @return \Illuminate\View\View + */ 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 6394fff3..6ca22ccf 100644 --- a/app/routes/dashboard.php +++ b/app/routes/dashboard.php @@ -2,9 +2,9 @@ Route::group(['before' => 'auth', 'prefix' => 'dashboard'], function() { Route::get('/', ['as' => 'dashboard', 'uses' => 'DashboardController@showDashboard']); - Route::get('components', ['as' => 'dashboard.components', 'uses' => 'DashboardController@showDashboard']); - 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('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('status-page', ['as' => 'dashboard.status-page', 'uses' => 'DashboardController@showStatusPage']); Route::get('settings', ['as' => 'dashboard.settings', 'uses' => 'DashboardController@showSettings']); }); diff --git a/app/views/dashboard/components.blade.php b/app/views/dashboard/components.blade.php new file mode 100644 index 00000000..4be36cd0 --- /dev/null +++ b/app/views/dashboard/components.blade.php @@ -0,0 +1,24 @@ +@extends('layout.dashboard') + +@section('content') +
+ {{ Lang::get('cachet.dashboard.components') }} + +
+
+
+
+ +
+
Foo
+
Bar
+
Baz
+
+
+
+
+@stop diff --git a/app/views/dashboard/incidents.blade.php b/app/views/dashboard/incidents.blade.php new file mode 100644 index 00000000..d5c84504 --- /dev/null +++ b/app/views/dashboard/incidents.blade.php @@ -0,0 +1,24 @@ +@extends('layout.dashboard') + +@section('content') +
+ {{ Lang::get('cachet.dashboard.incidents') }} + +
+
+
+
+ +
+
Foo
+
Bar
+
Baz
+
+
+
+
+@stop diff --git a/app/views/dashboard/metrics.blade.php b/app/views/dashboard/metrics.blade.php new file mode 100644 index 00000000..b653f3c2 --- /dev/null +++ b/app/views/dashboard/metrics.blade.php @@ -0,0 +1,24 @@ +@extends('layout.dashboard') + +@section('content') +
+ {{ Lang::get('cachet.dashboard.metrics') }} + +
+
+
+
+ +
+
Foo
+
Bar
+
Baz
+
+
+
+
+@stop diff --git a/app/views/partials/dashboard/sidebar.blade.php b/app/views/partials/dashboard/sidebar.blade.php index 8793a49b..68f04f16 100644 --- a/app/views/partials/dashboard/sidebar.blade.php +++ b/app/views/partials/dashboard/sidebar.blade.php @@ -31,11 +31,11 @@ {{ Lang::get('cachet.dashboard.metrics') }} -
  • +
  • {{ Lang::get('cachet.dashboard.settings') }}