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:
@@ -18,7 +18,7 @@ class RolesController extends Controller
|
||||
$roles = Role::get();
|
||||
$title = 'Administrator Role';
|
||||
|
||||
return view('admin.role.index',compact('roles','title'));
|
||||
return view('administrator.pages.role.index', compact('roles', 'title'));
|
||||
}
|
||||
public function create()
|
||||
{
|
||||
@@ -26,7 +26,7 @@ class RolesController extends Controller
|
||||
|
||||
$title = 'Add new administrator role';
|
||||
|
||||
return view('admin.role.add',compact('permission','title'));
|
||||
return view('administrator.pages.role.add', compact('permission', 'title'));
|
||||
}
|
||||
public function store(Request $request)
|
||||
{
|
||||
@@ -72,7 +72,7 @@ class RolesController extends Controller
|
||||
|
||||
$title = 'Edit administrator role';
|
||||
|
||||
return view('admin.role.edit',compact('permission','title','role'));
|
||||
return view('administrator.pages.role.edit', compact('permission', 'title', 'role'));
|
||||
|
||||
}
|
||||
public function update(Request $request, $id = 0)
|
||||
|
||||
Reference in New Issue
Block a user