{!! '<' . '?' . '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 (!empty($item['translations'])) @foreach ($item['translations'] as $translation) @endforeach @endif @if (!empty($item['alternates'])) @foreach ($item['alternates'] as $alternate) @endforeach @endif @if ($item['priority'] !== null) {{ $item['priority'] }} @endif @if ($item['lastmod'] !== null) {{ date('Y-m-d\TH:i:sP', strtotime($item['lastmod'])) }} @endif @if ($item['freq'] !== null) {{ $item['freq'] }} @endif @if (!empty($item['images'])) @foreach ($item['images'] as $image) {{ $image['url'] }} @if (isset($image['title'])) {{ $image['title'] }} @endif @if (isset($image['caption'])) {{ $image['caption'] }} @endif @if (isset($image['geo_location'])) {{ $image['geo_location'] }} @endif @if (isset($image['license'])) {{ $image['license'] }} @endif @endforeach @endif @if (!empty($item['videos'])) @foreach ($item['videos'] as $video) @if (isset($video['thumbnail_loc'])) {{ $video['thumbnail_loc'] }} @endif @if (isset($video['title'])) @endif @if (isset($video['description'])) @endif @if (isset($video['content_loc'])) {{ $video['content_loc'] }} @endif @if (isset($video['duration'])) {{ $video['duration'] }} @endif @if (isset($video['expiration_date'])) {{ $video['expiration_date'] }} @endif @if (isset($video['rating'])) {{ $video['rating'] }} @endif @if (isset($video['view_count'])) {{ $video['view_count'] }} @endif @if (isset($video['publication_date'])) {{ $video['publication_date'] }} @endif @if (isset($video['family_friendly'])) {{ $video['family_friendly'] }} @endif @if (isset($video['requires_subscription'])) {{ $video['requires_subscription'] }} @endif @if (isset($video['live'])) {{ $video['live'] }} @endif @if (isset($video['player_loc'])) {{ $video['player_loc']['player_loc'] }} @endif @if (isset($video['restriction'])) {{ $video['restriction']['restriction'] }} @endif @if (isset($video['gallery_loc'])) {{ $video['gallery_loc']['gallery_loc'] }} @endif @if (isset($video['price'])) {{ $video['price']['price'] }} @endif @if (isset($video['uploader'])) {{ $video['uploader']['uploader'] }} @endif @endforeach @endif @endforeach