jQuery(document).ready(function($) { // Delete client functionality $(document).on("click", ".delete-client", function(e) { e.preventDefault(); const $button = $(this); const clientId = $button.data("id"); const clientEmail = $button.closest("tr").find("td:nth-child(2) div").text().trim(); // Get email from second column // Always show our custom choice dialog (ignore existing confirmation systems) // Create custom confirmation dialog with choice const choiceDialog = `
Are you sure you want to delete client "${clientEmail}"?
Important: This client may have associated invoices, quotes, and payments.