<!-- templates/students/student_confirm_delete.html -->
{% extends 'base.html' %}
{% load static %}

{% block title %}Delete Student - Rapha-Bethel BNPS{% endblock %}

{% block content %}
<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-6">
            <div class="card shadow">
                <div class="card-header bg-danger text-white">
                    <h4 class="mb-0"><i class="fas fa-exclamation-triangle"></i> Confirm Delete</h4>
                </div>
                <div class="card-body text-center py-5">
                    <i class="fas fa-user-graduate fa-4x text-danger mb-3"></i>
                    <h5 class="mb-3">Are you sure you want to delete?</h5>
                    <p class="lead mb-4">
                        <strong>{{ student.first_name }} {{ student.last_name }}</strong><br>
                        <span class="text-muted">ID: {{ student.student_id }}</span>
                    </p>
                    <p class="text-danger mb-4">
                        <i class="fas fa-info-circle"></i> 
                        This action cannot be undone. All associated records will also be deleted.
                    </p>
                    
                    <form method="post">
                        {% csrf_token %}
                        <div class="d-flex justify-content-center gap-3">
                            <button type="submit" class="btn btn-danger btn-lg px-5">
                                <i class="fas fa-trash"></i> Yes, Delete
                            </button>
                            <a href="{% url 'students:student_detail' student.pk %}" class="btn btn-secondary btn-lg px-5">
                                <i class="fas fa-times"></i> Cancel
                            </a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}