web.php 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. <?php
  2. use Illuminate\Support\Facades\Artisan;
  3. use Illuminate\Support\Facades\Auth;
  4. use Illuminate\Support\Facades\Route;
  5. /*
  6. |--------------------------------------------------------------------------
  7. | Web Routes
  8. |--------------------------------------------------------------------------
  9. |
  10. | Here is where you can register web routes for your application. These
  11. | routes are loaded by the RouteServiceProvider within a group which
  12. | contains the "web" middleware group. Now create something great!
  13. |
  14. */
  15. Route::get('/clear-all', function() {
  16. Artisan::call('cache:clear');
  17. Artisan::call('view:clear');
  18. Artisan::call('clear-compiled');
  19. Artisan::call('config:cache');
  20. Artisan::call('config:clear');
  21. return "All is cleared";
  22. });
  23. Route::get('/', function () {
  24. return view('welcome');
  25. });
  26. // Route::get('/dashboard', function () {
  27. // return view('dashboard');
  28. // });
  29. // Route::get('/explore', function () {
  30. // return view('application.explore');
  31. // });
  32. // Route::get('/landing', function () {
  33. // return view('landing');
  34. // });
  35. Route::get('/fixemail', function () {
  36. return view('fixemail');
  37. });
  38. // Auth::routes();
  39. //Route::get('/email-verification/{id}', [App\Http\Controllers\RegisterController::class,'email_verification'])->name('/email-verification');
  40. Route::group(['prefix' => 'applicant'], function () {
  41. Route::get('/login', [App\Http\Controllers\Auth\LoginController::class,'showLoginForm'])->name('login');
  42. Route::post('/student-login', [App\Http\Controllers\Auth\LoginController::class,'login'])->name('student-login');
  43. Route::get('register', [App\Http\Controllers\Auth\RegisterController::class,'showRegistrationForm'])->name('register');
  44. Route::post('student-register', [App\Http\Controllers\Auth\RegisterController::class,'create'])->name('student-register');
  45. Route::get('/verify/{token}', [App\Http\Controllers\Auth\RegisterController::class,'email_verification'])->name('email-verification');
  46. Route::get('q-apply/{hash}', [App\Http\Controllers\HomeController::class,'student_q_form']);
  47. Route::get('register/{hash}', [App\Http\Controllers\HomeController::class,'q_apply_register_form']);
  48. Route::get('/password/reset', [App\Http\Controllers\Auth\ForgotPasswordController::class,'showLinkRequestForm'])->name('password.reset');
  49. Route::post('/password/email',[App\Http\Controllers\Auth\ForgotPasswordController::class,'sendResetLinkEmail'])->name('password.request');
  50. Route::get('/password/reset/{token}', [App\Http\Controllers\Auth\ResetPasswordController::class,'showResetForm']);
  51. Route::post('/password/reset',[App\Http\Controllers\Auth\ResetPasswordController::class,'reset'])->name('password.email');
  52. });
  53. Route::group(['middleware' => ['auth']], function() {
  54. Route::get('/home', [App\Http\Controllers\StudentHomeController::class,'index'])->name('home');
  55. Route::get('/application', [App\Http\Controllers\StudentHomeController::class,'application']);
  56. Route::get('/profile', [App\Http\Controllers\StudentHomeController::class,'profile'])->name('profile');
  57. Route::post('std-logout', [App\Http\Controllers\StudentHomeController::class,'logout'])->name('std-logout');
  58. Route::get('/save-as-complete', [App\Http\Controllers\StudentHomeController::class,'save_as_complete'])->name('save-as-complete');
  59. Route::post('/institution_save', [App\Http\Controllers\StudentHomeController::class,'institution_save'])->name('institution-save');
  60. Route::post('/work_save', [App\Http\Controllers\StudentHomeController::class,'work_save'])->name('work-save');
  61. Route::post('/score_save', [App\Http\Controllers\StudentHomeController::class,'score_save'])->name('score-save');
  62. Route::get('/education-remove/{id}', [App\Http\Controllers\StudentHomeController::class,'education_remove'])->name('education-remove');
  63. Route::get('/work-remove/{id}', [App\Http\Controllers\StudentHomeController::class,'work_remove'])->name('work-remove');
  64. Route::get('/score-remove/{id}', [App\Http\Controllers\StudentHomeController::class,'score_remove'])->name('score-remove');
  65. Route::get('/proposal-remove/{id}', [App\Http\Controllers\StudentHomeController::class,'proposal_remove'])->name('proposal-remove');
  66. Route::post('/institution-update/{id}', [App\Http\Controllers\StudentHomeController::class,'institution_update'])->name('institution-update');
  67. Route::post('/work-update/{id}', [App\Http\Controllers\StudentHomeController::class,'work_update'])->name('work-update');
  68. Route::post('/score-update/{id}', [App\Http\Controllers\StudentHomeController::class,'score_update'])->name('score-update');
  69. Route::post('/proposal_save', [App\Http\Controllers\StudentHomeController::class,'proposal_save'])->name('proposal-save');
  70. Route::post('/proposal-update/{id}', [App\Http\Controllers\StudentHomeController::class,'proposal_update'])->name('proposal-update');
  71. Route::post('/home/proposal-media-upload', [App\Http\Controllers\StudentHomeController::class,'proposal_media_upload'])->name('proposal_media_upload');
  72. Route::get('/change_work_experience/{status}', [App\Http\Controllers\StudentHomeController::class,'change_work_experience'])->name('change_work_experience');
  73. Route::get('/change_test_score/{status}', [App\Http\Controllers\StudentHomeController::class,'change_test_score'])->name('change_test_score');
  74. Route::get('/home/search', [App\Http\Controllers\StudentHomeController::class,'ref_search'])->name('ref-search');
  75. });
  76. // Teacher
  77. Route::group(['prefix' => 'supervisor'], function () {
  78. Route::get('welcome', [App\Http\Controllers\HomeController::class,'landing']);
  79. Route::get('register/{hash}', [App\Http\Controllers\HomeController::class,'invited_register_form']);
  80. Route::get('register', [App\Http\Controllers\AuthSupervisor\RegisterController::class,'showRegistrationForm']);
  81. Route::post('register-v2/teacher-register-v2', [App\Http\Controllers\AuthSupervisor\RegisterController::class,'create'])->name('teacher-register-v2');
  82. Route::get('login', [App\Http\Controllers\AuthSupervisor\LoginController::class,'showLoginForm']);
  83. Route::post('/teacher-login', [App\Http\Controllers\AuthSupervisor\LoginController::class,'login'])->name('teacher-login');
  84. Route::post('teacher-logout', [App\Http\Controllers\AuthSupervisor\LoginController::class,'logout'])->name('teacher-logout');
  85. Route::get('/password/reset', [App\Http\Controllers\AuthSupervisor\ForgotPasswordController::class,'showLinkRequestForm'])->name('password.reset');
  86. Route::post('/password/email',[App\Http\Controllers\AuthSupervisor\ForgotPasswordController::class,'sendResetSupervisorLinkEmail'])->name('password.email');
  87. Route::get('/password/reset/{token}', [App\Http\Controllers\AuthSupervisor\ResetPasswordController::class,'showResetForm']);
  88. Route::post('/password/reset',[App\Http\Controllers\AuthSupervisor\ResetPasswordController::class,'reset'])->name('password.email');
  89. });
  90. Route::group(['middleware' => ['teacher'], 'prefix' => 'supervisor'], function() {
  91. Route::get('dashboard', [App\Http\Controllers\TeacherHomeController::class,'dashboard'])->name('dashboard');
  92. Route::get('application/{hash}', [App\Http\Controllers\TeacherHomeController::class,'student_proposal_details']);
  93. Route::get('application', [App\Http\Controllers\TeacherHomeController::class,'applications']);
  94. Route::get('/application-list/search', [App\Http\Controllers\TeacherHomeController::class,'search']);
  95. Route::get('wishlist', [App\Http\Controllers\TeacherHomeController::class,'wishlist'])->name('wishlist');
  96. Route::get('explore', [App\Http\Controllers\TeacherHomeController::class,'explore'])->name('explore');
  97. Route::get('my-account', [App\Http\Controllers\TeacherHomeController::class,'my_account']);
  98. });
  99. //Admin
  100. Route::get('/admin-login', [App\Http\Controllers\AdminAuth\LoginController::class,'showLoginForm']);
  101. Route::post('/create-login', [App\Http\Controllers\AdminAuth\LoginController::class,'login'])->name('create-login');
  102. Route::post('admin-logout', [App\Http\Controllers\AdminAuth\LoginController::class,'logout'])->name('admin-logout');
  103. Route::group(['middleware' => ['admin']], function() {
  104. Route::get('/admin/dashboard', [App\Http\Controllers\Admin\AdminController::class,'dashboard']);
  105. Route::get('/admin/dashboard/load_country_list/{text}', [App\Http\Controllers\Admin\AdminController::class,'load_country_list']);
  106. Route::get(
  107. 'destination-wise-university',
  108. [App\Http\Controllers\Admin\AdminController::class,'destination_wise_university']
  109. )->name('destination-wise-university');
  110. });
  111. Route::get(
  112. 'modal/{name}',
  113. 'ModalController@get'
  114. )->name('modal-get');
  115. Route::post(
  116. 'modal/{name}',
  117. 'ModalController@post'
  118. )->name('modal-post');
  119. Route::get(
  120. 'ajax/{name}',
  121. 'AjaxController@get'
  122. )->name('ajax-get');
  123. Route::post(
  124. 'ajax/{name}',
  125. 'AjaxController@post'
  126. )->name('ajax-post');
  127. Route::get(
  128. 'sub-content/{name}', [App\Http\Controllers\Admin\SubContentController::class, 'get']
  129. )->name('sub-content');