@using PantheonRA.BackOffice.Models;

@Html.Partial("~/Views/Shared/_TabNavigation.cshtml", new TabNavigationViewModel {
    Tabs = new List<NavigationtabViewModel>
    {
        new NavigationtabViewModel(Loc.CreateNewInvoice, Url.Action("Index", "CashRegister"),
            Html.IsActive("Index", "CashRegister"),
            !PantheonRA.BackOffice.CurrentUser.CanAccess(PantheonRA.WebApi.Contracts.Enums.Permissions.CASH_REGISTER_CASHIER)),
        new NavigationtabViewModel(Loc.InvoiceList, Url.Action("IssuedBillsSum", "CashRegister"),
            Html.IsActive("IssuedBills", "CashRegister") || Html.IsActive("IssuedBillsSum", "CashRegister"),
            !PantheonRA.BackOffice.CurrentUser.CanAccess(PantheonRA.WebApi.Contracts.Enums.Permissions.CASH_REGISTER_INVOICES)),
        new NavigationtabViewModel(Loc.CashRegisterJournals, Url.Action("ReceivedCashDocuments", "CashRegister"), Html.IsActive("ReceivedCashDocuments", "CashRegister"),
            !PantheonRA.BackOffice.CurrentUser.CanAccess(PantheonRA.WebApi.Contracts.Enums.Permissions.CASH_REGISTER_JOURNAL))
    }
})
