@using PantheonRA.BackOffice.Models;

@Html.Partial("~/Views/Shared/_TabNavigation.cshtml", new TabNavigationViewModel
{
    Tabs = new List<NavigationtabViewModel>
{
        new NavigationtabViewModel(Loc.WorkOrderList, Url.Action("Index", "Manufacturing"), 
            Html.IsActive("Index", "Manufacturing"),
            !PantheonRA.BackOffice.CurrentUser.CanAccess(PantheonRA.WebApi.Contracts.Enums.Permissions.PRODUCTION)),

        new NavigationtabViewModel(Loc.WOProcessing_IssueMat, Url.Action("WorkOrderMaterials", "Manufacturing", new { key = Model.AcKey}),
            Html.IsActive("WorkOrderMaterials", "Manufacturing")||Html.IsActive("IssuingMaterial", "Manufacturing"), 
            !PantheonRA.BackOffice.CurrentUser.CanAccess(PantheonRA.WebApi.Contracts.Enums.Permissions.PRODUCTION)),

        new NavigationtabViewModel(Loc.WOProcessing_CompletedWork, Url.Action("WorkOrderOperations", "Manufacturing", new { key = Model.AcKey}),
            Html.IsActive("WorkOrderOperations", "Manufacturing")||Html.IsActive("InputCompletedWork", "Manufacturing"),
            !PantheonRA.BackOffice.CurrentUser.CanAccess(PantheonRA.WebApi.Contracts.Enums.Permissions.PRODUCTION)),
    }
})


