{% extends 'base.html' %}

{% block title %}Delete Resource - LMS{% endblock %}

{% block content %}
<div class="container mt-4">
    <div class="row">
        <div class="col-md-8 mx-auto">
            <div class="card shadow-sm border-danger">
                <div class="card-header bg-danger text-white">
                    <h3 class="mb-0"><i class="fas fa-exclamation-triangle"></i> Confirm Delete</h3>
                </div>
                <div class="card-body">
                    <p class="lead">
                        Are you sure you want to delete the resource 
                        <strong>"{{ resource.title }}"</strong>?
                    </p>
                    <p class="text-muted">
                        This action cannot be undone. Once deleted, the resource and its files will be permanently removed.
                    </p>

                    <form method="post">
                        {% csrf_token %}
                        <div class="d-flex justify-content-between">
                            <a href="{% url 'resource_detail' resource.pk %}" class="btn btn-secondary">
                                <i class="fas fa-arrow-left"></i> Cancel
                            </a>
                            <button type="submit" class="btn btn-danger">
                                <i class="fas fa-trash"></i> Yes, Delete
                            </button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}
