<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
    @foreach ($data as $d)
        <url>
            <loc>{{ $d->url }}</loc>
            <lastmod>{{ $d->last_modified->tz('UTC')->toAtomString() }}</lastmod>
            <priority>{{ @$d->priority?:"0.8" }}</priority>
        </url>
    @endforeach
</urlset>