view foreach