@model WebfrontCore.ViewModels.SideContextMenuItems @{ Layout = null; }
@Model.MenuTitle
@{ var groupedItems = Model.Items.Where(item => item.IsCollapse) .GroupBy(item => item.Meta) .ToList(); var index = 0; } @foreach (var item in Model.Items.Where(item => !item.IsCollapse)) {
@item.Title
} @foreach (var group in groupedItems) {
@ViewBag.Localization[$"GAME_{group.Key}"]
@foreach (var item in group) {
@item.Title
}
index++; }