{!! '<'.'?'.'xml version="1.0" encoding="UTF-8" ?>' !!} {!! $channel['title'] !!} {{ $channel['rssLink'] }} @if (!empty($channel['copyright'])) {{ $channel['copyright'] }} @endif @if (!empty($channel['color'])) {{ $channel['color'] }} @endif @if (!empty($channel['cover'])) @endif @if (!empty($channel['icon'])) {{ $channel['icon'] }} @endif @if (!empty($channel['logo'])) {{ $channel['logo'] }} {{ $channel['logo'] }} {{ $channel['title'] }} {{ $channel['rssLink'] }} @endif @if (!empty($channel['related'])) @endif @if (!empty($channel['ga'])) @endif {{ $channel['lang'] }} {{ $channel['pubdate'] }} @foreach($items as $item) <![CDATA[{!! $item['title'] !!}]]> @if (!empty($item['category'])) {{ $item['category'] }} @endif {{ $item['link'] }} {{ $item['link'] }} @if (!empty($item['content'])) @endif {!! $item['author'] !!} {{ $item['pubdate'] }} @if (!empty($item['enclosure'])) $v) {!! $k.'="'.$v.'" ' !!} @endforeach /> @endif @if (!empty($item['media:content'])) $v) {!! $k.'="'.$v.'" ' !!} @endforeach /> @endif @if (!empty($item['media:thumbnail'])) $v) {!! $k.'="'.$v.'" ' !!} @endforeach /> @endif @if (!empty($item['media:title'])) {{ $item['media:title'] }} @endif @if (!empty($item['media:description'])) {{ $item['media:description'] }} @endif @if (!empty($item['media:keywords'])) {{ $item['media:title'] }} @endif @if (!empty($item['media:rating'])) {{ $item['media:rating'] }} @endif @if (!empty($item['creativeCommons:license'])) {{ $item['creativeCommons:license'] }} @endif @endforeach