@if (currentStatus) {
} @for ( status of statuses?.possibleStatuses; track $index; let index = $index ) { @let itemWithBottomBorder = index === 0 || (index === statuses?.possibleStatuses?.length! - 1 && statuses?.previousStatus?.statusString);
} @if (statuses?.previousStatus?.statusString) {

Or back to

}