2026-07-03 13:46:54 +00:00
|
|
|
<?php
|
|
|
|
|
|
2026-08-26 13:43:30 +03:00
|
|
|
use App\Http\Controllers\CategoryController;
|
|
|
|
|
use App\Http\Controllers\ContactController;
|
2026-08-08 14:50:10 +03:00
|
|
|
use App\Http\Controllers\HomeController;
|
2026-08-26 13:43:30 +03:00
|
|
|
use App\Http\Controllers\LegalPageController;
|
2026-07-31 17:41:55 +03:00
|
|
|
use App\Http\Controllers\ProductController;
|
2026-07-03 13:46:54 +00:00
|
|
|
use Illuminate\Support\Facades\Route;
|
2026-07-31 17:41:55 +03:00
|
|
|
|
2026-08-08 14:50:10 +03:00
|
|
|
Route::prefix('{locale}')
|
2026-08-26 19:12:13 +03:00
|
|
|
->middleware('locale')
|
2026-08-08 14:50:10 +03:00
|
|
|
->group(function () {
|
|
|
|
|
Route::get('/', [HomeController::class, 'index'])->name('home');
|
|
|
|
|
|
2026-08-27 00:55:56 +03:00
|
|
|
Route::get('/products/{id}', [ProductController::class, 'show'])->name(
|
2026-08-08 14:50:10 +03:00
|
|
|
'product.show',
|
|
|
|
|
);
|
|
|
|
|
|
2026-08-26 13:43:30 +03:00
|
|
|
Route::get('/category/{collection}', [CategoryController::class, 'show'])->name(
|
|
|
|
|
'category.show',
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Route::get('/contact', [ContactController::class, 'index'])->name('contact');
|
|
|
|
|
|
|
|
|
|
Route::get('/terms-and-conditions', [LegalPageController::class, 'terms'])->name(
|
|
|
|
|
'legal.terms',
|
|
|
|
|
);
|
|
|
|
|
Route::get('/shipping-returns', [LegalPageController::class, 'shippingReturns'])->name(
|
|
|
|
|
'legal.shipping-returns',
|
|
|
|
|
);
|
|
|
|
|
Route::get('/privacy-policy', [LegalPageController::class, 'privacy'])->name(
|
|
|
|
|
'legal.privacy',
|
|
|
|
|
);
|
|
|
|
|
Route::get('/cookies-policy', [LegalPageController::class, 'cookies'])->name(
|
|
|
|
|
'legal.cookies',
|
|
|
|
|
);
|
|
|
|
|
|
2026-08-08 14:50:10 +03:00
|
|
|
});
|