Use @each for each calendar event instead of a @foreach loop.