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:
@@ -26,7 +26,7 @@ class ModuleHostingController extends Controller
|
||||
]
|
||||
);
|
||||
$title = 'List all server hosting';
|
||||
return view('admin.module.hosting.index', compact('modules', 'title'));
|
||||
return view('administrator.pages.module.hosting.index', compact('modules', 'title'));
|
||||
}
|
||||
public function import(Request $request)
|
||||
{
|
||||
@@ -65,7 +65,7 @@ class ModuleHostingController extends Controller
|
||||
public function create()
|
||||
{
|
||||
$title = 'Add new server hosting';
|
||||
return view('admin.module.hosting.add', compact('title'));
|
||||
return view('administrator.pages.module.hosting.add', compact('title'));
|
||||
}
|
||||
public function store(CreateHostingRequest $request)
|
||||
{
|
||||
@@ -92,7 +92,7 @@ class ModuleHostingController extends Controller
|
||||
$server = $this->hostingServerRepository->find($id);
|
||||
if (! $server) return back()->withErrors('Can\'t find server by id ' . $id);
|
||||
$title = 'View server hosting information';
|
||||
return view('admin.module.hosting.edit', compact('title', 'server'));
|
||||
return view('administrator.pages.module.hosting.edit', compact('title', 'server'));
|
||||
}
|
||||
public function update(UpdateHostingRequest $request, int $id = 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user