<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
        xmlns:news="http://www.google.com/schemas/sitemap-news/0.9">
    @foreach($articles as $article)
    <url>
        <loc>{{ $article['loc'] }}</loc>
        <news:news>
            <news:publication>
                <news:name>{{ $article['publication_name'] }}</news:name>
                <news:language>{{ $article['publication_language'] }}</news:language>
            </news:publication>
            <news:publication_date>{{ $article['publication_date'] }}</news:publication_date>
            <news:title>{{ e($article['title']) }}</news:title>
            @if(!empty($article['keywords']))
            <news:keywords>{{ e($article['keywords']) }}</news:keywords>
            @endif
        </news:news>
    </url>
    @endforeach
</urlset>
