pos-gis/resources/views/feed.blade.php

26 lines
1.1 KiB
PHP
Raw Normal View History

2024-10-07 06:13:42 +00:00
<?=
'<?xml version="1.0" encoding="UTF-8"?>'.PHP_EOL
?>
<rss version="2.0">
<channel>
<title><![CDATA[ NTT Prov - Situs Resmi Provinsi Nusa Tenggara Timur ]]></title>
<link><![CDATA[ {{ url('/') }} ]]></link>
<description><![CDATA[ Situs Resmi Provinsi Nusa Tenggara Timur ]]></description>
<language>id</language>
<pubDate>{{ now() }}</pubDate>
@foreach($list_berita as $post)
<item>
<title><![CDATA[{{ $post->title }}]]></title>
<link>{{ url('/').'/client/view/berita?id='.$post->id }}</link>
<description><![CDATA[{!! $post->desc !!}]]></description>
<type>{{ $post->doctype_desc }}</type>
<category>{{ $post->categoryid_desc }}</category>
<templatetype>{{ $post->templatetype_desc }}</templatetype>
<author><![CDATA[{{ $post->full_name }}]]></author>
<guid>{{ $post->id }}</guid>
<createDate>{{ date('Y-m-d H:i:s',strtotime($post->created_at)) }}</createDate>
</item>
@endforeach
</channel>
</rss>