add new menu peta in dashboard

This commit is contained in:
arifal
2025-02-21 11:12:35 +07:00
parent 91475aeead
commit 080582f7ab
3 changed files with 11 additions and 6 deletions

View File

@@ -116,6 +116,13 @@ class UsersRoleMenuSeeder extends Seeder
"parent_id" => $dashboard->id,
"sort_order" => 3,
],
[
"name" => "PETA",
"url" => "dashboard.maps",
"icon" => null,
"parent_id" => $dashboard->id,
"sort_order" => 4,
],
[
"name" => "Users",
"url" => "users.index",
@@ -229,6 +236,7 @@ class UsersRoleMenuSeeder extends Seeder
$lack_of_potentials = Menu::where('name', 'Dashboard Potensi')->first();
$spatial_plannings = Menu::where('name', 'Tata Ruang')->first();
$pdam = Menu::where('name', 'PDAM')->first();
$peta = Menu::where('name', 'PETA')->first();
// Superadmin gets all menus
$superadmin->menus()->sync([
@@ -256,6 +264,7 @@ class UsersRoleMenuSeeder extends Seeder
$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],
$peta->id => ["allow_show" => true, "allow_create" => true, "allow_update" => true, "allow_destroy" => true],
]);
// Admin gets limited menus

View File

@@ -5,8 +5,7 @@
@section('content')
@include('layouts.partials/page-title', ['title' => 'Maps', 'subtitle' => 'Google Maps'])
<div id="map" style="width: 100%; height: 78vh;"></div>
<img src="" />
<div id="map" style="width: 100%; height: 90vh;"></div>
@endsection
@section('scripts')

View File

@@ -33,6 +33,7 @@ Route::group(['middleware' => 'auth'], function(){
Route::get('/bigdata', [BigDataController::class, 'index'])->name('dashboard.home');
Route::get('/dashboard-pbg', [BigDataController::class, 'pbg'])->name('dashboard.pbg');
Route::get('/lack-of-potential', [LackOfPotentialController::class, 'lack_of_potential'])->name('dashboard.lack_of_potential');
Route::get('/maps', [GoogleApisController::class, 'index'])->name('dashboard.maps');
});
// settings
@@ -108,8 +109,4 @@ Route::group(['middleware' => 'auth'], function(){
// Resource route, kecuali create karena dibuat terpisah
Route::resource('/tourisms-report', ReportTourismController::class);
});
Route::group(['prefix' => '/maps'], function(){
Route::get('/kmz', [GoogleApisController::class, 'index']);
});
});