<?php require_once dirname(__DIR__, 2) . '/dripend/config/config.php'; ?>
<!DOCTYPE html><html lang="en"><head><title>Delete PO | RiMax</title><link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css" rel="stylesheet"><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css"><style>body{background:#f8fafc;} .main-content{margin-left:300px;padding:20px;}</style></head>
<body>
    <?php include(dirname(__DIR__, 2) . '/dripend/statpages/sidebar.php'); ?>
    <div class="main-content"><div class="container-fluid py-5"><div class="row justify-content-center"><div class="col-md-6">
        <div id="delMsg"></div>
        <div class="card border-danger shadow text-center">
            <div class="card-header bg-danger text-white fw-bold py-3"><i class="fa-solid fa-triangle-exclamation"></i> Critical Action Warning</div>
            <div class="card-body py-5">
                <i class="fa-solid fa-trash-can text-danger mb-3" style="font-size: 3rem;"></i><h4 class="fw-bold">Permanent Deletion</h4>
                <p class="text-muted">You are about to permanently delete Purchase Order: <br> <strong id="del_po_no" class="text-dark fs-4 font-monospace">Loading...</strong></p>
                <form id="poDeleteForm"><input type="hidden" name="action" value="delete"><input type="hidden" name="id" id="del_po_id">
                    <div class="d-flex justify-content-center gap-3 mt-4"><a href="listPurchaseOrder.php" class="btn btn-secondary px-4 fw-bold shadow-sm">Cancel</a><button type="submit" id="btnConfirmDelete" class="btn btn-danger px-4 fw-bold shadow-sm">Yes, Delete Record</button></div>
                </form>
            </div>
        </div>
    </div></div></div></div>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script><script src="<?php echo BASE_URL; ?>application/assets/js/purchaseOrder.js?v=<?= time(); ?>"></script>
</body></html>