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:
@@ -17,7 +17,7 @@ class TemplateController extends Controller
|
||||
$template = Template::with('Type')->orderBy('type_id')->simplePaginate(20);
|
||||
$title = "List email template";
|
||||
|
||||
return view('admin.template.index', compact('template', 'title'));
|
||||
return view('administrator.pages.template.index', compact('template', 'title'));
|
||||
}
|
||||
|
||||
public function create()
|
||||
@@ -26,7 +26,7 @@ class TemplateController extends Controller
|
||||
|
||||
$type = Type::select('name', 'id')->get();
|
||||
|
||||
return view('admin.template.add', compact('title', 'type'));
|
||||
return view('administrator.pages.template.add', compact('title', 'type'));
|
||||
}
|
||||
|
||||
public function store(Request $request)
|
||||
@@ -72,7 +72,7 @@ class TemplateController extends Controller
|
||||
|
||||
$type = Type::select('name', 'id')->get();
|
||||
|
||||
return view('admin.template.edit', compact('title', 'type', 'template'));
|
||||
return view('administrator.pages.template.edit', compact('title', 'type', 'template'));
|
||||
}
|
||||
public function update(Request $request)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user