refund_request.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | Refund System 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 Panel
  13. use App\Http\Controllers\RefundRequestController;
  14. Route::group(['prefix' =>'admin', 'middleware' => ['auth', 'admin']], function(){
  15. Route::controller(RefundRequestController::class)->group(function () {
  16. Route::get('/refund-request-all', 'admin_index')->name('refund_requests_all');
  17. Route::get('/refund-request-config', 'refund_config')->name('refund_time_config');
  18. Route::get('/paid-refund', 'paid_index')->name('paid_refund');
  19. Route::get('/rejected-refund', 'rejected_index')->name('rejected_refund');
  20. Route::post('/refund-request-pay', 'refund_pay')->name('refund_request_money_by_admin');
  21. Route::post('/refund-request-time-store', 'refund_time_update')->name('refund_request_time_config');
  22. Route::post('/refund-request-sticker-store', 'refund_sticker_update')->name('refund_sticker_config');
  23. });
  24. });
  25. //FrontEnd User panel
  26. Route::group(['middleware' => ['user', 'verified']], function(){
  27. Route::controller(RefundRequestController::class)->group(function () {
  28. Route::post('refund-request-send/{id}', 'request_store')->name('refund_request_send');
  29. Route::get('refund-request', 'vendor_index')->name('vendor_refund_request');
  30. Route::get('sent-refund-request', 'customer_index')->name('customer_refund_request');
  31. Route::post('refund-reuest-vendor-approval', 'request_approval_vendor')->name('vendor_refund_approval');
  32. Route::get('refund-request/{id}', 'refund_request_send_page')->name('refund_request_send_page');
  33. });
  34. });
  35. Route::group(['middleware' => ['auth']], function(){
  36. Route::controller(RefundRequestController::class)->group(function () {
  37. Route::Post('/reject-refund-request','reject_refund_request')->name('reject_refund_request');
  38. Route::get('refund-request-reason/{id}', 'reason_view')->name('reason_show');
  39. Route::get('refund-request-reject-reason/{id}', 'reject_reason_view')->name('reject_reason_show');
  40. });
  41. });