<?php
/**
 * Copyright © 2016 Magento. All rights reserved.
 * See COPYING.txt for license details.
 */

// @codingStandardsIgnoreFile

?>
<?php $expressions = []; foreach ( $this->main as $item ): ?>
    <?php $expressions[] = '!$state.is(\'' . $item['id'] . '\')';
    ?>
<?php endforeach; ?>
<?php
    $expressions[] = '!$state.is(\'\')';
    $expressions[] = !$this->isInstaller ? 'true' : 'false';
?>

<div class="menu-wrapper"
    ng-show="<?php echo implode( '&&', $expressions); ?>"
    >
<nav class="admin__menu" ng-controller="mainController">
    <span
        class="logo logo-static"
        data-edition="Community Edition">
        <img class="logo-img"
             src="./pub/images/logo.svg"
             alt="Magento Admin Panel">
    </span>
    <ul id="nav" role="menubar">
        <li class="item-home level-0" ng-class="{_active: $state.current.name === 'root.home'}">
            <a href="" ui-sref="root.home">
                <span>Home</span>
            </a>
        </li>
        <li class="item-component level-0"   ng-class="{_active: $state.current.type === 'update'
        || $state.current.type === 'uninstall'}">
            <a href="" ui-sref="root.update">
                <span>Component Manager</span>
            </a>
        </li>
        <li class="item-upgrade level-0" ng-class="{_active: $state.current.type === 'upgrade'}">
            <a href="" ui-sref="root.upgrade">
                <span>System Upgrade</span>
            </a>
        </li>
        <li class="item-system-config level-0" ng-class="{_active: state.current.name === 'root.system-config'}">
            <a href="" ui-sref="root.system-config">
                <span>System Config</span>
            </a>
        </li>
    </ul>
</nav>
</div>
