<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>{{ config('ayarlar.baslik') }}</title>
        <link>{{ url('/') }}</link>
        <description>
            {{ config('ayarlar.seodesc') }}
        </description>
        <language>tr</language>
        <lastBuildDate>{{ date('c') }}</lastBuildDate>
        @forelse($haberler as $key => $haber)
            <item>
                <title><![CDATA[{{ $haber->baslik }}]]></title>
                <link>{{ url('haber/'.$haber->slug.'-'.$haber->id) }}</link>
                <guid>{{ $haber->guid }}</guid>
                <pubDate>{{ date('c', strtotime($haber->tarih)) }}</pubDate>
                <author>{{ $haber->habereditoru->name }}</author>
                <description><![CDATA[{{ $haber->spot }}]]></description>
                <content:encoded>
                    <![CDATA[
                    @include('frontend.tema9.blocks._rss')
                    ]]>
                </content:encoded>
            </item>
        @empty
            <item>Başka içerik bulunamadı.</item>
        @endforelse
    </channel>
</rss>
