add business industry crud

This commit is contained in:
arifal
2025-02-17 18:40:00 +07:00
parent 154b7f40df
commit beac71d182
21 changed files with 1088 additions and 3 deletions

View File

@@ -148,7 +148,14 @@ class UsersRoleMenuSeeder extends Seeder
"url" => "advertisements.index",
"icon" => null,
"parent_id" => $data->id,
"sort_order" => 1,
"sort_order" => 2,
],
[
"name" => "Usaha atau Industri",
"url" => "business-industries.index",
"icon" => null,
"parent_id" => $data->id,
"sort_order" => 2,
],
];
@@ -165,6 +172,7 @@ class UsersRoleMenuSeeder extends Seeder
$setting_dashboard = Menu::where('name', 'Setting Dashboard')->first();
$setting_pbg = Menu::where('name', 'PBG')->first();
$reklame = Menu::where('name', 'Reklame')->first();
$businessIndustries = Menu::where('name', 'Usaha atau Industri')->first();
// Superadmin gets all menus
$superadmin->menus()->sync([
@@ -184,6 +192,7 @@ class UsersRoleMenuSeeder extends Seeder
$setting_dashboard->id => ["allow_show" => true, "allow_create" => true, "allow_update" => true, "allow_destroy" => true],
$setting_pbg->id => ["allow_show" => true, "allow_create" => true, "allow_update" => true, "allow_destroy" => true],
$reklame->id => ["allow_show" => true, "allow_create" => true, "allow_update" => true, "allow_destroy" => true],
$businessIndustries->id => ["allow_show" => true, "allow_create" => true, "allow_update" => true, "allow_destroy" => true],
]);
// Admin gets limited menus