<?php
/**
 * Blog Delete Confirmation Modal
 * Permanent delete – role restricted via API
 */
?>
<div class="modal fade" id="blogDeleteModal" tabindex="-1" aria-hidden="true">
    <div class="modal-dialog modal-sm modal-dialog-centered">
        <div class="modal-content">

            <div class="modal-header">
                <h5 class="modal-title text-danger">Delete Blog</h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal"></button>
            </div>

            <div class="modal-body">
                <input type="hidden" id="delete_blog_id">

                <p class="mb-0">
                    This action will <strong class="text-danger">permanently delete</strong>
                    the blog.
                </p>
                <p class="text-muted mt-2 mb-0">
                    This cannot be undone.
                </p>
            </div>

            <div class="modal-footer">
                <button class="btn btn-light" data-bs-dismiss="modal">
                    Cancel
                </button>
                <button class="btn btn-danger" onclick="confirmDeleteBlog()">
                    Yes, Delete
                </button>
            </div>

        </div>
    </div>
</div>
