@*TODO: refactor based on new hierarchy*@
@if (!PantheonRA.BackOffice.CurrentUser.HasGranules() && PantheonRA.BackOffice.CurrentUser.CanAccess(PantheonRA.WebApi.Contracts.Enums.Permissions.INVENTORY))
{
    <li data-list-item-id="Inventory"
        class="dropdown @Html.IsSelected("Index", "Inventory") @Html.IsSelected("Edit", "Inventory") @Html.IsSelected("Create", "Inventory") @Html.IsSelected("ExcessOrMissing", "Inventory")">
        <a href="@Url.Action("Create", "Inventory")">
            <i class="fas fa-boxes"></i> <span class="nav-label">@Loc.InventoryCount</span>
        </a>
        <ul class="dropdown-menu dropdown-menu-right">
            @if (PantheonRA.BackOffice.CurrentUser.CanAccess(PantheonRA.WebApi.Contracts.Enums.Permissions.INVENTORY))
            {
                <li><a href="@Url.Action("Create", "Inventory")">@Loc.NewInventory.SetMenuNameLength()</a></li>
            }
            @if (PantheonRA.BackOffice.CurrentUser.CanAccess(PantheonRA.WebApi.Contracts.Enums.Permissions.INVENTORY))
            {
                <li><a href="@Url.Action("Index", "Inventory")">@Loc.InventoryList.SetMenuNameLength()</a></li>
            }
        </ul>
    </li>
}
@if (!PantheonRA.BackOffice.CurrentUser.HasGranules() && PantheonRA.BackOffice.CurrentUser.CanAccess(PantheonRA.WebApi.Contracts.Enums.Permissions.PRICE_CHANGE))
{
    <li data-list-item-id="PriceChange"
        class="dropdown @Html.IsSelected("Index", "PriceChange") @Html.IsSelected("Create", "PriceChange") @Html.IsSelected("Edit", "PriceChange")">
        <a href="@Url.Action("Create", "PriceChange")">
            <i class="fas fa-money-bill"></i> <span class="nav-label">@Loc.PriceChange</span>
        </a>
        <ul class="dropdown-menu dropdown-menu-right">
            @if (PantheonRA.BackOffice.CurrentUser.CanAccess(PantheonRA.WebApi.Contracts.Enums.Permissions.PRICE_CHANGE))
            {
                <li><a href="@Url.Action("Create", "PriceChange")">@Loc.NewPriceChange.SetMenuNameLength()</a></li>
            }
            @if (PantheonRA.BackOffice.CurrentUser.CanAccess(PantheonRA.WebApi.Contracts.Enums.Permissions.PRICE_CHANGE))
            {
                <li><a href="@Url.Action("Index", "PriceChange")">@Loc.PriceChangeList.SetMenuNameLength()</a></li>
            }
        </ul>
    </li>
}