{% extends "staff/staff_layout.html" %}
{% block staff_content %}
<h3>Unchecked Exams</h3>
<br>
<div class="table-responsive">
  <table class="table table-bordered">
    <thead>
      <tr>
        <th scope="col">Exam</th>
        <th scope="col">Subject</th>
        <th scope="col">Student</th>
        <th scope="col">MCQ Marks</th>
        <th scope="col">Attempted on</th>
        <th scope="col"></th>
      </tr>
    </thead>
    <tbody>
      {% for e in exams_given %}
      <tr>
        <td>{{e[14]}}</td>
        <td>
            {% for sub in subjects %}
                {% if sub[0] == e[22] %}
                    {{sub[1]}}
                {% endif %}
            {% endfor %}
        </td>
        <td>{{e[9]}} {{e[10]}}</td>
        <td>{{e[2]|int}}</td>
        <td>{{e[4]}}</td>
        <td>
          <center>
             <a href="{{ url_for('get_student_responses',e_code=e[0], user_id=e[1]) }}" type="button"
                class="btn btn-outline-primary">
                <svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" fill="currentColor"
                    class="bi bi-file-earmark-check" viewBox="0 0 16 16">
                    <path
                        d="M10.854 7.854a.5.5 0 0 0-.708-.708L7.5 9.793 6.354 8.646a.5.5 0 1 0-.708.708l1.5 1.5a.5.5 0 0 0 .708 0l3-3z" />
                    <path
                        d="M14 14V4.5L9.5 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2zM9.5 3A1.5 1.5 0 0 0 11 4.5h2V14a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h5.5v2z" />
                </svg>
            </a>
          </center>
        </td>
      </tr>
      {% endfor %}
    </tbody>
  </table>
</div>
{% endblock %}
