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:
@@ -22,7 +22,7 @@ class ModuleIPPoolController extends Controller
|
||||
]
|
||||
);
|
||||
$title = 'List all server ip pool';
|
||||
return view('admin.module.ippool.index', compact('modules', 'title'));
|
||||
return view('administrator.pages.module.ippool.index', compact('modules', 'title'));
|
||||
}
|
||||
|
||||
public function create()
|
||||
@@ -33,7 +33,7 @@ class ModuleIPPoolController extends Controller
|
||||
'page' => 1
|
||||
]
|
||||
);
|
||||
return view('admin.module.ippool.add', compact('title', 'moduleNetworks'));
|
||||
return view('administrator.pages.module.ippool.add', compact('title', 'moduleNetworks'));
|
||||
}
|
||||
|
||||
public function store(Request $request)
|
||||
@@ -61,7 +61,7 @@ class ModuleIPPoolController extends Controller
|
||||
]
|
||||
);
|
||||
$title = 'Edit server ip pool';
|
||||
return view('admin.module.ippool.edit', ['module' => $module, 'title' => $title, 'moduleNetworks' => $moduleNetworks]);
|
||||
return view('administrator.pages.module.ippool.edit', ['module' => $module, 'title' => $title, 'moduleNetworks' => $moduleNetworks]);
|
||||
}
|
||||
|
||||
public function update(Request $request, int $id = 0)
|
||||
|
||||
Reference in New Issue
Block a user