<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
    @foreach ($posts as $post)
        <url>
            <loc>{{ route('post', ['slug' => $post->slug]) }}</loc>
            <lastmod>{{ $post->tanggal_publish }}</lastmod>
        </url>
    @endforeach
</urlset>