group(function(){ route::get('/','index'); route::get('/collections','categories'); route::get('/collections/{category_slug}','products'); route::get('/collections/{category_slug}/{product_slug}' , 'productView'); route::get('/detail/{category_slug}/{product_slug}' , 'detail'); route::get('/new-arrivals','newArrrival'); route::get('/featured-products','featuredproducts'); route::get('search' , 'searchProducts'); Route::get('connexion' , 'connexion'); Route::get('about' , 'about'); }); Route::middleware(['auth'])->group(function(){ Route::get('wishlist',[App\Http\Controllers\Frontend\WishlistController::class, 'index']); Route::get('cart',[App\Http\Controllers\Frontend\CartController::class, 'index']); Route::get('checkout',[App\Http\Controllers\Frontend\CheckoutController::class, 'index']); Route::get('profile' , [App\Http\Controllers\Frontend\UserController::class, 'index']); Route::post('profile', [App\Http\Controllers\Frontend\UserController::class, 'updateUserDetails']); Route::get('change-password' , [App\Http\Controllers\Frontend\UserController::class, 'changepassword']); Route::post('change-password' , [App\Http\Controllers\Frontend\UserController::class, 'changepasswords']); route::get('check',[App\Http\Controllers\Frontend\FrontendController::class, 'check']); route::get('resultats',[App\Http\Controllers\Frontend\CartController::class, 'Resultats']); route::get('parie',[App\Http\Controllers\Frontend\CartController::class, 'parie']); route::get('detail',[App\Http\Controllers\Frontend\FrontendController::class, 'detail']); route::get('depot',[App\Http\Controllers\Frontend\DepotControllers::class, 'index']); route::get('validation',[App\Http\Controllers\Frontend\DepotControllers::class, 'validation']); Route::post('depot', [App\Http\Controllers\Frontend\DepotControllers::class, 'updateUserDetails']); route::get('retrait',[App\Http\Controllers\Frontend\FrontendController::class, 'retrait']); route::get('retraitconf',[App\Http\Controllers\Frontend\FrontendController::class, 'retraitconf']); }); route::get('thank-you',[App\Http\Controllers\Frontend\FrontendController::class, 'thankyou']); route::get('privacy',[App\Http\Controllers\Frontend\FrontendController::class, 'privacy']); route::get('termsandcond',[App\Http\Controllers\Frontend\FrontendController::class, 'termsandcond']); route::get('publicagree',[App\Http\Controllers\Frontend\FrontendController::class, 'publicagree']); route::get('licence',[App\Http\Controllers\Frontend\FrontendController::class, 'licence']); Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home'); route::prefix('admin')->middleware(['auth', 'isAdmin'])->group(function(){ route::get('dashboard',[App\Http\Controllers\Admin\DashboardController::class, 'index']); route::get('parie',[App\Http\Controllers\Admin\DashboardController::class, 'parie']); route::controller(App\Http\Controllers\Admin\SliderController::class)->group(function(){ route::get('sliders' , 'index'); route::get('sliders/create' , 'create'); route::post('sliders/create' , 'store'); }); //category routes route::controller(App\Http\Controllers\Admin\categorycontroller::class)->group(function(){ route::get('/category', 'index'); route::get('/category/create', 'create'); route::post('/category', 'store'); route::get('/category/{category}/edit', 'edit'); route::put('/category/{categoty}', 'update'); }); route::controller(App\Http\Controllers\Admin\productcontroller::class)->group(function(){ route::get('/products', 'index'); route::get('products/create' , 'create'); route::post('/products', 'store'); route::get('/products/{product}/edit', 'edit'); route::put('/products/{product}', 'update'); route::get('products/{product_id}/delete', 'destroy'); route::get('product-image/{product_image_id}/delete' , 'destroyImage'); }); route::controller(App\Http\Controllers\Admin\OrderController::class)->group(function(){ route::get('/orders', 'index'); route::get('/orders/{orderId}', 'show'); route::put('/orders/{orderId}', 'updateOrderStatus'); Route::get('/invoice/{orderId}', 'viewInvoice'); Route::get('/invoice/{orderId}/generate', 'generateInvoice'); Route::get('/invoice/{orderId}/mail', 'mailInvoice'); }); route::controller(App\Http\Controllers\Admin\UserController::class)->group(function(){ route::get('/users', 'index'); route::get('/users/create', 'create'); route::post('/users' , 'store' ); route::get('/users/{user_id}/edit' , 'edit'); route::put('users/{user_id}' , 'update'); route::get('users/{user_id}/delete' , 'destroy'); }); route::controller(App\Http\Controllers\Admin\DeporControlles::class)->group(function(){ route::get('/depot', 'index'); route::get('/depot/{user_id}/edit' , 'edit'); route::put('depot/{user_id}' , 'updateUserDetails'); }); }); Not Found
404
Not Found