club_points.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | Affiliate Routes
  5. |--------------------------------------------------------------------------
  6. |
  7. | Here is where you can register admin routes for your application. These
  8. | routes are loaded by the RouteServiceProvider within a group which
  9. | contains the "web" middleware group. Now create something great!
  10. |
  11. */
  12. //Admin
  13. use App\Http\Controllers\ClubPointController;
  14. Route::group(['prefix' =>'admin', 'middleware' => ['auth', 'admin']], function(){
  15. Route::controller(ClubPointController::class)->group(function () {
  16. Route::get('club-points/configuration', 'configure_index')->name('club_points.configs');
  17. Route::get('club-points/index', 'index')->name('club_points.index');
  18. Route::get('set-club-points', 'set_point')->name('set_product_points');
  19. Route::post('set-club-points/store', 'set_products_point')->name('set_products_point.store');
  20. Route::post('set-club-points-for-all_products/store', 'set_all_products_point')->name('set_all_products_point.store');
  21. Route::get('set-club-points/{id}', 'set_point_edit')->name('product_club_point.edit');
  22. Route::get('club-point-details/{id}', 'club_point_detail')->name('club_point.details');
  23. Route::post('set-club-points/update/{id}', 'update_product_point')->name('product_point.update');
  24. Route::post('club-point-convert-rate/store', 'convert_rate_store')->name('point_convert_rate_store');
  25. });
  26. });
  27. //FrontEnd
  28. Route::group(['middleware' => ['user', 'verified']], function(){
  29. Route::controller(ClubPointController::class)->group(function () {
  30. Route::get('earning-points', 'userpoint_index')->name('earnng_point_for_user');
  31. Route::post('convert-point-into-wallet', 'convert_point_into_wallet')->name('convert_point_into_wallet');
  32. Route::get('invitation-code', 'invitation_code')->name('user_invitation_code');
  33. Route::get('registered-shop', 'registered_shop')->name('registered_shop');
  34. });
  35. });