@if(\App\Models\Product::count() > 0)
{{route('client.products')}}
{{\App\Models\Product::orderByDesc('updated_at')->first()->updated_at->tz('UTC')->toAtomString()}}
daily
1
@endif
@if(\App\Models\Post::count() > 0)
{{route('client.posts')}}
{{\App\Models\Post::orderByDesc('updated_at')->first()->updated_at->tz('UTC')->toAtomString()}}
weekly
1
@endif
@if(\App\Models\Gallery::count() > 0)
{{route('client.galleries')}}
{{\App\Models\Gallery::orderByDesc('updated_at')->first()->updated_at->tz('UTC')->toAtomString()}}
weekly
2
@endif
@if(\App\Models\Attachment::count() > 0)
{{route('client.attachments')}}
{{\App\Models\Attachment::orderByDesc('updated_at')->first()->updated_at->tz('UTC')->toAtomString()}}
weekly
2
@endif
@if(\App\Models\Clip::count() > 0)
{{route('client.clips')}}
{{\App\Models\Clip::orderByDesc('updated_at')->first()->updated_at->tz('UTC')->toAtomString()}}
weekly
2
@endif
@foreach(\App\Models\Product::where('status',1)->orderBy('id')->get(['slug','updated_at']) as $item)
{{route('client.product',$item->slug)}}
{{$item->updated_at->tz('UTC')->toAtomString()}}
weekly
3
@endforeach
@foreach(\App\Models\Post::where('status',1)->orderBy('id')->get(['slug','updated_at']) as $item)
{{route('client.post',$item->slug)}}
{{$item->updated_at->tz('UTC')->toAtomString()}}
weekly
3
@endforeach
@foreach(\App\Models\Clip::where('status',1)->orderBy('id')->get(['slug','updated_at']) as $item)
{{route('client.clip',$item->slug)}}
{{$item->updated_at->tz('UTC')->toAtomString()}}
weekly
3
@endforeach
@foreach(\App\Models\Gallery::where('status',1)->orderBy('id')->get(['slug','updated_at']) as $item)
{{route('client.gallery',$item->slug)}}
{{$item->updated_at->tz('UTC')->toAtomString()}}
weekly
3
@endforeach
@foreach(\App\Models\Attachment::where('is_fillable',1)->orderBy('id')->get(['slug','updated_at']) as $item)
{{route('client.attachment',$item->slug)}}
{{$item->updated_at->tz('UTC')->toAtomString()}}
weekly
3
@endforeach
@if(config('app.xlang.active'))
@foreach(\App\Models\XLang::where('is_default',0)->pluck('tag')->toArray() as $lang)
{{-- WIP multi lang --}}
{{-- @if(\App\Models\Product::count() > 0)--}}
{{-- --}}
{{-- {{route('client.products')}}--}}
{{-- {{\App\Models\Product::orderByDesc('updated_at')->first()->updated_at->tz('UTC')->toAtomString()}}--}}
{{-- daily--}}
{{-- 1--}}
{{-- --}}
{{-- @endif--}}
{{-- @if(\App\Models\Post::count() > 0)--}}
{{-- --}}
{{-- {{route('client.posts')}}--}}
{{-- {{\App\Models\Post::orderByDesc('updated_at')->first()->updated_at->tz('UTC')->toAtomString()}}--}}
{{-- weekly--}}
{{-- 1--}}
{{-- --}}
{{-- @endif--}}
{{-- @if(\App\Models\Gallery::count() > 0)--}}
{{-- --}}
{{-- {{route('client.galleries')}}--}}
{{-- {{\App\Models\Gallery::orderByDesc('updated_at')->first()->updated_at->tz('UTC')->toAtomString()}}--}}
{{-- weekly--}}
{{-- 2--}}
{{-- --}}
{{-- @endif--}}
{{-- @if(\App\Models\Attachment::count() > 0)--}}
{{-- --}}
{{-- {{route('client.attachments')}}--}}
{{-- {{\App\Models\Attachment::orderByDesc('updated_at')->first()->updated_at->tz('UTC')->toAtomString()}}--}}
{{-- weekly--}}
{{-- 2--}}
{{-- --}}
{{-- @endif--}}
{{-- @if(\App\Models\Clip::count() > 0)--}}
{{-- --}}
{{-- {{route('client.clips')}}--}}
{{-- {{\App\Models\Clip::orderByDesc('updated_at')->first()->updated_at->tz('UTC')->toAtomString()}}--}}
{{-- weekly--}}
{{-- 2--}}
{{-- --}}
{{-- @endif--}}
{{-- @foreach(\App\Models\Product::where('status',1)->orderBy('id')->get(['slug','updated_at']) as $item)--}}
{{-- --}}
{{-- {{route('client.product',$item->slug)}}--}}
{{-- {{$item->updated_at->tz('UTC')->toAtomString()}}--}}
{{-- weekly--}}
{{-- 3--}}
{{-- --}}
{{-- @endforeach--}}
{{-- @foreach(\App\Models\Post::where('status',1)->orderBy('id')->get(['slug','updated_at']) as $item)--}}
{{-- --}}
{{-- {{route('client.post',$item->slug)}}--}}
{{-- {{$item->updated_at->tz('UTC')->toAtomString()}}--}}
{{-- weekly--}}
{{-- 3--}}
{{-- --}}
{{-- @endforeach--}}
{{-- @foreach(\App\Models\Clip::where('status',1)->orderBy('id')->get(['slug','updated_at']) as $item)--}}
{{-- --}}
{{-- {{route('client.clip',$item->slug)}}--}}
{{-- {{$item->updated_at->tz('UTC')->toAtomString()}}--}}
{{-- weekly--}}
{{-- 3--}}
{{-- --}}
{{-- @endforeach--}}
{{-- @foreach(\App\Models\Gallery::where('status',1)->orderBy('id')->get(['slug','updated_at']) as $item)--}}
{{-- --}}
{{-- {{route('client.gallery',$item->slug)}}--}}
{{-- {{$item->updated_at->tz('UTC')->toAtomString()}}--}}
{{-- weekly--}}
{{-- 3--}}
{{-- --}}
{{-- @endforeach--}}
{{-- @foreach(\App\Models\Attachment::where('is_fillable',1)->orderBy('id')->get(['slug','updated_at']) as $item)--}}
{{-- --}}
{{-- {{route('client.attachment',$item->slug)}}--}}
{{-- {{$item->updated_at->tz('UTC')->toAtomString()}}--}}
{{-- weekly--}}
{{-- 3--}}
{{-- --}}
{{-- @endforeach--}}
@endforeach
@endif