{% extends 'base.html' %}
{% load static %}

{% block title %}Delete Staff - {{ staff.user.get_full_name }}{% endblock %}

{% block content %}
<div class="container-fluid">
    <div class="row justify-content-center">
        <div class="col-md-6">
            <div class="card shadow border-danger mt-5">
                <div class="card-header bg-danger text-white">
                    <h5 class="mb-0"><i class="fas fa-exclamation-triangle me-2"></i>Confirm Delete</h5>
                </div>
                <div class="card-body text-center py-4">
                    <div class="mb-4">
                        <div class="rounded-circle bg-danger bg-opacity-10 d-inline-flex align-items-center justify-content-center" style="width:80px;height:80px;">
                            <i class="fas fa-user-times fa-2x text-danger"></i>
                        </div>
                    </div>
                    <h4>Delete <strong>{{ staff.user.get_full_name }}</strong>?</h4>
                    <p class="text-muted">Employee ID: {{ staff.employee_id }} &bull; Role: {{ staff.get_role_display }}</p>
                    <div class="alert alert-warning text-start">
                        <i class="fas fa-exclamation-circle me-2"></i>
                        <strong>This action cannot be undone.</strong> This will permanently delete the staff member and their associated user account.
                    </div>
                    <div class="d-flex justify-content-center gap-3 mt-4">
                        <a href="{% url 'staff:staff_detail' staff.pk %}" class="btn btn-secondary btn-lg">
                            <i class="fas fa-arrow-left me-2"></i>Cancel
                        </a>
                        <form method="post">
                            {% csrf_token %}
                            <button type="submit" class="btn btn-danger btn-lg">
                                <i class="fas fa-trash me-2"></i>Yes, Delete
                            </button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}
