@if (groups().length > 1) { }
@for (group of groups(); track group.name; let i = $index) {
@if (groups().length > 1) { } @if (group.expanded()) { @if (group.isRandom) {
@for (item of group.layouts; track item.layout.id; let index = $index) {
}
} @else {
@for (item of group.layouts; track item.layout.id) {
}
} }
}