<div class="ulp-gradebook-wrapp">

    <?php if ($data->grades):?>

      <table class="ulp-table-general ulp-list-orders">

          <thead>

              <tr>

                  <th><?php _e('Course', 'ulp');?></th>

                  <th><?php _e('Quiz Title', 'ulp');?></th>

                  <th><?php _e('Grade', 'ulp');?></th>

                  <th><?php _e('Passed', 'ulp');?></th>

              </tr>

          </thead>

          <?php foreach ($data->grades as $grade_object):?>

              <tr>

                  <td class="ulp-special-column"><a href="<?php echo Ulp_Permalinks::getForCourse($grade_object->course_id);?>" target="_blank"><?php echo $grade_object->course_title;?></a></td>

                  <td><?php echo $grade_object->quiz_title;?></td>

                  <td><?php echo $grade_object->grade;?></td>

                  <td><?php if ($grade_object->course_passed) echo '<span class="ulp-quiz-status-passed">'.__('Passed', 'ulp').'</span>'; else echo ' <span class="ulp-quiz-status-failed">'.__('Failed', 'ulp').'</span>';?></td>

              </tr>

          <?php endforeach;?>

      </table>

    <?php else:?>

      <div class="ulp-additional-message"><?php _e('You have not received any Grades yet!', 'ulp');?></div>

    <?php endif;?>

</div>

