GRAB X APOTEK X Hospital PORTAL
This commit is contained in:
@@ -281,7 +281,27 @@ class NavigationSeeder extends Seeder
|
||||
]
|
||||
],
|
||||
'permission' => 'user-management-client-portal'
|
||||
]
|
||||
],
|
||||
####################### HOSPITAL PORTAL #########################
|
||||
[
|
||||
'title' => 'Dashboard',
|
||||
'path' => '/dashboard',
|
||||
'icon' => 'dashboard',
|
||||
'permission' => 'dashboard-hospital-portal'
|
||||
],
|
||||
[
|
||||
'title' => 'Claim',
|
||||
'path' => '/claim',
|
||||
'icon' => 'ic_booking',
|
||||
'permission' => 'dashboard-claim-hospital-portal'
|
||||
],
|
||||
####################### CS LMS & APOTEK PORTAL #########################
|
||||
[
|
||||
'title' => 'Dashboard',
|
||||
'path' => '/prescription-orders',
|
||||
'icon' => 'dashboard',
|
||||
'permission' => 'dashboard-apotek-portal'
|
||||
],
|
||||
];
|
||||
|
||||
foreach ($menuItems as $menuItemData) {
|
||||
@@ -292,6 +312,7 @@ class NavigationSeeder extends Seeder
|
||||
[
|
||||
'title' => $menuItemData['title'],
|
||||
'path' => $menuItemData['path'] ?? null,
|
||||
'icon' => $menuItemData['icon'] ?? null,
|
||||
'permission' => $menuItemData['permission'] ?? null
|
||||
]);
|
||||
|
||||
@@ -304,6 +325,7 @@ class NavigationSeeder extends Seeder
|
||||
[
|
||||
'title' => $childData['title'],
|
||||
'path' => $childData['path'] ?? null,
|
||||
'icon' => $childData['icon'] ?? null,
|
||||
'parent_id' => $menuItem->id,
|
||||
'permission' => $childData['permission'] ?? null
|
||||
]);
|
||||
|
||||
@@ -91,12 +91,21 @@ class PermissionTableSeeder extends Seeder
|
||||
'user-role-list-client-portal',
|
||||
'user-access-list-client-portal'
|
||||
]
|
||||
]
|
||||
],
|
||||
####################### HOSPITAL PORTAL #########################
|
||||
[
|
||||
'type' => 'hospital-portal',
|
||||
'datas' => [
|
||||
'dashboard-hospital-portal',
|
||||
'dashboard-claim-hospital-portal',
|
||||
'dashboard-apotek-portal',
|
||||
]
|
||||
],
|
||||
];
|
||||
|
||||
foreach ($permissions as $values) {
|
||||
foreach ($values['datas'] as $value) {
|
||||
Permission::updateOrCreate(['name' => $value],
|
||||
Permission::updateOrCreate(['name' => $value, 'guard_name' => $values['type']],
|
||||
[
|
||||
'name' => $value,
|
||||
'guard_name' => $values['type']
|
||||
|
||||
Reference in New Issue
Block a user