add view list data from google sheet

This commit is contained in:
arifal
2025-03-11 00:26:48 +07:00
parent b0f15a9221
commit 65600f1b4f
18 changed files with 599 additions and 25 deletions

View File

@@ -215,6 +215,13 @@ class UsersRoleMenuSeeder extends Seeder
"parent_id" => $data->id,
"sort_order" => 7,
],
[
"name" => "Google Sheets",
"url" => "google-sheets",
"icon" => null,
"parent_id" => $data->id,
"sort_order" => 8,
],
[
"name" => "Lap Pariwisata",
"url" => "tourisms-report.index",
@@ -277,6 +284,7 @@ class UsersRoleMenuSeeder extends Seeder
$chatbot = Menu::where('name', 'Chat')->first();
$dalam_sistem = Menu::where('name', 'Dalam Sistem')->first();
$luar_sistem = Menu::where('name', 'Luar Sistem')->first();
$google_sheets = Menu::where('name', 'Google Sheets')->first();
// Superadmin gets all menus
$superadmin->menus()->sync([
@@ -310,6 +318,7 @@ class UsersRoleMenuSeeder extends Seeder
$luar_sistem->id => ["allow_show" => true, "allow_create" => true, "allow_update" => true, "allow_destroy" => true],
$bigdata_resume->id => ["allow_show" => true, "allow_create" => true, "allow_update" => true, "allow_destroy" => true],
$chatbot->id => ["allow_show" => true, "allow_create" => true, "allow_update" => true, "allow_destroy" => true],
$google_sheets->id => ["allow_show" => true, "allow_create" => true, "allow_update" => true, "allow_destroy" => true],
]);
// Admin gets limited menus