admin.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. Route::get('/dashboard', 'Admin\DashboardController@index')->name('admin.dashboard');
  3. Route::post('/logout', 'AdminAuth\LoginController@logout')->name('admin.logout');
  4. Route::get('/profile/change', 'Admin\AdminController@edit_profile');
  5. Route::post('/profile/update', 'Admin\AdminController@update_profile')->name('admin.profile.update');
  6. Route::get('/ajax-get/{name}', 'Admin\AjaxController@ajaxGET')->name('ajax-get');
  7. Route::get('/permissions', 'Admin\PermissionController@index');
  8. Route::get('/permissions/create', 'Admin\PermissionController@create');
  9. Route::post('permissions/store', 'Admin\PermissionController@store')->name('admin.permissions.store');
  10. Route::get('/permissions/view/{id}', 'Admin\PermissionController@show');
  11. Route::get('/permissions/status/{id}', 'Admin\PermissionController@statusUpdate');
  12. Route::get('/permissions/edit/{id}', 'Admin\PermissionController@edit');
  13. Route::post('/permissions/update/{id}', ['as' => 'admin.permissions.update', 'uses' => 'Admin\PermissionController@update']);
  14. Route::delete('/permissions/delete/{id}', ['as' => 'admin.permissions.delete', 'uses' => 'Admin\PermissionController@destroy']);
  15. Route::get('/roles', 'Admin\RoleController@index');
  16. Route::get('/roles/create', 'Admin\RoleController@create');
  17. Route::post('/roles/store', ['as' => 'admin.roles.store', 'uses' => 'Admin\RoleController@store']);
  18. Route::get('/roles/view/{id}', 'Admin\RoleController@show');
  19. Route::get('/roles/edit/{id}', 'Admin\RoleController@edit');
  20. Route::post('/roles/update/{id}', ['as' => 'admin.roles.update', 'uses' => 'Admin\RoleController@update']);
  21. Route::delete('/roles/delete/{id}', ['as' => 'admin.roles.delete', 'uses' => 'Admin\RoleController@destroy']);
  22. Route::get('/admins', 'Admin\AdminController@index');
  23. Route::get('/admins/create', 'Admin\AdminController@create');
  24. Route::post('/admins/store', ['as' => 'admin.admins.store', 'uses' => 'Admin\AdminController@store']);
  25. Route::get('/admins/view/{id}', 'Admin\AdminController@show');
  26. Route::get('/admins/edit/{id}', 'Admin\AdminController@edit');
  27. Route::post('/admins/update/{id}', ['as' => 'admin.admins.update', 'uses' => 'Admin\AdminController@update']);
  28. Route::delete('/admins/delete/{id}', ['as' => 'admin.admins.delete', 'uses' => 'Admin\AdminController@destroy']);
  29. Route::get('/admins/status/{id}', 'Admin\AdminController@statusUpdate');
  30. Route::get('/destinations', 'Admin\ListController@destinations');
  31. Route::get('/institutes', 'Admin\ListController@institutes');
  32. Route::get('/campuses', 'Admin\ListController@campuses');
  33. Route::get('/levels', 'Admin\ListController@levels');
  34. Route::get('/courses', 'Admin\CourseController@index');
  35. Route::get('/courses/load', 'Admin\CourseController@load');
  36. Route::get('/courses/create', 'Admin\CourseController@create');
  37. Route::post('courses/store', 'Admin\CourseController@store')->name('admin.courses.store');
  38. Route::get('/courses/view/{id}', 'Admin\CourseController@show');
  39. Route::get('/courses/edit/{id}', 'Admin\CourseController@edit');
  40. Route::post('/courses/update/{id}', ['as' => 'admin.courses.update', 'uses' => 'Admin\CourseController@update']);
  41. Route::delete('/courses/delete/{id}', ['as' => 'admin.courses.delete', 'uses' => 'Admin\CourseController@destroy']);
  42. Route::get('/institutes/edit_entry_req/{institute}/{course}', 'Admin\CourseController@edit_entry_req');
  43. Route::post('/institutes/update_entry_req/{id}', ['as' => 'admin.courses.updateEntryReq', 'uses' => 'Admin\CourseController@update_entry_req']);
  44. Route::get('/courses/bulk-entry', 'Admin\CourseController@bulkEntry');
  45. Route::post('courses/bulk-entry/store', 'Admin\CourseController@storeExcel')->name('admin.courses.store.bulk');
  46. Route::get('/courses/bulk-template/download', 'Admin\CourseController@downloadBulkTemplate');