<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"@if($hasImages) xmlns:image="http://www.google.com/schemas/sitemap-image/1.1"@endif>
@foreach ($items as $item)
    <url>
        <loc>{{ e($item->loc) }}</loc>
@if ($item->lastModified)
        <lastmod>{{ $item->lastModified->format(DATE_ATOM) }}</lastmod>
@endif
@foreach ($item->images as $image)
        <image:image>
            <image:loc>{{ e($image->loc) }}</image:loc>
@if ($image->title)
            <image:title>{{ e($image->title) }}</image:title>
@endif
        </image:image>
@endforeach
    </url>
@endforeach
</urlset>