Route::get('cart/add', [CartController::class, 'add'])->name('cart.add');
Route::get('cart/back', [CartController::class, 'back'])->name('cart.back');
Route::get('cart/clear', [CartController::class, 'clear'])->name('cart.clear');
Route::get('cart/checkout', [CartController::class, 'checkout'])->name('cart.checkout');
Route::post('cart/create', [CartController::class, 'create'])->name('cart.create');
Route::get('cart/success', [CartController::class, 'success'])->name('cart.success');

#Customer
Route::get('customer/register', [CustomerController::class, 'register'])->name('customer.register');
Route::get('customer/login', [CustomerController::class, 'login'])->name('customer.login');
Route::get('customer/dashboard', [CustomerController::class, 'dashboard'])->name('customer.dashboard')->middleware('customer.auth');
Route::post('customer/create', [CustomerController::class, 'create'])->name('customer.create');
Route::post('customer/auth', [CustomerController::class, 'auth'])->name('customer.auth');
Route::get('customer/logout', [CustomerController::class, 'logout'])->name('customer.logout')->middleware('customer.auth');
