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