diff --git a/resources/views/sitemap/cats.blade.php b/resources/views/sitemap/cats.blade.php
index c26a138..4af31f1 100755
--- a/resources/views/sitemap/cats.blade.php
+++ b/resources/views/sitemap/cats.blade.php
@@ -9,4 +9,15 @@
0.8
@endforeach
+
+ @if(config('app.xlang'))
+ @foreach(\App\Models\Xlang::where('is_default', 0)->get() as $lang)
+
+ {{route('lang.product-category.show',[$lang->tag,$item->slug])}}
+ {{ $item->updated_at->tz('UTC')->toAtomString() }}
+ weekly
+ 0.8
+
+ @endforeach
+ @endif
@endsection
diff --git a/resources/views/sitemap/posts.blade.php b/resources/views/sitemap/posts.blade.php
index 1874098..b805ccb 100755
--- a/resources/views/sitemap/posts.blade.php
+++ b/resources/views/sitemap/posts.blade.php
@@ -7,7 +7,6 @@
1
@foreach($items as $item)
-
{{route('post.show',$item->slug)}}
{{ $item->updated_at->tz('UTC')->toAtomString() }}
@@ -15,4 +14,14 @@
0.7
@endforeach
+ @if(config('app.xlang'))
+ @foreach(\App\Models\Xlang::where('is_default', 0)->get() as $lang)
+
+ {{route('lang.post.show',[$lang->tag,$item->slug])}}
+ {{ $item->updated_at->tz('UTC')->toAtomString() }}
+ weekly
+ 0.7
+
+ @endforeach
+ @endif
@endsection
diff --git a/resources/views/sitemap/products.blade.php b/resources/views/sitemap/products.blade.php
index 6755caf..d63ea9d 100755
--- a/resources/views/sitemap/products.blade.php
+++ b/resources/views/sitemap/products.blade.php
@@ -15,4 +15,14 @@
0.8
@endforeach
+ @if(config('app.xlang'))
+ @foreach(\App\Models\Xlang::where('is_default', 0)->get() as $lang)
+
+ {{route('lang.product',[$lang->tag,$item->slug])}}
+ {{ $item->updated_at->tz('UTC')->toAtomString() }}
+ weekly
+ 0.8
+
+ @endforeach
+ @endif
@endsection
diff --git a/routes/web.php b/routes/web.php
index a92f0a5..e01d9db 100755
--- a/routes/web.php
+++ b/routes/web.php
@@ -189,6 +189,13 @@ Route::prefix(config('starter-kit.uri'))->name('admin.')->group(
}
);
});
+
+// site map
+Route::get('/sitemap.xml', [App\Http\Controllers\SitemapController::class, 'index'])->name('sitemap.index');
+Route::get('/sitemap/posts.xml', [App\Http\Controllers\SitemapController::class, 'posts'])->name('sitemap.posts');
+Route::get('/sitemap/cats.xml', [App\Http\Controllers\SitemapController::class, 'cats'])->name('sitemap.cats');
+Route::get('/sitemap/products.xml', [App\Http\Controllers\SitemapController::class, 'products'])->name('sitemap.products');
+
Route::get('/props/list/{id}', [\App\Http\Controllers\Admin\PropController::class, 'list'])->name('props.list');
// for under construction
@@ -340,12 +347,6 @@ Route::prefix('/{lang?}')->name('lang.')->group(function () {
});
-// site map
-Route::get('/sitemap.xml', [App\Http\Controllers\SitemapController::class, 'index'])->name('sitemap.index');
-Route::get('/sitemap/posts.xml', [App\Http\Controllers\SitemapController::class, 'posts'])->name('sitemap.posts');
-Route::get('/sitemap/cats.xml', [App\Http\Controllers\SitemapController::class, 'cats'])->name('sitemap.cats');
-Route::get('/sitemap/products.xml', [App\Http\Controllers\SitemapController::class, 'products'])->name('sitemap.products');
-
//Route::get('impex/customer', [App\Http\Controllers\ImpexController::class, 'customer'])->name('impex.customer');
//Route::get('impex/col', [App\Http\Controllers\ImpexController::class, 'col'])->name('impex.col');
//Route::get('impex/crwl', [App\Http\Controllers\ImpexController::class, 'crwl'])->name('impex.crwl');