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:
+14
-14
@@ -42,9 +42,9 @@ return [
|
||||
'type' => 'group',
|
||||
'title' => 'Manager Admin',
|
||||
'icon' => 'users',
|
||||
'active' => ['admin.user.*', 'role.*'],
|
||||
'active' => ['administrator.pages.user.*', 'role.*'],
|
||||
'children' => [
|
||||
['title' => 'List Admin', 'route' => 'admin.user.index', 'active' => ['admin.user.*']],
|
||||
['title' => 'List Admin', 'route' => 'administrator.pages.user.index', 'active' => ['administrator.pages.user.*']],
|
||||
['title' => 'Administrator Roles', 'route' => 'role.index', 'active' => ['role.*']],
|
||||
],
|
||||
],
|
||||
@@ -73,26 +73,26 @@ return [
|
||||
'type' => 'group',
|
||||
'title' => 'Orders',
|
||||
'icon' => 'shopping-cart',
|
||||
'active' => ['admin.order.*'],
|
||||
'active' => ['administrator.pages.order.*'],
|
||||
'children' => [
|
||||
['title' => 'View All Orders', 'route' => 'admin.order.index', 'active' => ['admin.order.index'], 'params' => []],
|
||||
['title' => 'Pending Orders', 'route' => 'admin.order.index', 'active' => [], 'params' => ['status' => 'pending']],
|
||||
['title' => 'Processing Orders', 'route' => 'admin.order.index', 'active' => [], 'params' => ['status' => 'processing']],
|
||||
['title' => 'Active Orders', 'route' => 'admin.order.index', 'active' => [], 'params' => ['status' => 'active']],
|
||||
['title' => 'Cancel Orders', 'route' => 'admin.order.index', 'active' => [], 'params' => ['status' => 'cancel']],
|
||||
['title' => 'Add New Orders', 'route' => 'admin.order.create', 'active' => ['admin.order.create']],
|
||||
['title' => 'View All Orders', 'route' => 'administrator.pages.order.index', 'active' => ['administrator.pages.order.index'], 'params' => []],
|
||||
['title' => 'Pending Orders', 'route' => 'administrator.pages.order.index', 'active' => [], 'params' => ['status' => 'pending']],
|
||||
['title' => 'Processing Orders', 'route' => 'administrator.pages.order.index', 'active' => [], 'params' => ['status' => 'processing']],
|
||||
['title' => 'Active Orders', 'route' => 'administrator.pages.order.index', 'active' => [], 'params' => ['status' => 'active']],
|
||||
['title' => 'Cancel Orders', 'route' => 'administrator.pages.order.index', 'active' => [], 'params' => ['status' => 'cancel']],
|
||||
['title' => 'Add New Orders', 'route' => 'administrator.pages.order.create', 'active' => ['administrator.pages.order.create']],
|
||||
],
|
||||
],
|
||||
[
|
||||
'type' => 'group',
|
||||
'title' => 'Invoices',
|
||||
'icon' => 'file-text',
|
||||
'active' => ['admin.invoice.*'],
|
||||
'active' => ['administrator.pages.invoice.*'],
|
||||
'children' => [
|
||||
['title' => 'View All Invoice', 'route' => 'admin.invoice.index', 'active' => ['admin.invoice.index'], 'params' => []],
|
||||
['title' => 'Pending Invoice', 'route' => 'admin.invoice.index', 'active' => [], 'params' => ['status' => 'unpaid']],
|
||||
['title' => 'Paid Invoice', 'route' => 'admin.invoice.index', 'active' => [], 'params' => ['status' => 'active']],
|
||||
['title' => 'Cancel Invoice', 'route' => 'admin.invoice.index', 'active' => [], 'params' => ['status' => 'cancel']],
|
||||
['title' => 'View All Invoice', 'route' => 'administrator.pages.invoice.index', 'active' => ['administrator.pages.invoice.index'], 'params' => []],
|
||||
['title' => 'Pending Invoice', 'route' => 'administrator.pages.invoice.index', 'active' => [], 'params' => ['status' => 'unpaid']],
|
||||
['title' => 'Paid Invoice', 'route' => 'administrator.pages.invoice.index', 'active' => [], 'params' => ['status' => 'active']],
|
||||
['title' => 'Cancel Invoice', 'route' => 'administrator.pages.invoice.index', 'active' => [], 'params' => ['status' => 'cancel']],
|
||||
],
|
||||
],
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user