@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)
{
@foreach (var item in group)
{
@item.Title
}
index++;
}