<?=
'<?xml version="1.0" encoding="UTF-8"?>'.PHP_EOL
?>
<rss version="2.0">
    <channel>
        <title><![CDATA[ RSS WEB PROFILE ]]></title>
        <link><![CDATA[ {{ url('') }}]]></link>
        <description><![CDATA[ BERITA UNESA ]]></description>
        <language>en</language>
        <pubDate>{{ now() }}</pubDate>
        @foreach($posts as $post)
            <image>
                <url>{{ $setting['url_static'] . '/' . $setting['directory'] . '/thumbnail/' . $post->thumbnail }}</url>                
            </image>
            <item>
                <title>{{ $post->title }}</title>
                <link>{{ url('post/'.$post['slug'])}}</link>
                <description><![CDATA[{!! $post->content !!}]]></description>
                <category>{{ $post->rCategory->name  }}</category>
               {{-- <author><![CDATA[{{ $post->slug  }}]]></author>--}}
              {{--  <guid>{{ $post->id }}</guid>--}}
                <pubDate>{{ $post->created_at->toRssString() }}</pubDate>
            </item>
        @endforeach
    </channel>
</rss>