<?php
// Original content of setup_admin_payments.php (archived)
// Saved to archived_test_files/setup_admin_payments.original.txt
require_once 'config/DB.php';

try {
    $db = DB::getConnection();
    
    echo "<h1>🔧 Setting up Admin Payment Management System</h1>";
    
    // Create admin_action_logs table
    echo "<h2>1. Creating Admin Action Logs Table</h2>";
    $sql = "CREATE TABLE IF NOT EXISTS admin_action_logs (
        id INT AUTO_INCREMENT PRIMARY KEY,
        admin_id INT NOT NULL,
        action VARCHAR(100) NOT NULL,
        details JSON NULL,
        ip_address VARCHAR(45) NULL,
        user_agent TEXT NULL
    ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4";
    
    $db->exec($sql);
    echo "<p>✓ admin_action_logs table created/verified</p>";
    
    // ...rest of original file archived...

} catch (Exception $e) {
    echo "<div style='background: #f8d7da; padding: 20px; margin: 20px 0; border-radius: 5px; border-left: 4px solid #dc3545;'>";
    echo "<h3 style='color: #721c24;'>❌ Setup Error</h3>";
    echo "<p style='color: #721c24;'>" . $e->getMessage() . "</p>";
    echo "</div>";
}

(original content saved automatically)