new feature on sms and some bugs fixed

This commit is contained in:
2026-07-18 22:22:01 +03:30
parent 518334da11
commit fc9de5198c
20 changed files with 489 additions and 95 deletions
@@ -163,7 +163,9 @@ class RequestsController extends Controller
" ریال کرد. با تشکر، $companyName";
}
User::where('send_sms', 1)->get()->each(function ($admin) use ($message, $data, $transactionType, $companyName) {
$this->send($admin->mobile, $message);
if (self::isSmsNotifEnabled('sms_notif_fund_withdraw_admin')) {
$this->send($admin->mobile, $message);
}
});
// User::whereNotNull('telegram')->get()->each(function ($admin) use ($message, $data, $transactionType, $companyName) {
// $this->SendTelegram($admin->telegram, $message);
@@ -214,8 +216,9 @@ class RequestsController extends Controller
// "\nمبلغ کل: " . number_format($data['total_price']) . "\n\nموجودی طلایی: {$wallet->gold}\n" .
// "مانده ریالی: " . number_format($wallet->cash) . "\n" . $this->Config('app_url');
// ارسال SMS به مشتری
$this->send($customer->mobile, $customerMessage);
if (self::isSmsNotifEnabled('sms_notif_fund_withdraw_customer')) {
$this->send($customer->mobile, $customerMessage);
}
}
}