You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xshop/resources/views/website/rss/product.blade.php

20 lines
757 B
PHTML

<rss version="2.0">
<channel>
<title>{{config('app.name')}}</title>
<link>{{ url('/') }}</link>
<description>{{getSetting('description')}}</description>
<language>{{config('app.locale')}}</language>
<pubDate>{{ \Carbon\Carbon::now()->toRssString() }}</pubDate>
@foreach($products as $product)
<item>
<title><![CDATA[{{ $product->name }}]]></title>
<link>{{ $product->webUrl() }}</link>
<description><![CDATA[{{ $product->excerpt }}]]></description>
<pubDate>{{ $product->created_at->toRssString() }}</pubDate>
<guid>{{ $product->webUrl() }}</guid>
</item>
@endforeach
</channel>
</rss>