{!! '<'.'?xml version="1.0" encoding="UTF-8"?'.'>' !!}
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
@foreach($pages as $page)
    <url>
        <loc>{{ url($page->url_path) }}</loc>
        <lastmod>{{ $page->updated_at ? $page->updated_at->toAtomString() : date('Y-m-d\TH:i:sP') }}</lastmod>
        <changefreq>{{ $page->sitemap_changefreq ?? 'weekly' }}</changefreq>
        <priority>{{ number_format($page->sitemap_priority, 1) }}</priority>
    </url>
@endforeach
</urlset>
