{!! '<' . '?' . 'xml version="1.0" encoding="UTF-8"?>' . "\n" !!} @if (null != $style) {!! '<' . '?' . 'xml-stylesheet href="' . asset($style) . '" type="text/xsl"?>' . "\n" !!} @endif @foreach ($items as $item) {{ $item['loc'] }} @if ($item['lastmod'] !== null) {{ date('Y-m-d\TH:i:sP', strtotime($item['lastmod'])) }} @endif @if (!empty($item['alternates'])) @foreach ($item['alternates'] as $alternate) @endforeach @endif {{ $item['googlenews']['sitename'] }} {{ $item['googlenews']['language'] }} {{ date('Y-m-d\TH:i:sP', strtotime($item['googlenews']['publication_date'])) }} {{ $item['title'] }} @if (isset($item['googlenews']['access'])) {{ $item['googlenews']['access'] }} @endif @if (isset($item['googlenews']['keywords'])) {{ implode(',', $item['googlenews']['keywords']) }} @endif @if (isset($item['googlenews']['genres'])) {{ implode(',', $item['googlenews']['genres']) }}; @endif @if (isset($item['googlenews']['stock_tickers'])) {{ implode(',', $item['googlenews']['stock_tickers']) }} @endif @endforeach