true]); Route::get('logout', [LoginController::class, 'logout']); // Pages Route::get('/', [HomeController::class, 'index'])->name('home'); Route::group([ 'prefix' => 'user' ], function() { Route::get('/profile', [UserProfileController::class, 'index'])->name('profile'); Route::post('/update-profile', [UserProfileController::class, 'update'])->name('update-profile'); Route::get('/change-password', [UserProfileController::class, 'changePassword'])->name('change-password'); Route::post('/update-password', [UserProfileController::class, 'updatePassword'])->name('update-password'); Route::get('/history-payment', [HistoryPaymentController::class, 'index'])->name('history-payment.index'); Route::get('/history-payment/get', [HistoryPaymentController::class, 'get'])->name('history-payment.get'); Route::post('/subscriber', [SubscriberController::class, 'sendMailToSubscriber'])->name('subscriber'); Route::post('/share-with-friend', [ShareWithFriendController::class, 'sendMailToShareWithFriend'])->name('share-with-friend'); Route::group([ 'prefix' => '/history-sn-check' ], function() { Route::get('/', [HistorySNCheckController::class, 'index'])->name('history-sn-check.index'); Route::get('/get', [HistorySNCheckController::class, 'get'])->name('history-sn-check.get'); }); }); Route::group([ 'prefix' => 'checkout' ], function() { Route::get('/package/{id}', [CheckoutController::class, 'package'])->name('checkout.package'); Route::post('/package/{id}', [CheckoutController::class, 'payment'])->name('checkout.payment'); Route::get('/check-discount', [CheckoutController::class, 'checkDiscountByAjax']); Route::get('/calc-total', [CheckoutController::class, 'calcTotalByAjax']); }); Route::group([ 'prefix' => 'serial-number-check', ], function() { Route::get('/', [SerialNumberCheckController::class, 'index'])->name('serial-number-check.index');; Route::post('/search', [SerialNumberCheckController::class, 'search'])->name('serial-number-check.search'); Route::post('/send-report', [SerialNumberCheckController::class, 'sendReportSummary'])->name('serial-number-check.send-report-summary'); });