@using PantheonRA.BackOffice.Models;

@Html.Partial("~/Views/Shared/_TabNavigation.cshtml", new TabNavigationViewModel {
    Tabs = new List<NavigationtabViewModel>
    {
        new NavigationtabViewModel(Loc.NewIssuedAdvancePayment, Url.Action("CreateIssuedAdvancePayment", "AdvancePayment"),
            Html.IsActive("CreateIssuedAdvancePayment", "AdvancePayment") || Html.IsActive("Edit", "AdvancePayment") ||
            Html.IsActive("EditIssuedAdvancePayment", "AdvancePayment"),
            !PantheonRA.BackOffice.CurrentUser.CanAccess(PantheonRA.WebApi.Contracts.Enums.Permissions.ISSUED_ADVANCE_PAYMENTS)),

        new NavigationtabViewModel(Loc.ListOfIssuedAdvancedPayments, Url.Action("IssuedAdvancePayments", "ReceivedBills"),
            Html.IsActive("IssuedAdvancePayments", "ReceivedBills"),
            !PantheonRA.BackOffice.CurrentUser.CanAccess(PantheonRA.WebApi.Contracts.Enums.Permissions.ISSUED_ADVANCE_PAYMENTS))
    }
})
