{{-- Static pages --}} @foreach($staticPages as $page) {{ 'https://cryptopresalenews.com' . $page['loc'] }} {{ now()->toDateString() }} {{ $page['changefreq'] }} {{ $page['priority'] }} @endforeach {{-- Dynamic news/articles --}} @foreach($news as $item) @if(!empty($item->alias)) {{ 'https://cryptopresalenews.com/' . ltrim($item->alias, '/') }} {{ $item->updated_at ? $item->updated_at->toDateString() : now()->toDateString() }} Weekly 0.8 @endif @endforeach @foreach($items as $item) @if(!empty($item->slug)) @php $routeNames = [ 0 => 'crypto-ico', 1 => 'crypto-ido', 2 => 'crypto-ieo', 3 => 'crypto-presale', ]; @endphp {{ CommonHelper::makeUrl($routeNames[$item->ico_ido_type] . '/' . $item->slug) }} {{ $item->updated_at ? $item->updated_at->toDateString() : now()->toDateString() }} Daily 0.9 @endif @endforeach