web.php 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. <?php
  2. use Illuminate\Support\Facades\Route;
  3. use AkkiIo\LaravelGoogleAnalytics\Facades\LaravelGoogleAnalytics;
  4. use AkkiIo\LaravelGoogleAnalytics\Period;
  5. use Themes\Pro\modunawa\app\Http\Controllers\Auth\CompanySignupController;
  6. use Themes\Pro\modunawa\app\Http\Controllers\Auth\FindMemberIdController;
  7. use Themes\Pro\modunawa\app\Http\Controllers\Auth\FindMemberIdVerifyController;
  8. use Themes\Pro\modunawa\app\Http\Controllers\Auth\FindMemberPwVerifyController;
  9. use Themes\Pro\modunawa\app\Http\Controllers\Auth\FindMemberPwVerifyinputController;
  10. use Themes\Pro\modunawa\app\Http\Controllers\Auth\MemberWithdrawalController;
  11. use Themes\Pro\modunawa\app\Http\Controllers\Auth\PasswordChangeController;
  12. use Themes\Pro\modunawa\app\Http\Controllers\EFinanceController;
  13. use Themes\Pro\modunawa\app\Http\Controllers\Etc\OneToOneController;
  14. use Themes\Pro\modunawa\app\Http\Controllers\IndexController;
  15. use Themes\Pro\modunawa\app\Http\Controllers\Auth\LoginController;
  16. use Themes\Pro\modunawa\app\Http\Controllers\Auth\MemberSignupVerifyController;
  17. use Themes\Pro\modunawa\app\Http\Controllers\Auth\SignupController;
  18. use Themes\Pro\modunawa\app\Http\Controllers\MyPage\EventController;
  19. use Themes\Pro\modunawa\app\Http\Controllers\MyPage\MemberEditController;
  20. use Themes\Pro\modunawa\app\Http\Controllers\MyPage\NoticeController;
  21. use Themes\Pro\modunawa\app\Http\Controllers\MyPage\OrderController;
  22. use Themes\Pro\modunawa\app\Http\Controllers\MyPage\QnaController;
  23. use Themes\Pro\modunawa\app\Http\Controllers\PolicyController;
  24. use Themes\Pro\modunawa\app\Http\Controllers\PrivacyController;
  25. use Themes\Pro\modunawa\app\Http\Controllers\RefundController;
  26. use Themes\Pro\modunawa\app\Http\Controllers\Shop\AddressAddController;
  27. use Themes\Pro\modunawa\app\Http\Controllers\Shop\CartController;
  28. use Themes\Pro\modunawa\app\Http\Controllers\Shop\CheckoutController;
  29. use Themes\Pro\modunawa\app\Http\Controllers\Shop\CheckoutOkController;
  30. use Themes\Pro\modunawa\app\Http\Controllers\Shop\ContactAddController;
  31. use Themes\Pro\modunawa\app\Http\Controllers\Shop\ItemController;
  32. use Themes\Pro\modunawa\app\Http\Controllers\Shop\WalletAddController;
  33. use Themes\Pro\modunawa\app\Http\Controllers\Shop\WalletBalanceController;
  34. use Themes\Pro\modunawa\app\Http\Controllers\Shop\WalletSendController;
  35. use Themes\Pro\modunawa\app\Http\Controllers\Shop\WishController;
  36. Route::get('/test', function () {
  37. // build a query using the `get()` method
  38. $a = LaravelGoogleAnalytics::getTotalUsers(Period::days(1));
  39. dd($a);
  40. });
  41. Route::middleware('check.gate.token')->group(function () {
  42. Route::get('/', [IndexController::class, 'index'])->name('index');
  43. Route::get('/item-list', function() {
  44. return view('views.shop.item-list');
  45. })->name('item-list');
  46. Route::get('/item-gallery/{igroupCode}', [ItemController::class, 'index'])->name('item-gallery');
  47. Route::get('/item-details/{id}', [ItemController::class, 'show'])->name('item-details');
  48. Route::get('/credit-item-list', function () {
  49. return view('views.shop.credit-item-list');
  50. })->name('credit-item-list');
  51. Route::get('/credit-item-detail', function () {
  52. return view('views.shop.credit-item-detail');
  53. })->name('credit-item-detail');
  54. Route::get('/cart', function() {
  55. return view('views.shop.cart');
  56. })->name('cart');
  57. Route::prefix('my-page')->name('my-page.')->group(function () {
  58. Route::get('/notice-list', [NoticeController::class, 'list'])->name('notice.list');
  59. Route::get('/notice-details/{id}', [NoticeController::class, 'show'])->name('notice.show');
  60. Route::get('/ticket-list', function () {
  61. return view('views.my-page.ticket-list');
  62. })->name('ticket-list');
  63. Route::get('/credit-io-list', function () {
  64. return view('views.my-page.credit-io-list');
  65. })->name('credit-io-list');
  66. Route::get('/event-list', [EventController::class, 'list'])->name('event.list');
  67. Route::get('/event-details/{id}', [EventController::class, 'show'])->name('event.show');
  68. Route::get('/qna-list', function () {
  69. return view('views.my-page.qna-list');
  70. })->name('qna-list');
  71. });
  72. Route::get('/policy-list', [PolicyController::class, 'index'])->name('policy.index');
  73. Route::get('/policy-detail/{unique}', [PolicyController::class, 'show'])->name('policy.show');
  74. Route::get('/privacy-list', [PrivacyController::class, 'index'])->name('privacy.index');
  75. Route::get('/privacy-detail/{unique}', [PrivacyController::class, 'show'])->name('privacy.show');
  76. Route::get('/e-finance-list', [EFinanceController::class, 'index'])->name('e-finance.index');
  77. Route::get('/e-finance-detail/{unique}', [EFinanceController::class, 'show'])->name('e-finance.show');
  78. Route::get('/refund-list', [RefundController::class, 'index'])->name('refund.index');
  79. Route::get('/refund-detail/{unique}', [RefundController::class, 'show'])->name('refund.show');
  80. Route::get('/member-go-email', function() {
  81. return view('views.auth.member-go-email');
  82. })->name('member-go-email');
  83. Route::get('/member-signup', [SignupController::class, 'index'])->name('member-signup.index');
  84. Route::post('/member-signup', [SignupController::class, 'store'])->name('member-signup.store');
  85. Route::get('/confirm', [SignupController::class, 'confirm'])->name('confirm');
  86. Route::get('/member-verify-ok', function() {
  87. return view('views.auth.member-verify-ok');
  88. })->name('member-verify-ok');
  89. Route::get('/member-verify-resend', function() {
  90. return view('views.auth.member-verify-resend');
  91. })->name('member-verify-resend');
  92. Route::post('/member-verify-resend', [SignupController::class, 'activateCodeResend'])->name('member-verify-resend');
  93. Route::get('/password-reset', function() {
  94. return view('views.auth.password-reset');
  95. })->name('password-reset');
  96. Route::get('/member-withdraw-cancel', function() {
  97. return view('views.auth.member-withdraw-cancel');
  98. })->name('member-withdraw-cancel');
  99. Route::get('/member-sso-login', function() {
  100. return view('views.auth.member-sso-login');
  101. })->name('member-sso-login');
  102. Route::get('/member-signup-agree', function() {
  103. return view('views.auth.member-signup-agree');
  104. })->name('member-signup-agree');
  105. Route::get('/member-company-signup', [CompanySignupController::class, 'index'])->name('member-company-signup.index');
  106. Route::post('/member-company-signup', [CompanySignupController::class, 'store'])->name('member-company-signup.store');
  107. Route::get('/member-signup-branch', function() {
  108. return view('views.auth.member-signup-branch');
  109. })->name('member-signup-branch');
  110. Route::get('/member-signup-verify', [MemberSignupVerifyController::class, 'index'])->name('member-signup-verify.index');
  111. Route::post('/member-signup-verify', [MemberSignupVerifyController::class, 'store'])->name('member-signup-verify.store');
  112. Route::post('/member-signup-verify-send', [MemberSignupVerifyController::class, 'sendCert'])->name('member-signup-verify.send');
  113. Route::get('/member-activate-failed', function() {
  114. return view('views.auth.member-activate-failed');
  115. })->name('member-activate-failed');
  116. Route::get('/password-reset-code-failed', function() {
  117. return view('views.auth.password-reset-code-failed');
  118. })->name('password-reset-code-failed');
  119. Route::get('/find-member-id-verify', [FindMemberIdVerifyController:: class, 'index'])->name('find-member-id-verify.index');
  120. Route::post('/find-member-id-verify', [FindMemberIdVerifyController:: class, 'store'])->name('find-member-id-verify.store');
  121. Route::get('/find-member-id', [FindMemberIdController::class, 'index'])->name('find-member-id.index');
  122. Route::get('/find-member-pw-memcheck', function() {
  123. return view('views.auth.find-member-pw-memcheck');
  124. })->name('find-member-pw-memcheck.index');
  125. Route::get('/find-member-pw-verify', [FindMemberPwVerifyController::class, 'index'])->name('find-member-pw-verify.index');
  126. Route::post('/find-member-pw-verify', [FindMemberPwVerifyController::class, 'store'])->name('find-member-pw-verify.store');
  127. Route::get('/find-member-pw-verifyinput', [FindMemberPwVerifyinputController::class, 'emailVerifyinput'])->name('find-member-pw-verifyinput');
  128. Route::get('/paq', [QnaController::class, 'list'])->name('paq');
  129. Route::get('/contact-us', function() {
  130. return view('views.etc.contact-us');
  131. })->name('contact-us');
  132. Route::get('/password-change', [PasswordChangeController::class, 'index'])->name('password-change.index');
  133. Route::post('/password-change', [PasswordChangeController::class, 'store'])->name('password-change.store');
  134. Route::middleware('check.pro.member')->group(function () {
  135. Route::get('/member-withdrawal', [MemberWithdrawalController::class, 'index'])->name('member-withdrawal.index');
  136. Route::post('/member-withdrawal', [MemberWithdrawalController::class, 'store'])->name('member-withdrawal.store');
  137. Route::post('/cart', [CartController::class, 'store'])->name('cart.store');
  138. Route::get('/wish-list', [WishController::class, 'index'])->name('wish-list.index');
  139. Route::post('/wish-list', [WishController::class, 'favorite'])->name('wish-list.favorite');
  140. Route::delete('/wish-list', [WishController::class, 'destroy'])->name('wish-list.destroy');
  141. Route::get('/checkout', [CheckOutCOntroller::class, 'index'])->name('checkout.index');
  142. Route::post('/checkout', [CheckOutCOntroller::class, 'store'])->name('checkout.store');
  143. Route::get('/checkout-ok', [CheckoutOkController::class, 'index'])->name('checkout-ok');
  144. Route::get('/checkout-failed', function() {
  145. return view('views.shop.checkout-failed');
  146. })->name('checkout-failed');
  147. Route::prefix('my-page')->name('my-page.')->group(function () {
  148. Route::get('/member-edit', [MemberEditController::class, 'index'])->name('member-edit.index');
  149. Route::get('/member-edit/{id}', [MemberEditController::class, 'show'])->name('member-edit.show');
  150. Route::post('/member-edit/{id}', [MemberEditController::class, 'update'])->name('member-edit.update');
  151. Route::get('/order-list', [OrderController::class, 'list'])->name('order-list');
  152. });
  153. Route::post('/wallet-add', [WalletAddController::class, 'store'])->name('wallet.store');
  154. Route::get('/contact-add', [ContactAddController::class, 'index'])->name('contact.index');
  155. Route::post('/contact-add', [ContactAddController::class, 'store'])->name('contact.store');
  156. Route::get('/contact-add/{id}', [ContactAddController::class, 'show'])->name('contact.show');
  157. Route::post('/contact-add/{id}', [ContactAddController::class, 'update'])->name('contact.update');
  158. Route::delete('/contact-add/{id}', [ContactAddController::class, 'destroy'])->name('contact.destroy');
  159. Route::get('/address-add', [AddressAddController::class, 'index'])->name('address.index');
  160. Route::post('/address-add', [AddressAddController::class, 'store'])->name('address.store');
  161. Route::get('/address-add/{id}', [AddressAddController::class, 'show'])->name('address.show');
  162. Route::post('/address-add/{id}', [AddressAddController::class, 'update'])->name('address.update');
  163. Route::delete('/address-add/{id}', [AddressAddController::class, 'destroy'])->name('address.destroy');
  164. Route::get('/wallet-balance', [WalletBalanceController::class, 'index'])->name('wallet-balance.index');
  165. Route::post('/wallet-balance', [WalletBalanceController::class, 'result'])->name('wallet-balance.result');
  166. Route::get('/wallet-send', [WalletSendController::class, 'index'])->name('wallet-send.index');
  167. Route::post('/wallet-send', [WalletSendController::class, 'result'])->name('wallet-send.result');
  168. Route::get('/1to1-list', [OneToOneController::class, 'list'])->name('1to1.list');
  169. Route::get('/1to1-details/{id}', [OneToOneController::class, 'show'])->name('1to1.show');
  170. Route::get('/1to1-form', function() {
  171. return view('views.etc.1to1-form');
  172. })->name('1to1.form');
  173. Route::post('/1to1-form', [OneToOneController::class, 'store'])->name('1to1.store');
  174. });
  175. Route::group(['middleware' => 'check.pro.guest'], function () {
  176. Route::get('/member-login', [LoginController::class, 'index'])->name('member-login');
  177. });
  178. Route::post('/member-login', [LoginController::class, 'store'])->name('member-login.store');
  179. });
  180. Route::get('/member-logout', function() {
  181. session()->forget('member');
  182. session()->forget('GateToken');
  183. session()->forget('locale');
  184. session()->forget('wallet');
  185. return redirect()->to('/');
  186. })->name('member-logout');