@php // Log::debug($configData['layout']); $containerNav = isset($configData['contentLayout']) && $configData['contentLayout'] === 'compact' ? 'container-xxl' : 'container-fluid'; $navbarDetached = $navbarDetached ?? ''; $r = json_decode(Crypt::decrypt(session()->get('active_roles'))); $ar = array_values( array_filter($r, function ($ro) { return session()->get('active_mode') === 1 ? $ro->mode_id == session()->get('active_mode') : $ro->mode_id == session()->get('active_mode') && $ro->entity_id == session()->get('active_company')['id']; }), )[0]; $u = auth() ->user() ->with(['names']) ->find(Auth::id()); $companies = array_filter($r, function ($ro) { return $ro->mode_id == 3; }); $providers = array_filter($r, function ($ro) { return $ro->mode_id == 2; }); $modes = array_unique(array_column($r, 'mode_id')); @endphp @if (isset($navbarDetached) && $navbarDetached == 'navbar-detached')