{% extends "core/base.html" %}
{% block title %}Delete Promo Code - SwiftPOS{% endblock %}
{% block topbar_title %}Delete Promo Code{% endblock %}

{% block content %}
<div class="container-fluid px-0" style="max-width:480px;">
    <div class="card shadow-sm border-danger">
        <div class="card-header bg-danger text-white">
            <h6 class="mb-0 fw-bold"><i class="fas fa-exclamation-triangle me-2"></i>Delete Promo Code</h6>
        </div>
        <div class="card-body">
            <p>Are you sure you want to permanently delete promo code <strong>{{ promo.code }}</strong>?</p>
            <p class="text-muted small">This cannot be undone. Existing orders that used this code will not be affected.</p>
            <form method="post">
                {% csrf_token %}
                <div class="d-grid gap-2">
                    <button class="btn btn-danger" type="submit">
                        <i class="fas fa-trash me-1"></i>Yes, Delete
                    </button>
                    <a href="{% url 'promo_list' %}" class="btn btn-outline-secondary">Cancel</a>
                </div>
            </form>
        </div>
    </div>
</div>
{% endblock %}
