group(function () { Route::middleware('validation')->group(function () { //-----------Address Route::post('/address/table', [AddressController::class, 'table']); Route::resource('/address', AddressController::class); //---------PriceTrigger Route::resource('price_triggers', PriceTriggerController::class); //-----------product Route::post('/product/table',[AdminProductController::class, 'table']); Route::get('/product/list',[AdminProductController::class, 'listProduct']); //-----gateway Route::post('/charge_account ', [paypingController::class, 'startTransation']); //--------------Customer Route::get('/me', [CustomerController::class, 'me']); Route::post('/me/update', [CustomerController::class, 'updateMe']); //----------------code Route::post('/im_from/{code}', [CustomerController::class, 'imFrom']); Route::get('/i_have_referrals', [CustomerController::class, 'i_have']); Route::get('/active_finger', [CustomerController::class, 'active_finger']); //------------------wallet Route::get('wallet/me', [WalletController::class, 'walletMe']); Route::post('wallet/withdraw', [WalletController::class, 'withdraw']); Route::post('wallet/withdraw_physical', [WalletController::class, 'withdraw_physical']); Route::post('/wallet/withdraw/table', [WalletController::class, 'indexWithdraw']); Route::post('/wallet/withdraw_physical/table', [WalletController::class, 'index_withdraw_physical']); Route::post('wallet/withdraw/otp', [WalletController::class, 'withdrawOtp']); Route::post('/withdraw/table', [WalletController::class, 'withdrawTable']); //---------------------transaction Route::post('transaction/table', [WalletController::class, 'transactionTable']); Route::post('prices/all', [WalletController::class, 'priceData']); //-----------------order Route::post('order/table', [OrderController::class, 'table']); Route::post('order', [OrderController::class, 'store']); //-----------------single order Route::post('single/order/table', [SingleOrderController::class, 'table']); // Route::post('single/order', [SingleOrderController::class, 'storeBackUp']); Route::post('single/order', [SingleOrderController::class, 'store']); //--------------------fund Route::post('fund/deposit', [FundController::class, 'deposit']); Route::post('fund/withdraw', [FundController::class, 'withdraw']); Route::post('fund/table', [FundController::class, 'table']); Route::post('fund/transaction/table', [WalletController::class, 'transactionTable']); Route::resource('/fund',FundController::class); //--------------------product Route::post('wallet/product/deposit', [ProductController::class, 'deposit']); Route::post('wallet/product/withdraw', [ProductController::class, 'withdraw']); Route::post('wallet/product/table', [ProductController::class, 'pTable']); Route::post('wallet/product/transaction/table', [WalletController::class, 'transactionTable']); Route::get('wallet/product/{id}', [ProductController::class, 'show']); Route::resource('wallet/product',ProductController::class); //--------------------account Route::post('account/table', [BankAccountController::class, 'table']); Route::get('account/active', [BankAccountController::class, 'listActiveBankAccount']); Route::resource('/account',BankAccountController::class)->except(['update']); Route::post('account', [BankAccountController::class, 'StoreBankAccount']); //tahesab // Route::post('account/tahesab', [TahesabController::class, 'store']); Route::post('account/tahesab/trade', [TahesabController::class, 'storeTrade']); //--------------------use gift card Route::post('giftcard/use', [GiftCardController::class, 'useGiftCard']); //offer code Route::post('offer_code/check_code', [OfferCodesController::class, 'check_code']); }); });