<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"
        xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">

    <!-- Homepage -->
    <url>
        <loc>https://boostpad.io/</loc>
        <lastmod><?php echo date('Y-m-d'); ?></lastmod>
        <changefreq>daily</changefreq>
        <priority>1.0</priority>
    </url>

    <!-- Main Pages -->
    <url>
        <loc>https://boostpad.io/projects</loc>
        <lastmod><?php echo date('Y-m-d'); ?></lastmod>
        <changefreq>daily</changefreq>
        <priority>0.9</priority>
    </url>

    <url>
        <loc>https://boostpad.io/promoters</loc>
        <lastmod><?php echo date('Y-m-d'); ?></lastmod>
        <changefreq>daily</changefreq>
        <priority>0.9</priority>
    </url>

    <url>
        <loc>https://boostpad.io/login</loc>
        <lastmod><?php echo date('Y-m-d'); ?></lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.7</priority>
    </url>

    <url>
        <loc>https://boostpad.io/register</loc>
        <lastmod><?php echo date('Y-m-d'); ?></lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.8</priority>
    </url>

    <!-- Static Pages -->
    <url>
        <loc>https://boostpad.io/terms</loc>
        <lastmod>2024-01-01</lastmod>
        <changefreq>yearly</changefreq>
        <priority>0.3</priority>
    </url>

    <url>
        <loc>https://boostpad.io/privacy</loc>
        <lastmod>2024-01-01</lastmod>
        <changefreq>yearly</changefreq>
        <priority>0.3</priority>
    </url>

    <url>
        <loc>https://boostpad.io/docs</loc>
        <lastmod>2024-01-01</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.4</priority>
    </url>

    <url>
        <loc>https://boostpad.io/help</loc>
        <lastmod>2024-01-01</lastmod>
        <changefreq>monthly</changefreq>
        <priority>0.4</priority>
    </url>

    <url>
        <loc>https://boostpad.io/blog</loc>
        <lastmod><?php echo date('Y-m-d'); ?></lastmod>
        <changefreq>weekly</changefreq>
        <priority>0.6</priority>
    </url>

    <!-- Dynamic URLs will be added by PHP script -->
    <?php
    // This would be populated by a PHP script that queries the database
    // for active projects and promoters
    /*
    $projects = getActiveProjects();
    foreach ($projects as $project) {
        echo "<url>\n";
        echo "    <loc>https://boostpad.io/project/" . htmlspecialchars($project['slug']) . "</loc>\n";
        echo "    <lastmod>" . date('Y-m-d', strtotime($project['updated_at'])) . "</lastmod>\n";
        echo "    <changefreq>weekly</changefreq>\n";
        echo "    <priority>0.8</priority>\n";
        echo "</url>\n";
    }

    $promoters = getActivePromoters();
    foreach ($promoters as $promoter) {
        echo "<url>\n";
        echo "    <loc>https://boostpad.io/promoter/" . htmlspecialchars($promoter['slug']) . "</loc>\n";
        echo "    <lastmod>" . date('Y-m-d', strtotime($promoter['updated_at'])) . "</lastmod>\n";
        echo "    <changefreq>weekly</changefreq>\n";
        echo "    <priority>0.7</priority>\n";
        echo "</url>\n";
    }
    */
    ?>

</urlset>
