@php $loginLogo = \ProcessMaker\Models\Setting::getLogin(); @endphp
@if(hasPackage('package-ai') && shouldShow('globalSearchBar')) @endif

@{{ item.alertTitle }}

@{{item.alertText}} {{ __('Download') }}
@php $menuItems = []; // Add here the package to add in the topNav menu $packagesList = ['package-analytics-reporting']; $existsMenuProvider = Menu::get('customtopnav') !== null; $items = $existsMenuProvider ? Menu::get('customtopnav')->items->all() : []; $customNav = []; foreach($items as $item) { if (!$item->hasParent()) { $customNav[] = $item; if ($item->hasChildren()) { $item->childItems = $item->children(); $item->hasSubItems = true; } else { $item->hasSubItems = false; } } } $defaultNav = Menu::get('topnav')->items->all(); foreach($defaultNav as $item) { $item->hasSubItems = false; } foreach(array_merge($customNav, $defaultNav) as $item) { $newItem = (array) $item; $newItem['link'] = $item->url(); $itemsInCustom = array_filter($customNav, function ($el) use($item) { return $el === $item; }); $newItem['isCustom'] = count($itemsInCustom) > 0; $menuItems[] = $newItem; } // @todo make a refactor in the topNav reviewing the active() function // The add a menu the Request is always highligth if (in_array(Request::path(), $packagesList)) { $menuItems[0]['isActive'] = false; } // If a menu provider is installed, remove menu items from ProcessMaker but preserve any other (from packages, for example) if ($existsMenuProvider) { $menuItems = array_filter($menuItems, function ($item) use($customNav) { $itemRoute = Route::getRoutes()->match(Request::create($item['link'])); $isCoreLink = !$itemRoute->isFallBack && isset($itemRoute->action['controller']) && strpos($itemRoute->action['controller'], "ProcessMaker\\Http\\") === 0; return !$isCoreLink || $item['isCustom']; }); } @endphp Switch to Mobile View @if(hasPackage('package-ai') && shouldShow('globalSearchBar')) @endif @if (shouldShow('requestButton')) @endif
  1. @php $user = Auth::user(); $permissions = json_encode([ 'edit-personal-profile' => $user->can('edit-personal-profile'), ]); @endphp
@yield('breadcrumbs')