

<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
    <url>
        <loc>
            <a href="{{url('/')}}">{{url('/')}}</a>
        </loc>
        <lastmod>
            {{$home->updated_at->format('Y-m-d H:i')}}
        </lastmod>
    </url>
    @forelse ($pages as $page)
    <url>
        <loc>
            <a href="{{url($page->slug)}}">{{url($page->slug)}}</a>
        </loc>

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