Add SMS bulk delay configuration and validate coupon phone function

This commit is contained in:
Mekan1206
2026-06-03 20:57:54 +05:00
parent 275ee63ffb
commit c74330cfaf
18 changed files with 1637 additions and 0 deletions

View File

@@ -76,6 +76,16 @@ if (! function_exists('unmask_phone')) {
}
}
if (! function_exists('is_valid_coupon_phone')) {
/**
* Whether an 8-digit stored coupon phone can receive SMS.
*/
function is_valid_coupon_phone(string $phone): bool
{
return (bool) preg_match('/^6\d{7}$/', $phone);
}
}
if (! function_exists('format_phone')) {
/**
* Format an 8-digit TM mobile number for display (+993 6X XX XX XX).