done crud spatial plannings

This commit is contained in:
arifal
2025-02-20 15:35:06 +07:00
parent 54146c8c08
commit 7a56735099
19 changed files with 788 additions and 51 deletions

View File

@@ -186,6 +186,13 @@ class UsersRoleMenuSeeder extends Seeder
"parent_id" => $data->id,
"sort_order" => 5,
],
[
"name" => "Tata Ruang",
"url" => "spatial-plannings",
"icon" => null,
"parent_id" => $data->id,
"sort_order" => 6,
],
[
"name" => "Lap Pariwisata",
"url" => "tourisms.index",
@@ -213,6 +220,7 @@ class UsersRoleMenuSeeder extends Seeder
$laporan_pariwisata = Menu::where('name', 'Lap Pariwisata')->first();
$umkm = Menu::where('name', 'UMKM')->first();
$lack_of_potentials = Menu::where('name', 'Dashboard Potensi')->first();
$spatial_plannings = Menu::where('name', 'Tata Ruang')->first();
// Superadmin gets all menus
$superadmin->menus()->sync([
@@ -238,6 +246,7 @@ class UsersRoleMenuSeeder extends Seeder
$laporan_pariwisata->id => ["allow_show" => true, "allow_create" => true, "allow_update" => true, "allow_destroy" => true],
$umkm->id => ["allow_show" => true, "allow_create" => true, "allow_update" => true, "allow_destroy" => true],
$lack_of_potentials->id => ["allow_show" => true, "allow_create" => true, "allow_update" => true, "allow_destroy" => true],
$spatial_plannings->id => ["allow_show" => true, "allow_create" => true, "allow_update" => true, "allow_destroy" => true],
]);
// Admin gets limited menus