<?php echo '<?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">
    <?php foreach($hotels as $params ): ?>
    <url>
        <loc><?php echo URL('maldives/resort'); ?>/<?php echo $params->seo_slug; ?></loc>
        <lastmod><?php echo $params->created_at; ?></lastmod>
        <changefreq>1</changefreq>
        <priority>1</priority>
    </url>
    <?php endforeach; ?>
    <?php foreach($offers as $params ): ?>
    <url>
        <loc><?php echo $params->seo_slug; ?></loc>
        <lastmod><?php echo $params->created_at; ?></lastmod>
        <changefreq>1</changefreq>
        <priority>1</priority>
    </url>
    <?php endforeach; ?>
</urlset>