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:
+2
-2
@@ -187,7 +187,7 @@ Route::prefix('v1')
|
||||
})->name('api.GetVersionOs');
|
||||
Route::post('get-all-image', function (Media $media) {
|
||||
$files = $media->getAllMedia();
|
||||
$data = view('admin.component.media')->with('media', $files)->render();
|
||||
$data = view('administrator.pages.component.media')->with('media', $files)->render();
|
||||
return response()->json(['data' => $data]);
|
||||
})->name('api.GetAllImage');
|
||||
Route::get('get-list-addon', function () {
|
||||
@@ -197,7 +197,7 @@ Route::prefix('v1')
|
||||
}
|
||||
|
||||
$allAddon = Addon::get();
|
||||
$formAddon = view('admin.component.addon')->with([
|
||||
$formAddon = view('administrator.pages.component.addon')->with([
|
||||
'addon' => $allAddon
|
||||
])->render();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user