From 2558f6cbb6df1680edfcaaaef36e51184c39c8bc Mon Sep 17 00:00:00 2001 From: Ilham Wara Nugroho Date: Tue, 17 Feb 2026 12:32:19 +0700 Subject: [PATCH] update --- app/Helpers/custom.php | 144 +++-- .../Opendata/DatasetController.php | 12 +- resources/views/layouts/master.blade.php | 56 +- .../modules/dashboard/dashboard.blade.php | 508 ++++++------------ .../modules/dashboard/dashboardOld.blade.php | 362 +++++++++++++ .../modules/opendata/dataset/index.blade.php | 86 +-- 6 files changed, 703 insertions(+), 465 deletions(-) create mode 100644 resources/views/modules/dashboard/dashboardOld.blade.php diff --git a/app/Helpers/custom.php b/app/Helpers/custom.php index ce124e7..bf94088 100644 --- a/app/Helpers/custom.php +++ b/app/Helpers/custom.php @@ -244,70 +244,96 @@ if (!function_exists('renderMenu')) { $ch1 = count($child2) > 0 ? '' : ''; $link1 = count($child2) > 0 ? '' : 'menu-link'; $collapse1 = count($child2) > 0 ? 'data-fc-type="collapse"' : ''; - $active = activeMenuClass($p1->module) ? 'active' : ''; - // dd($p1->route); + $show = activeMenuClass($p1->module) ? 'style="display:block!important;"' : ''; + $active = activeMenuClass($p1->module) ? 'sidebar-item-active' : ''; - if ($access1) { - $active1 = activeMenuClass($p1->module) ? 'active' : ''; - - $html .= ''; } + + // if ($access1) { + // $active1 = activeMenuClass($p1->module) ? 'sidebar-item-active' : ''; + + // $html .= ''; + // } } return $html; } diff --git a/app/Http/Controllers/Opendata/DatasetController.php b/app/Http/Controllers/Opendata/DatasetController.php index 8fd3720..2560dd8 100644 --- a/app/Http/Controllers/Opendata/DatasetController.php +++ b/app/Http/Controllers/Opendata/DatasetController.php @@ -106,17 +106,17 @@ class DatasetController extends Controller $action = ''; if((permission('is_create', $this->route.'.*','module',false)) || (permission('is_update', $this->route.'.*','module',false))){ - $action .= '
'; + $action .= '
'; if($row->created_by == auth()->user()->id){ - $action .= ''; + $action .= 'Edit'; } - $action .= ''; + $action .= 'Detail'; if((session('group_id') == 1) || (session('group_alias') == 'admin')){ - // $action .= ''; + // $action .= ''; if($row->status == 1){ - $action .= ''; + $action .= 'Hapus'; }else{ - $action .= ''; + $action .= ''; } } $action .= '
'; diff --git a/resources/views/layouts/master.blade.php b/resources/views/layouts/master.blade.php index 65ae1f1..5ed7258 100644 --- a/resources/views/layouts/master.blade.php +++ b/resources/views/layouts/master.blade.php @@ -10,6 +10,10 @@ + + + +