

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
    @forelse ($posts as $post)
    <url>
        <loc>
            <a href="{{url($post->page->slug.'/'.$post->slug)}}">{{url($post->page->slug.'/'.$post->slug)}}</a>
        </loc>

        <lastmod>{{$post->updated_at->format('Y-m-d H:i')}}</lastmod>
    </url>
    @empty
        
    @endforelse
</urlset>