<td class="text-center" id="status-result-{{ candidate.pk}}">
        {% if candidate.exam_status %}
            <button type="button" class="btn btn-{% if candidate.exam_status == 'Passed' %}success{% else %}danger{% endif %} btn-sm"
                data-bs-toggle="modal"
                data-bs-target="#candidateviewModal"
                hx-get="{% url 'update_candidate_status' job.slug candidate.slug 'exam' 'passed' %}"
                hx-target="#candidateviewModalBody"
                title="Pass Exam">
                {{ candidate.exam_status }}
            </button>
        {% else %}
        --
        {% endif %}
</td>

<td id="exam-score-{{ candidate.pk}}" hx-swap-oob="true">
    {{candidate.exam_score|default:"--"}}
</td>