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

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

        new NavigationtabViewModel(
            Loc.Tools,
            Url.Action("ServicesTools", "Manufacturing", new { key = Model.AcKey}),
            Html.IsActive("ServicesTools", "Manufacturing"), 
            !CurrentUser.CanAccess(Permissions.PRODUCTION)),

        new NavigationtabViewModel(
            Loc.WorkDoneReporting,
            Url.Action("WorkOrderOperations", "Manufacturing", new { key = Model.AcKey}),
            Html.IsActive("WorkOrderOperations", "Manufacturing") || Html.IsActive("InputCompletedWork", "Manufacturing"),
            !CurrentUser.CanAccess(Permissions.PRODUCTION))
    }
})


