salesman.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. use App\Http\Controllers\ConversationController;
  3. use App\Http\Controllers\CustomerController;
  4. use App\Http\Controllers\PaymentController;
  5. use App\Http\Controllers\SellerWithdrawRequestController;
  6. //Upload
  7. Route::group(['prefix' => 'salesman', 'middleware' => ['auth', 'salesman']], function () {
  8. // salesman
  9. Route::controller(CustomerController::class)->group(function () {
  10. Route::get('customers/index', 'salesman_index')->name('salesman.customers.index');
  11. Route::get('customers/create', 'salesman_create')->name('salesman.customers.create');
  12. Route::post('customers/store', 'salesman_store')->name('salesman.customers.store');
  13. Route::get('customers_ban/{customer}', 'ban')->name('salesman.customers.ban');
  14. Route::get('/customers/login/{id}', 'login')->name('salesman.customers.login');
  15. Route::get('/customers/destroy/{id}', 'destroy')->name('salesman.customers.destroy');
  16. Route::post('/bulk-customer-delete', 'bulk_customer_delete')->name('salesman.bulk-customer-delete');
  17. });
  18. //conversation of seller customer
  19. Route::controller(ConversationController::class)->group(function () {
  20. Route::post('conversations/store', 'salesman_store')->name('conversations.salesman_store');
  21. });
  22. Route::controller(SellerWithdrawRequestController::class)->group(function () {
  23. Route::get('/withdraw_requests_all', 'salesman_index')->name('salesman.withdraw_requests_all');
  24. Route::post('/withdraw_request/message_modal', 'message_modal')->name('salesman.withdraw_request.message_modal');
  25. });
  26. // Seller Payment
  27. Route::controller(PaymentController::class)->group(function () {
  28. Route::get('/seller/payments', 'salesman_payment_histories')->name('salesman.sellers.payment_histories');
  29. Route::get('/seller/payments/show/{id}', 'show')->name('salesman.sellers.payment_history');
  30. });
  31. });