<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  @foreach($sitemaps as $slug)
  <sitemap>
    @if(empty($slug))
      <loc>{{ url('sitemap.xml') }}</loc>
    @else
      <loc>{{ url('sitemap_' . $slug . '.xml') }}</loc>
    @endif
  </sitemap>
  @endforeach
</sitemapindex>