partial update crud customer data

This commit is contained in:
arifal
2025-02-21 00:46:33 +07:00
parent 7a56735099
commit 5c4be7635b
20 changed files with 898 additions and 3 deletions

View File

@@ -193,6 +193,13 @@ class UsersRoleMenuSeeder extends Seeder
"parent_id" => $data->id,
"sort_order" => 6,
],
[
"name" => "PDAM",
"url" => "customers",
"icon" => null,
"parent_id" => $data->id,
"sort_order" => 7,
],
[
"name" => "Lap Pariwisata",
"url" => "tourisms.index",
@@ -221,6 +228,7 @@ class UsersRoleMenuSeeder extends Seeder
$umkm = Menu::where('name', 'UMKM')->first();
$lack_of_potentials = Menu::where('name', 'Dashboard Potensi')->first();
$spatial_plannings = Menu::where('name', 'Tata Ruang')->first();
$pdam = Menu::where('name', 'PDAM')->first();
// Superadmin gets all menus
$superadmin->menus()->sync([
@@ -247,6 +255,7 @@ class UsersRoleMenuSeeder extends Seeder
$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],
$pdam->id => ["allow_show" => true, "allow_create" => true, "allow_update" => true, "allow_destroy" => true],
]);
// Admin gets limited menus