@using PantheonRA.BackOffice.Models;

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

        new NavigationtabViewModel(Loc.ListOfRecievingAdvancedPayments, Url.Action("ReceivedAdvancePayments", "Wholesale"),
            Html.IsActive("ReceivedAdvancePayments", "Wholesale") || Html.IsActive("Index", "Move"),
            !PantheonRA.BackOffice.CurrentUser.CanAccess(PantheonRA.WebApi.Contracts.Enums.Permissions.RECEIVED_ADVANCE_PAYMENTS))
    }
})
