@using PantheonRA.BackOffice.Models;

@Html.Partial("~/Views/Shared/_TabNavigation.cshtml", new TabNavigationViewModel {
    Tabs = new List<NavigationtabViewModel>
    {
        new NavigationtabViewModel(Loc.CashRegisterJournal, Url.Action("Index", "Journal"), Html.IsActive("Index", "Journal"),
            !PantheonRA.BackOffice.CurrentUser.CanAccess(PantheonRA.WebApi.Contracts.Enums.Permissions.CASH_REGISTER_JOURNAL)),
        new NavigationtabViewModel(Loc.CashRegisterJournalOverview, Url.Action("ReceivedCashDocuments", "Journal"),
            Html.IsActive("ReceivedCashDocuments", "Journal") || Html.IsActive("PrintPreview", "Journal"),
            !PantheonRA.BackOffice.CurrentUser.CanAccess(PantheonRA.WebApi.Contracts.Enums.Permissions.CASH_REGISTER_JOURNAL))
    }
})
