@foreach($meta as $key => $metaItem) @if($key === 'link') <{{ $key }} href="{{ url($metaItem) }}" rel="self"> @elseif($key === 'title') <{{ $key }}>{!! \Spatie\Feed\Helpers\Cdata::out($metaItem) !!} @elseif($key === 'description') {{ $metaItem }} @elseif($key === 'language') @elseif($key === 'image') @if(!empty($metaItem)) {!! $metaItem !!} @else @endif @else <{{ $key }}>{{ $metaItem }} @endif @endforeach @foreach($items as $item) {!! \Spatie\Feed\Helpers\Cdata::out($item->title) !!} {{ url($item->id) }} {!! \Spatie\Feed\Helpers\Cdata::out($item->authorName) !!} @if(!empty($item->authorEmail)) {!! \Spatie\Feed\Helpers\Cdata::out($item->authorEmail) !!} @endif {!! \Spatie\Feed\Helpers\Cdata::out($item->summary) !!} @if($item->__isset('enclosure')) @endif @foreach($item->category as $category) @endforeach {{ $item->timestamp() }} @endforeach