added pargar
This commit is contained in:
@@ -14,6 +14,7 @@ use App\Models\BankAccount;
|
||||
use App\Models\Price;
|
||||
use App\Models\Setting;
|
||||
use App\Http\Controllers\Admin\TahesabController;
|
||||
use App\Services\ConfigService;
|
||||
use App\Services\AssetSummaryService;
|
||||
use App\Services\WalletBalanceService;
|
||||
use App\Services\ZaarboxPriceService;
|
||||
@@ -272,7 +273,7 @@ class WalletController extends Controller
|
||||
$userMobile = $customer->mobile; // User's mobile number
|
||||
$userName = $customer->name; // User's name
|
||||
$withdrawAmount = $data['value']; // amount
|
||||
if($this->Config('send_to_tahesab') == "true") {
|
||||
if (app(ConfigService::class)->isTahesabAccounting()) {
|
||||
try {
|
||||
$result = app(TahesabController::class)->wallet([
|
||||
"customer_id" => auth('customer')->id(),
|
||||
|
||||
Reference in New Issue
Block a user