|
|
|
@@ -431,14 +431,14 @@ Route::prefix('administrator')->group(function () {
|
|
|
|
|
Route::middleware("IsLoginCheck")
|
|
|
|
|
->controller(ClientController::class)
|
|
|
|
|
->group(function () {
|
|
|
|
|
Route::get('dang-nhap.html', 'Login')->name('user.login');
|
|
|
|
|
Route::post('dang-nhap.html', 'LoginStore')->name("user.login.store");
|
|
|
|
|
Route::get('quen-mat-khau.html', 'Reset')->name('user.reset');
|
|
|
|
|
Route::post('quen-mat-khau.html', 'ResetStore')->name('user.reset.store');
|
|
|
|
|
Route::get('dang-ky-tai-khoan.html', 'Register')->name('user.register');
|
|
|
|
|
Route::post('dang-ky-tai-khoan.html', 'RegisterStore')->name('user.register.store');
|
|
|
|
|
Route::get('xac-thuc-tai-khoan.html', 'Verify')->name('user.verify');
|
|
|
|
|
Route::post('cap-nhat-thong-bao.html', 'updateNotification')->name('user.updateNotification');
|
|
|
|
|
Route::get('dang-nhap', 'Login')->name('user.login');
|
|
|
|
|
Route::post('dang-nhap', 'LoginStore')->name("user.login.store");
|
|
|
|
|
Route::get('quen-mat-khau', 'Reset')->name('user.reset');
|
|
|
|
|
Route::post('quen-mat-khau', 'ResetStore')->name('user.reset.store');
|
|
|
|
|
Route::get('dang-ky-tai-khoan', 'Register')->name('user.register');
|
|
|
|
|
Route::post('dang-ky-tai-khoan', 'RegisterStore')->name('user.register.store');
|
|
|
|
|
Route::get('xac-thuc-tai-khoan', 'Verify')->name('user.verify');
|
|
|
|
|
Route::post('cap-nhat-thong-bao', 'updateNotification')->name('user.updateNotification');
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
Route::middleware("CustomerLoginCheck")->group(function () {
|
|
|
|
@@ -447,23 +447,23 @@ Route::middleware("CustomerLoginCheck")->group(function () {
|
|
|
|
|
Route::get('/', [MainController::class, 'index_new'])->name('home');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Route::get('nhat-ky-hoat-dong.html', [CustomerLogController::class, 'index'])->name('frontend.customer.log');
|
|
|
|
|
Route::get('nhat-ky-hoat-dong', [CustomerLogController::class, 'index'])->name('frontend.customer.log');
|
|
|
|
|
Route::controller(ClientController::class)->group(function () {
|
|
|
|
|
Route::get('dang-xuat.html', 'Logout')->name("user.logout");
|
|
|
|
|
Route::get('thong-tin-tai-khoan.html', 'Information')->name('user.information');
|
|
|
|
|
Route::put('thong-tin-tai-khoan.html', 'StoreInformation')->name('user.information.store');
|
|
|
|
|
Route::get('lich-su-email.html', 'Email')->name('user.email');
|
|
|
|
|
Route::get('chi-tiet-email.html', 'ViewEmail')->name('user.email.view');
|
|
|
|
|
Route::get('doi-mat-khau.html', 'ChangePassword')->name('user.password');
|
|
|
|
|
Route::put('doi-mat-khau.html', 'StoreChangePassword')->name('user.password.store');
|
|
|
|
|
Route::get('dang-xuat', 'Logout')->name("user.logout");
|
|
|
|
|
Route::get('thong-tin-tai-khoan', 'Information')->name('user.information');
|
|
|
|
|
Route::put('thong-tin-tai-khoan', 'StoreInformation')->name('user.information.store');
|
|
|
|
|
Route::get('lich-su-email', 'Email')->name('user.email');
|
|
|
|
|
Route::get('chi-tiet-email', 'ViewEmail')->name('user.email.view');
|
|
|
|
|
Route::get('doi-mat-khau', 'ChangePassword')->name('user.password');
|
|
|
|
|
Route::put('doi-mat-khau', 'StoreChangePassword')->name('user.password.store');
|
|
|
|
|
});
|
|
|
|
|
Route::controller(TicketController::class)->group(function () {
|
|
|
|
|
Route::get('danh-sach-yeu-cau-support.html', 'index')->name('ticket');
|
|
|
|
|
Route::get('gui-yeu-cau-support.html', 'create')->name('ticket.create');
|
|
|
|
|
Route::post('gui-yeu-cau-support.html', 'store')->name('ticket.store');
|
|
|
|
|
Route::get('xem-yeu-cau-support.html', 'show')->name('ticket.show');
|
|
|
|
|
Route::post('reply-yeu-cau-support.html', 'ReplyStore')->name('ticket.reply.store');
|
|
|
|
|
Route::put('dong-yeu-cau-support.html', 'ClosedTicket')->name('ticket.closed');
|
|
|
|
|
Route::get('danh-sach-yeu-cau-support', 'index')->name('ticket');
|
|
|
|
|
Route::get('gui-yeu-cau-support', 'create')->name('ticket.create');
|
|
|
|
|
Route::post('gui-yeu-cau-support', 'store')->name('ticket.store');
|
|
|
|
|
Route::get('xem-yeu-cau-support', 'show')->name('ticket.show');
|
|
|
|
|
Route::post('reply-yeu-cau-support', 'ReplyStore')->name('ticket.reply.store');
|
|
|
|
|
Route::put('dong-yeu-cau-support', 'ClosedTicket')->name('ticket.closed');
|
|
|
|
|
});
|
|
|
|
|
Route::controller(CustomerInvoice::class)->group(function () {
|
|
|
|
|
Route::post('thanh-toan-hoa-don/{order_id}/{order_num}', 'store')->name('client.invoice.store');
|
|
|
|
@@ -471,10 +471,10 @@ Route::middleware("CustomerLoginCheck")->group(function () {
|
|
|
|
|
Route::get('chi-tiet-hoa-don/{invoice_id}/{order_num}', 'show')->name('invoice.show');
|
|
|
|
|
});
|
|
|
|
|
Route::controller(ShopController::class)->group(function () {
|
|
|
|
|
Route::get('danh-sach-dich-vu.html', 'index')->name('shop');
|
|
|
|
|
Route::get('danh-sach-dich-vu', 'index')->name('shop');
|
|
|
|
|
Route::get('dich-vu/{slug}', 'show')->name('shop.show');
|
|
|
|
|
Route::get('product/{slug}', 'getProduct')->name('shop.product');
|
|
|
|
|
Route::post('them-vao-gio-hang.html', 'store')->name('shop.store');
|
|
|
|
|
Route::post('them-vao-gio-hang', 'store')->name('shop.store');
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
Route::controller(ClientOrderController::class)->group(function () {
|
|
|
|
@@ -490,20 +490,18 @@ Route::middleware("CustomerLoginCheck")->group(function () {
|
|
|
|
|
Route::controller(CartController::class)->group(function () {
|
|
|
|
|
Route::post('them-gio-hang', 'addCart')->name('cart.add');
|
|
|
|
|
Route::get('gio-hang', 'index')->name('cart.index');
|
|
|
|
|
Route::get('gio-hang.html', 'index')->name('cart');
|
|
|
|
|
// Route::post('gio-hang.html', 'store')->name('cart.store');
|
|
|
|
|
Route::post('gio-hang.html', 'order')->name('cart.store');
|
|
|
|
|
Route::post('add-coupon.html', 'applyCoupon')->name('cart.applyCoupon');
|
|
|
|
|
Route::get('remove-item-gio-hang.html', 'destroy')->name('cart.remove');
|
|
|
|
|
Route::post('gio-hang', 'order')->name('cart.store');
|
|
|
|
|
Route::post('add-coupon', 'applyCoupon')->name('cart.applyCoupon');
|
|
|
|
|
Route::get('remove-item-gio-hang', 'destroy')->name('cart.remove');
|
|
|
|
|
Route::post('order-addon', 'addon')->name('cart.addon');
|
|
|
|
|
});
|
|
|
|
|
Route::controller(ManagerService::class)->group(function () {
|
|
|
|
|
Route::get('dich-vu-cua-toi.html', 'index')->name('service.index');
|
|
|
|
|
Route::get('chi-tiet-dich-vu.html', 'show')->name('service.show');
|
|
|
|
|
Route::get('dich-vu-cua-toi', 'index')->name('service.index');
|
|
|
|
|
Route::get('chi-tiet-dich-vu', 'show')->name('service.show');
|
|
|
|
|
Route::post('reinstall-vmware', 'reinstall')->name('service.reinstall');
|
|
|
|
|
Route::post('task-action', 'action')->name('service.action');
|
|
|
|
|
Route::post('task-snapshot', 'snapshot')->name('service.snapshot');
|
|
|
|
|
Route::get('view-console.html', 'console')->name('service.console');
|
|
|
|
|
Route::get('view-console', 'console')->name('service.console');
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// Service Controller routes
|
|
|
|
@@ -529,18 +527,18 @@ Route::middleware("CustomerLoginCheck")->group(function () {
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
Route::controller(CustomerDomainController::class)->group(function () {
|
|
|
|
|
Route::get('danh-sach-ten-mien.html', 'index')->name('customer.domain.index');
|
|
|
|
|
Route::get('danh-sach-ten-mien', 'index')->name('customer.domain.index');
|
|
|
|
|
});
|
|
|
|
|
Route::controller(RechargeController::class)->group(function () {
|
|
|
|
|
Route::get('nap-tien.html', 'index')->name('recharge.index');
|
|
|
|
|
Route::post('nap-tien.html', 'paymentProcess')->name('recharge.paymentProcess.vnPay');
|
|
|
|
|
Route::get('nap-tien', 'index')->name('recharge.index');
|
|
|
|
|
Route::post('nap-tien', 'paymentProcess')->name('recharge.paymentProcess.vnPay');
|
|
|
|
|
Route::get('nap-tien/return', 'paymentReturn')->name('recharge.return');
|
|
|
|
|
Route::get('thanh-toan.html', 'show')->name('recharge.show');
|
|
|
|
|
Route::get('lich-su-giao-dich.html', 'HistoryRecharge')->name('recharge.history');
|
|
|
|
|
Route::get('thanh-toan', 'show')->name('recharge.show');
|
|
|
|
|
Route::get('lich-su-giao-dich', 'HistoryRecharge')->name('recharge.history');
|
|
|
|
|
Route::get('callback-function', 'CallbackResponse')->name('recharge.CallbackResponse');
|
|
|
|
|
});
|
|
|
|
|
Route::controller(CustomerPostController::class)->group(function () {
|
|
|
|
|
Route::get('tin-tuc/{slug}.html', 'view')->name('post');
|
|
|
|
|
Route::get('tin-tuc/{slug}', 'view')->name('post');
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
Route::controller(\App\Http\Controllers\frontend\Whois\WhoisController::class)->group(function () {
|
|
|
|
|