@php $route = Str::of(Route::currentRouteName())->explode('.'); $controller = $route['0']; $action = @$route['1']; $function = @$route['2']; $set_dashboard = ($controller == 'dashboard' && $action == '') ? ' active' : ''; $role = json_decode(Auth::user()->role, true); @endphp