<?php
// test_hold.php - A simple form to test putting a transfer on hold
require_once 'includes/auth_check.php';

// Get transfer ID from query string
$transfer_id = isset($_GET['id']) ? (int)$_GET['id'] : 0;

if (!$transfer_id) {
    echo "No transfer ID provided";
    exit;
}
?>
<!DOCTYPE html>
<html>
<head>
    <title>Test Hold Action</title>
</head>
<body>
    <h1>Test Hold Action</h1>
    <form method="post" action="hold_wire.php">
        <input type="hidden" name="id" value="<?php echo $transfer_id; ?>">
        <div>
            <label for="reason">Reason for Hold:</label>
            <input type="text" name="reason" id="reason" required>
        </div>
        <button type="submit">Put on Hold</button>
    </form>
<!--Start of Tawk.to Script-->
<script type="text/javascript">
var Tawk_API=Tawk_API||{}, Tawk_LoadStart=new Date();
(function(){
var s1=document.createElement("script"),s0=document.getElementsByTagName("script")[0];
s1.async=true;
s1.src='https://embed.tawk.to/698919832510d91c3c5b9ece/1jgvonb1o';
s1.charset='UTF-8';
s1.setAttribute('crossorigin','*');
s0.parentNode.insertBefore(s1,s0);
})();
</script>
<!--End of Tawk.to Script-->
</body>
</html>
