@using PantheonRA.BackOffice.Models;

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

        new NavigationtabViewModel(Loc.OnPayment, Url.Action("Index", "PayOrders"),
            Html.IsActive("Index", "PayOrders"),
            !PantheonRA.BackOffice.CurrentUser.CanAccess(PantheonRA.WebApi.Contracts.Enums.Permissions.PAW_FINANCE)),

        new NavigationtabViewModel(Loc.Sent, Url.Action("Index", "PayOrders"),
            Html.IsActive("Index", "PayOrders"),
            !PantheonRA.BackOffice.CurrentUser.CanAccess(PantheonRA.WebApi.Contracts.Enums.Permissions.PAW_FINANCE)),

        new NavigationtabViewModel(Loc.Realized, Url.Action("Index", "PayOrders"),
            Html.IsActive("Index", "PayOrders"),
            !PantheonRA.BackOffice.CurrentUser.CanAccess(PantheonRA.WebApi.Contracts.Enums.Permissions.PAW_FINANCE)),
    }
})