{% extends 'base.html' %}
{% block title %}Delete Fee Structure{% endblock %}
{% block content %}
<div class="container-fluid">
    <div class="row justify-content-center mt-5">
        <div class="col-md-5">
            <div class="card shadow border-danger">
                <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="rounded-circle bg-danger bg-opacity-10 d-inline-flex align-items-center justify-content-center mb-4" style="width:80px;height:80px;">
                        <i class="fas fa-money-check fa-2x text-danger"></i>
                    </div>
                    <h4>Delete <strong>{{ fee.name }}</strong>?</h4>
                    <p class="text-muted">Amount: {{ fee.amount|floatformat:0 }} XAF &bull; {{ fee.get_fee_type_display }}</p>
                    <div class="alert alert-warning text-start"><i class="fas fa-exclamation-circle me-2"></i><strong>This cannot be undone.</strong> Any invoices already generated from this fee will remain.</div>
                    <div class="d-flex justify-content-center gap-3 mt-4">
                        <a href="{% url 'finance:fee_detail' fee.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>Delete</button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}
