<?=
'<?xml version="1.0" encoding="UTF-8"?>'.PHP_EOL
?>
<rss version="2.0">
    <channel>
        <title><![CDATA[ RSS WEB PROFILE ]]></title>
        <link><![CDATA[ https://localhost/feed ]]></link>
        <description><![CDATA[ BERITA UNESA ]]></description>
        <language>en</language>
        <pubDate>{{ now() }}</pubDate>
        @foreach($posts as $post)
            <item>
                <title><![CDATA[{{ $post->title }}]]></title>
                <link>{{ $post->slug }}</link>
                <description><![CDATA[{!! $post->body !!}]]></description>
                <category>{{ $post->category }}</category>
               {{-- <author><![CDATA[{{ $post->slug  }}]]></author>--}}
                <guid>{{ $post->id }}</guid>
                <pubDate>{{ $post->created_at->toRssString() }}</pubDate>
            </item>
        @endforeach
    </channel>
</rss>