From 94c31b1ff4d12b34a5c475a763015f01ef764611 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Tue, 17 Apr 2018 18:52:44 -0400 Subject: [PATCH] Organize the dashboard menu a bit better and include both form submission view pages under the same menu item --- app/Models/DashboardMenu.php | 18 ++++++++++++++++-- resources/views/dashboard/home.blade.php | 12 ++++++------ .../views/dashboard/sections/menu.blade.php | 12 ------------ .../views/dashboard/sections/nav.blade.php | 12 ++++++------ 4 files changed, 28 insertions(+), 26 deletions(-) delete mode 100644 resources/views/dashboard/sections/menu.blade.php diff --git a/app/Models/DashboardMenu.php b/app/Models/DashboardMenu.php index be94d27..cf1deb1 100644 --- a/app/Models/DashboardMenu.php +++ b/app/Models/DashboardMenu.php @@ -10,7 +10,21 @@ class DashboardMenu * @return array */ public static $menu = [ - [ 'Contact', 'contact' ], - [ 'Subscriptions', 'subscriptions' ] + [ + 'title' => 'Submissions', + + 'submenu' => [ + [ + 'title' => 'Contact', + 'type' => 'view', + 'model' => 'contact' + ], + [ + 'title' => 'Subscriptions', + 'type' => 'view', + 'model' => 'subscriptions' + ] + ] + ] ]; } diff --git a/resources/views/dashboard/home.blade.php b/resources/views/dashboard/home.blade.php index a54994d..79e5a1c 100644 --- a/resources/views/dashboard/home.blade.php +++ b/resources/views/dashboard/home.blade.php @@ -3,24 +3,24 @@ @section('dashboard-body')