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

@Html.Partial("~/Views/Shared/_TabNavigation.cshtml", new TabNavigationViewModel
{
    Tabs = new List<NavigationtabViewModel>
    {
        new NavigationtabViewModel(Loc.WorkOrderList, Url.Action("IndexMF", "Manufacturing"),
            Html.IsActive("Index", "Manufacturing"),
            !PantheonRA.BackOffice.CurrentUser.CanAccess(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(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(Permissions.PRODUCTION)),


        new NavigationtabViewModel(Loc.Receive, Url.Action("Receive", "Manufacturing", new { id = Model.AcKey }), Html.IsActive("Receive", "Manufacturing"),
            !PantheonRA.BackOffice.CurrentUser.CanAccess(Permissions.PRODUCTION))
    }
})
