name('admin'); Route::get('/adminProducts', [AdminController::class, 'products'])->name('products'); Route::post('/addNewProduct', [AdminController::class, 'addNewProduct'])->name('addNewProduct'); Route::post('/updateProduct', [AdminController::class, 'updateProduct'])->name('updateProduct'); Route::get('/deleteProduct/{id}', [AdminController::class, 'deleteProduct'])->name('deleteProduct'); Route::get('/adminProfile', [AdminController::class, 'profile'])->name('adminProfile'); //customer routes Route::get('/', [MainController::class, 'index'])->name('/'); Route::get('/about', [MainController::class, 'about'])->name('about'); Route::get('/blog', [MainController::class, 'blog']); Route::get('/profile', [MainController::class, 'profile'])->name('profile'); Route::post('/updateUser', [MainController::class, 'updateUser']); Route::get('/cart', [MainController::class, 'cart'])->name('cart'); Route::post('/addToCart', [MainController::class, 'addToCart']); Route::get('/deleteCartItem/{id}', [MainController::class, 'deleteCartItem']); Route::post('/updateCartItem/{id}', [MainController::class, 'updateCartItem'])->name("cart.update"); Route::get('/checkout', [MainController::class, 'checkout'])->name('checkout'); Route::get('/myOrders', [MainController::class, 'myOrders'])->name('myOrders'); Route::get('/shop', [MainController::class, 'shop'])->name('shop'); Route::get('/single/{id}', [MainController::class, 'singleProduct']); Route::get('/register', [MainController::class, 'register'])->name('register'); Route::post('/registerUser', [MainController::class, 'registerUser'])->name('registerUser'); Route::get('/login', [MainController::class, 'login'])->name('login'); Route::post('/loginUser', [MainController::class, 'loginUser']); Route::get('/logout', [MainController::class, 'logout'])->name('logout'); Route::controller(StripePaymentController::class)->group(function () { Route::get('stripe', 'stripe'); Route::post('stripe', 'stripePost')->name('stripe.post'); }); // Route::get('/testMail', [MainController::class, 'testMail'])->name('testMail'); Route::get('/testMail', [MainController::class, 'testMail'])->name('testMail'); Route::match(['get', 'post'], '/botman', [BotManController::class, 'handle'])->name('botman');