#!/bin/bash

# Verify attendee search functionality on the server

echo "=== Verifying Attendee Search Functionality on Staging Server ==="
echo "Remote host: 146.190.76.204"
echo "Remote user: roodev"
echo "==============================="

# Copy PHP script to server and execute
echo "[1;33mCopying search verification script to server...[0m"
scp /Users/ben/dev/upskill-event-manager/wordpress-dev/bin/verify-attendee-search.php roodev@146.190.76.204:~/public_html/

echo "[1;33mExecuting verification script on server...[0m"
ssh roodev@146.190.76.204 "cd ~/public_html/ && php verify-attendee-search.php"

# Clean up
ssh roodev@146.190.76.204 "rm ~/public_html/verify-attendee-search.php"

echo "[0;32mAttendee search verification completed![0m"