@using PantheonRA.WebApi.Contracts.Enums;

@if (PantheonRA.BackOffice.CurrentUser.CanAccess(PantheonRA.WebApi.Contracts.Enums.Permissions.DASHBOARD) &&
    (!PantheonRA.BackOffice.CurrentUser.HasGranules() || PantheonRA.BackOffice.CurrentUser.HasGranule(Granules.DashboardGranule)))
{
    <li data-list-item-id="Dashboard"
        class="@Html.IsSelected("Index", "Dashboard")">
        <a href="@Url.Action("Index", "Dashboard")">
            <i class="fas fa-tachometer"></i> <span class="nav-label">@Loc.DashboardNavMenu</span>
        </a>
    </li>
}