<?php
require_once 'config.php';
require_once 'includes/Database.php';

$db = new Database();

echo "=== PAKET KRİTERLERİ ===\n\n";
$packages = $db->fetchAll("
    SELECT * FROM criteria 
    WHERE category = 'Paket Kriterleri' AND is_active = 1 
    ORDER BY display_order ASC, name ASC
");

if (empty($packages)) {
    echo "Hiç paket kriteri bulunamadı.\n";
} else {
    foreach ($packages as $p) {
        echo "Kriter Adı: " . $p['name'] . "\n";
        echo "Kriter Kodu: " . $p['code'] . "\n";
        echo "Puan: " . $p['point_value'] . "\n";
        echo "---\n";
    }
}
?>
