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:
@@ -24,13 +24,13 @@ class AddonController extends Controller
|
||||
);
|
||||
$title = 'List Add-On';
|
||||
|
||||
return view('admin.addon.index', compact('addOns', 'title'));
|
||||
return view('administrator.pages.addon.index', compact('addOns', 'title'));
|
||||
}
|
||||
|
||||
public function create()
|
||||
{
|
||||
$title = 'Add new addon';
|
||||
return view('admin.addon.add', compact('title'));
|
||||
return view('administrator.pages.addon.add', compact('title'));
|
||||
}
|
||||
|
||||
public function store(AddOnRequest $request)
|
||||
@@ -58,7 +58,7 @@ class AddonController extends Controller
|
||||
|
||||
$title = 'Edit Addon';
|
||||
|
||||
return view('admin.addon.edit', compact('title', 'addon'));
|
||||
return view('administrator.pages.addon.edit', compact('title', 'addon'));
|
||||
}
|
||||
public function update(int $id = 0, AddOnRequest $request)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user