@if (widgets; as widgets) {
@for (widget of widgets; track widget.item.code) {
}
}