@model TC.Mobile.ViewModels.Models.HistoryActionsModel

@{
    ViewData["Title"] = Html.Translate(12963);
}

<div class="row">
    <if include-if="Model != null">
        @foreach (var mainMenu in Model.HistoryMainMenuActions)
        {
            <h2>@mainMenu.Name</h2>
            <if include-if="mainMenu.HistorySubMenuActions != null">
                @foreach (var submenu in Model.HistoryMainMenuActions)
                {
                    <h3>@submenu.Name</h3>
                    <if include-if="submenu.HistorySubMenuActions != null">
                        @foreach (var action in submenu.HistorySubMenuActions)
                        {
                            foreach (var id in action.HistoryActions)
                            {
                                var data = new Dictionary<string, string>() { { "id", id.StateID.ToString() } };
                                <a asp-action="@id.Action" asp-area="@id.Area" asp-controller="@id.Controller" asp-all-route-data="@data">@action.Name</a>
                            }
                        }
                    </if>
                }
            </if>
        }
    </if>
</div>
