@using PantheonRA.WebApi.Contracts.Enums
@using PantheonRA.BackOffice

@{
    string active = @Html.IsSelected("Index", "Service") +
                    @Html.IsSelected("Edit", "Service") +
                    @Html.IsSelected("WorkOrderMaterials", "Service") +
                    @Html.IsSelected("IssuingMaterial", "Service") +
                    @Html.IsSelected("WorkOrderOperations", "Service") +
                    @Html.IsSelected("Receive", "Service") +
                    @Html.IsSelected("InputCompletedWork", "Service") +
                    @Html.IsSelected("ServicesTools", "Service"); 
}

@if (CurrentUser.HasGranule(Granules.ServiceFieldGranule) && CurrentUser.CanAccess(Permissions.PRODUCTION))
{
    <li data-list-item-id="@Loc.WorkOrderServices"
        class="@active">
        <a id="NavManufacturingServicesTop" href="@Url.Action("Index", "Service")">
            <i class="fas fa-wrench"></i>
            <span class="nav-label">
                @Loc.WorkOrderServices.SetMenuNameLength()
            </span>
        </a>
    </li>
}
