@using PantheonRA.BackOffice.Models;

@Html.Partial("~/Views/Shared/_TabNavigation.cshtml", new TabNavigationViewModel
{
    Tabs = new List<NavigationtabViewModel>
{
        new NavigationtabViewModel(Loc.Cases, Url.Action("Index", "Cases"),
            Html.IsActive("Index", "Cases")),

        new NavigationtabViewModel(Loc.CaseDetails, Url.Action("Edit", "Cases", new { costDrv = Model.ParentCase }),
            Html.IsActive("Create", "Cases") || Html.IsActive("Edit", "Cases"),
            Html.IsActive("Index", "Cases")),

        new NavigationtabViewModel(Loc.Subcases, Url.Action("Subcases", "Cases", new { caseNumber = Model.ParentCase }),
            Html.IsActive("Subcases", "Cases"),
            Html.IsActive("Create", "Cases")),

        new NavigationtabViewModel(Loc.Events, Url.Action("Events", "Cases", new { caseNumber = Model.ParentCase }),
            Html.IsActive("Events", "Cases")),

        new NavigationtabViewModel(Loc.Documents, Url.Action("Documents", "Cases", new { caseNumber = Model.ParentCase }),
            Html.IsActive("Documents", "Cases")),

        new NavigationtabViewModel(Loc.FinancialOverview, Url.Action("FinancialReview", "Cases", new { caseNumber = Model.ParentCase }),
            Html.IsActive("FinancialReview", "Cases")),

        //new NavigationtabViewModel(Loc.CourtDates, Url.Action("CourtDates", "Cases"),
        //    Html.IsActive("CourtDates", "Cases"),
        //    Html.IsActive("Create", "Cases")),

        //new NavigationtabViewModel(Loc.WorkLog, Url.Action("WorkLog", "Cases"),
        //    Html.IsActive("WorkLog", "Cases"),
        //    Html.IsActive("Create", "Cases")),
    }
})
