<?php if ($reservations != null) { ?> <?php foreach ($reservations as $reservation) { ?> <li id="reservation_<?php echo $reservation->id; ?> " class="course<?php echo $reservation->language + 1; ?> "> <div class="clearfix"> <h4><?php echo Model_Lessontime::getCourse($reservation->language); ?> <span>Lesson <?php echo $reservation->number; ?> </span></h4> <p class="date"><?php echo date("M d, Y. H:i:s", $reservation->freetime_at); ?> </p> </div> <p class="teacher">Tutor : <?php if ($reservation->teacher != null) { echo Html::anchor("students/teachers/detail/{$reservation->teacher_id}", $reservation->teacher->firstname); } ?>