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:
@@ -20,13 +20,13 @@ class PostController extends Controller
|
||||
$title = 'Posts';
|
||||
$posts = $this->postRepository->filter($request->merge(['page' => $request->get('page') ?? 1])->all());
|
||||
|
||||
return view('admin.post.index', compact('title', 'posts'));
|
||||
return view('administrator.pages.post.index', compact('title', 'posts'));
|
||||
}
|
||||
public function create()
|
||||
{
|
||||
$title = 'Add new Post';
|
||||
|
||||
return view('admin.post.add', compact('title'));
|
||||
return view('administrator.pages.post.add', compact('title'));
|
||||
}
|
||||
|
||||
public function store(PostRequest $request)
|
||||
@@ -59,7 +59,7 @@ class PostController extends Controller
|
||||
}
|
||||
$title = 'Edit Post';
|
||||
|
||||
return view('admin.post.edit', compact('title', 'post'));
|
||||
return view('administrator.pages.post.edit', compact('title', 'post'));
|
||||
}
|
||||
|
||||
public function update(int $id = 0,PostRequest $request)
|
||||
|
||||
Reference in New Issue
Block a user