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 @@ + + + +