Dashboard view refactor.
This commit is contained in:
@@ -11,7 +11,7 @@ class DashComponentController extends Controller
|
||||
{
|
||||
$components = Component::all();
|
||||
|
||||
return View::make('dashboard.components')->with([
|
||||
return View::make('dashboard.components.index')->with([
|
||||
'pageTitle' => 'Components - Dashboard',
|
||||
'components' => $components,
|
||||
]);
|
||||
@@ -26,7 +26,7 @@ class DashComponentController extends Controller
|
||||
*/
|
||||
public function showEditComponent(Component $component)
|
||||
{
|
||||
return View::make('dashboard.component-edit')->with([
|
||||
return View::make('dashboard.components.edit')->with([
|
||||
'pageTitle' => 'Editing "'.$component->name.'" Component - Dashboard',
|
||||
'component' => $component,
|
||||
]);
|
||||
@@ -54,7 +54,7 @@ class DashComponentController extends Controller
|
||||
*/
|
||||
public function showAddComponent()
|
||||
{
|
||||
return View::make('dashboard.component-add')->with([
|
||||
return View::make('dashboard.components.add')->with([
|
||||
'pageTitle' => 'Add Component - Dashboard',
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ class DashIncidentController extends Controller
|
||||
{
|
||||
$incidents = Incident::orderBy('created_at', 'desc')->get();
|
||||
|
||||
return View::make('dashboard.incidents')->with([
|
||||
return View::make('dashboard.incidents.index')->with([
|
||||
'pageTitle' => 'Incidents - Dashboard',
|
||||
'incidents' => $incidents,
|
||||
]);
|
||||
@@ -24,7 +24,7 @@ class DashIncidentController extends Controller
|
||||
*/
|
||||
public function showAddIncident()
|
||||
{
|
||||
return View::make('dashboard.incident-add')->with([
|
||||
return View::make('dashboard.incidents.add')->with([
|
||||
'pageTitle' => 'Add Incident - Dashboard',
|
||||
]);
|
||||
}
|
||||
@@ -36,7 +36,7 @@ class DashIncidentController extends Controller
|
||||
*/
|
||||
public function showAddIncidentTemplate()
|
||||
{
|
||||
return View::make('dashboard.incident-template')->with([
|
||||
return View::make('dashboard.incidents.incident-template')->with([
|
||||
'pageTitle' => 'Add Incident Template - Dashboard',
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ class DashSettingsController extends Controller
|
||||
{
|
||||
$this->subMenu['setup']['active'] = true;
|
||||
|
||||
return View::make('dashboard.settings-app-setup')->with([
|
||||
return View::make('dashboard.settings.app-setup')->with([
|
||||
'pageTitle' => 'Application Setup - Dashboard',
|
||||
'subMenu' => $this->subMenu,
|
||||
]);
|
||||
@@ -62,7 +62,7 @@ class DashSettingsController extends Controller
|
||||
{
|
||||
$this->subMenu['theme']['active'] = true;
|
||||
|
||||
return View::make('dashboard.settings-theme')->with([
|
||||
return View::make('dashboard.settings.theme')->with([
|
||||
'pageTitle' => 'Theme - Dashboard',
|
||||
'subMenu' => $this->subMenu,
|
||||
]);
|
||||
@@ -77,7 +77,7 @@ class DashSettingsController extends Controller
|
||||
{
|
||||
$this->subMenu['security']['active'] = true;
|
||||
|
||||
return View::make('dashboard.settings-security')->with([
|
||||
return View::make('dashboard.settings.security')->with([
|
||||
'pageTitle' => 'Security - Dashboard',
|
||||
'subMenu' => $this->subMenu,
|
||||
]);
|
||||
@@ -92,7 +92,7 @@ class DashSettingsController extends Controller
|
||||
{
|
||||
$this->subMenu['stylesheet']['active'] = true;
|
||||
|
||||
return View::make('dashboard.settings-stylesheet')->with([
|
||||
return View::make('dashboard.settings.stylesheet')->with([
|
||||
'pageTitle' => 'Stylesheet - Dashboard',
|
||||
'subMenu' => $this->subMenu,
|
||||
]);
|
||||
|
||||
@@ -9,7 +9,7 @@ class DashUserController extends Controller
|
||||
*/
|
||||
public function showUser()
|
||||
{
|
||||
return View::make('dashboard.user')->with([
|
||||
return View::make('dashboard.user.index')->with([
|
||||
'pageTitle' => 'User - Dashboard',
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ class DashboardController extends Controller
|
||||
*/
|
||||
public function showMetrics()
|
||||
{
|
||||
return View::make('dashboard.metrics')->with([
|
||||
return View::make('dashboard.metrics.index')->with([
|
||||
'pageTitle' => 'Metrics - Dashboard',
|
||||
]);
|
||||
}
|
||||
@@ -36,7 +36,7 @@ class DashboardController extends Controller
|
||||
*/
|
||||
public function showNotifications()
|
||||
{
|
||||
return View::make('dashboard.notifications')->with([
|
||||
return View::make('dashboard.notifications.index')->with([
|
||||
'pageTitle' => 'Notifications - Dashboard',
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user