@if(\App\Models\Gallery::count() > 0) {{route('client.galleries')}} {{\App\Models\Gallery::orderByDesc('updated_at')->first()->updated_at->tz('UTC')->toAtomString()}} weekly 2 @endif @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 @if(config('app.xlang.active')) @foreach(\App\Models\XLang::where('is_default',0)->pluck('tag')->toArray() as $lang) @php(app()->setLocale($lang)) @if(\App\Models\Gallery::count() > 0) {{route('client.galleries')}}/{{$lang}} {{\App\Models\Gallery::orderByDesc('updated_at')->first()->updated_at->tz('UTC')->toAtomString()}} weekly 2 @endif @foreach(\App\Models\Gallery::where('status',1)->whereLocale('title',$lang)->orderBy('id')->get(['slug','updated_at','title']) as $item) {{$item->webUrl()}} {{$item->updated_at->tz('UTC')->toAtomString()}} weekly 3 @endforeach @endforeach @endif