add header show SMSpanel

This commit is contained in:
2026-07-07 17:42:09 +03:30
parent 10460beb5b
commit 628ee48bea
5 changed files with 163 additions and 5 deletions
@@ -35,9 +35,9 @@ class SmsGatewayService
bool $isAlert = false
): SmsSendResult {
$config = $this->buildProviderConfig();
$billingEnabled = SmsWalletService::isBillingEnabled();
$billingOperational = SmsWalletService::isBillingOperational();
if ($billingEnabled && $this->walletService->isBlocked()) {
if ($billingOperational && $this->walletService->isBlocked()) {
return SmsSendResult::blocked();
}
@@ -76,7 +76,7 @@ class SmsGatewayService
$providerName = $this->providerLabel($provider);
if ($billingEnabled) {
if ($billingOperational) {
$debit = $this->walletService->debitSuccessfulSms(
$to,
$text,