{% extends 'base.html' %}
{% block title %}Delete Job - RepairsHub{% endblock %}
{% block content %}
<div class="container py-5">
    <div class="row justify-content-center">
        <div class="col-md-6">
            <div class="card border-0 shadow-sm border-top border-4 border-danger">
                <div class="card-body p-5 text-center">
                    <div class="display-4 text-danger mb-4">
                        <i class="bi bi-exclamation-octagon"></i>
                    </div>
                    <h2 class="h4 mb-3">Delete Repair Job?</h2>
                    <p class="text-muted mb-4">You are about to delete job <strong>{{ job.job_ref }}</strong>. This will permanently remove the record and all associated data for {{ job.address_line_1 }}.</p>
                    
                    <form method="post">
                        {% csrf_token %}
                        <div class="d-grid gap-2">
                            <button type="submit" class="btn btn-danger py-2">Yes, Permanent Delete</button>
                            <a href="{% url 'job_detail' job.pk %}" class="btn btn-outline-secondary py-2">Keep Job</a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}
