<?php
require 'config/database.php';

$db = Database::getInstance();

echo "<h2>Recent Payment Orders</h2>";
$orders = $db->fetchAll('SELECT * FROM payment_orders ORDER BY created_at DESC LIMIT 5');
echo "<pre>";
print_r($orders);
echo "</pre>";

echo "<h2>Payment Details (Admin Settings)</h2>";
$details = $db->fetch('SELECT * FROM payment_details');
echo "<pre>";
print_r($details);
echo "</pre>";

echo "<h2>Admin User (ID: 1)</h2>";
$admin = $db->fetch('SELECT * FROM users WHERE id = 1');
echo "<pre>";
print_r($admin);
echo "</pre>";
?>
