Refactor views to use new layout structure and update routes for administrator pages
- Changed view extends from "admin.main" to "administrator.layout.master" across multiple files. - Updated route names in admin.php and administrator.php to reflect new structure for user, order, invoice, and other management functionalities. - Adjusted view includes to point to the new directory structure for blocks and components. - Ensured all permission checks remain intact while refactoring the views.
This commit is contained in:
@@ -44,7 +44,7 @@ class MenuController extends Controller
|
||||
);
|
||||
$title = 'List Menu';
|
||||
|
||||
return view('admin.menu.index', compact('menuOptions', 'title'));
|
||||
return view('administrator.pages.menu.index', compact('menuOptions', 'title'));
|
||||
}
|
||||
|
||||
public function create()
|
||||
@@ -53,7 +53,7 @@ class MenuController extends Controller
|
||||
$menus = $this->menuRepository->getTree();
|
||||
|
||||
$parentMenuOptions = $this->buildMenuOptions($menus);
|
||||
return view('admin.menu.add', compact('title', 'parentMenuOptions'));
|
||||
return view('administrator.pages.menu.add', compact('title', 'parentMenuOptions'));
|
||||
}
|
||||
|
||||
public function store(MenuRequest $request)
|
||||
@@ -87,7 +87,7 @@ class MenuController extends Controller
|
||||
|
||||
$title = 'Edit Menu';
|
||||
|
||||
return view('admin.menu.edit', compact('title', 'menu', 'parentMenuOptions'));
|
||||
return view('administrator.pages.menu.edit', compact('title', 'menu', 'parentMenuOptions'));
|
||||
}
|
||||
|
||||
public function update(int $id = 0, MenuRequest $request)
|
||||
|
||||
Reference in New Issue
Block a user