added tahesab options

This commit is contained in:
2026-06-25 22:20:40 +03:30
parent 936cc88e53
commit e6e1ff0cc4
11 changed files with 411 additions and 144 deletions
+5 -7
View File
@@ -151,6 +151,10 @@ Route::middleware('auth:user')->group(function (){
Route::post('account/sts', [BankAccountController::class, 'changeSts']);
Route::post('wallet/tahesab', [TahesabController::class, 'wallet']);
Route::post('tahesab/table', [TahesabController::class, 'table']);
Route::get('tahesab/{id}', [TahesabController::class, 'show']);
Route::post('tahesab/{id}/retry', [TahesabController::class, 'retrySanad']);
Route::post('customer/{id}/tahesab/register', [TahesabController::class, 'registerCustomer']);
Route::get('test', function () {
$data = [
@@ -159,13 +163,7 @@ Route::middleware('auth:user')->group(function (){
"note" => "test",
"direction" => "0"
];
$tahesab = new TahesabController();
try {
$tahesab->wallet($data);
}catch (Exception $e) {
dd($e->getMessage());
}
app(TahesabController::class)->wallet($data);
return "OK";
}
);