19 lines
685 B
PHP
19 lines
685 B
PHP
{!! '<?xml version="1.0" encoding="UTF-8"?>' !!}
|
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
|
@foreach($static as $item)
|
|
<url>
|
|
<loc>{{ route($item['route']) }}</loc>
|
|
<changefreq>{{ $item['frequency'] }}</changefreq>
|
|
<priority>{{ $item['priority'] }}</priority>
|
|
</url>
|
|
@endforeach
|
|
@foreach($pages as $page)
|
|
<url>
|
|
<loc>{{ route('cms.show', $page->slug) }}</loc>
|
|
<lastmod>{{ $page->updated_at->toAtomString() }}</lastmod>
|
|
<changefreq>{{ $page->sitemap_change_frequency }}</changefreq>
|
|
<priority>{{ number_format((float) $page->sitemap_priority, 1, '.', '') }}</priority>
|
|
</url>
|
|
@endforeach
|
|
</urlset>
|