fix(settings): read SuperAdmin overlay via ConfigService everywhere

This commit is contained in:
2026-08-22 15:10:54 +03:30
parent 197b49b719
commit 7bdb2c91a0
9 changed files with 31 additions and 35 deletions
+2 -1
View File
@@ -7,6 +7,7 @@ use App\Models\Customer;
use App\Models\Price;
use App\Models\PriceTrigger;
use App\Models\Product;
use App\Services\ConfigService;
use Illuminate\Support\Facades\Log;
class PriceTriggerService
@@ -162,7 +163,7 @@ class PriceTriggerService
$title = 'طلا';
}
$shopName = (string) Controller::Config('name_fa');
$shopName = (string) app(ConfigService::class)->getString('name_fa');
$message = 'قیمت ' . $title . ' به ' . number_format((int) $current) . " رسید\n" . $shopName;
if (! Controller::isSmsNotifEnabled('sms_notif_price_trigger')) {