@php echo ''; @endphp {{ route('/') }} 1.0 {{ gmdate('Y-m-d\TH:i:s+00:00') }} daily @if ($posts) @foreach ($posts as $post) @if ($post->category_id) @php $permalink = route('post', [$post->category->slug, $post->id, $post->slug]); @endphp {{ $permalink }} {{ ($post->featured_image != NULL) ? fetch_image($post->main_image->file_name, "sm") : '' }} 1.0 {{ gmdate('Y-m-d\TH:i:s+00:00', strtotime($post->last_updated_at)) }} daily @endif @endforeach @endif