@using PantheonRA.BackOffice.Models;
@model bool

@Html.Partial("~/Views/Shared/_TabNavigation.cshtml", new TabNavigationViewModel
{
    Tabs = new List<NavigationtabViewModel>
    {
        new NavigationtabViewModel(Loc.NewOrdersSupplier, Url.Action("CreateSupplierOrder", "Order"),
            Html.IsActive("CreateSupplierOrder", "Order") || Html.IsActive("EditSupplierOrder", "Order"),
            !PantheonRA.BackOffice.CurrentUser.CanAccess(PantheonRA.WebApi.Contracts.Enums.Permissions.PAW_ORDERS_SUPPLIER)),

        new NavigationtabViewModel(Loc.Calendar, Url.Action("CreateBuyerOrder", "Order", new { calendarTab = true }),
        Html.IsActive("GetOrdersByDate", "Order"),
        (!PantheonRA.BackOffice.CurrentUser.CanAccess(PantheonRA.WebApi.Contracts.Enums.Permissions.PAW_ORDERS_BUYER) || !Model)),

        new NavigationtabViewModel(Loc.OrdersSuppliersList, Url.Action("SupplierOrdersReport", "Order"),
            Html.IsActive("SupplierOrdersReport", "Order"),
            !PantheonRA.BackOffice.CurrentUser.CanAccess(PantheonRA.WebApi.Contracts.Enums.Permissions.PAW_ORDERS_SUPPLIER))
    }
})
