@using PantheonRA.BackOffice.Models;
@using PantheonRA.BackOffice;
@using PantheonRA.WebApi.Contracts.Enums;

@Html.Partial("~/Views/Shared/_TabNavigation.cshtml", new TabNavigationViewModel
{
    Tabs = new List<NavigationtabViewModel>
    {
        new NavigationtabViewModel(
            Loc.NewTravelOrder,
            Url.Action("Create", "TravelOrderAllData"),
            Html.IsActive("Create", "TravelOrderAllData") || Html.IsActive("Edit", "TravelOrderAllData"),
            !CurrentUser.CanAccess(Permissions.TRAVEL_ORDERS) && !CurrentUser.CanAccess(Permissions.TRAVEL_ORDERS_OWN_DATA)),

        new NavigationtabViewModel(
            Loc.ListOfTravelOrders,
            Url.Action("Index", "TravelOrders"),
            Html.IsActive("Index", "TravelOrders"),
            !CurrentUser.CanAccess(Permissions.TRAVEL_ORDERS) && !CurrentUser.CanAccess(Permissions.TRAVEL_ORDERS_OWN_DATA)),
    }
})