{% extends "base.html" %}

{% block title %}Silmeyi Onayla - FaturaYol{% endblock %}
{% block page_title %}{{ type }} Silme İşlemi{% endblock %}

{% block content %}
<div class="row justify-content-center">
    <div class="col-md-6">
        <div class="card border-0 shadow-sm">
            <div class="card-body p-5 text-center">
                <div class="bg-danger bg-opacity-10 text-danger mx-auto mb-4 rounded-circle d-flex align-items-center justify-content-center" style="width: 80px; height: 80px;">
                    <i class="bi bi-exclamation-triangle-fill fs-1"></i>
                </div>
                <h4 class="fw-bold mb-3">Emin misiniz?</h4>
                <p class="text-muted mb-4">
                    <strong>{{ object }}</strong> isimli {{ type|lower }} kaydını silmek üzeresiniz. 
                    Bu işlem geri alınamaz ve bu kayda bağlı tüm veriler silinecektir.
                </p>
                <form method="post">
                    {% csrf_token %}
                    <div class="d-grid gap-2">
                        <button type="submit" class="btn btn-danger rounded-pill py-2 fw-bold">Evet, Sil</button>
                        <a href="{{ request.META.HTTP_REFERER|default:'/' }}" class="btn btn-light rounded-pill py-2">İptal</a>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{% endblock %}
