feat(admin): improve payments and server settings

This commit is contained in:
baodev0
2026-10-19 07:59:23 +07:00
parent 9ed77a85fd
commit ea9a53f742
32 changed files with 680 additions and 78 deletions
+6
View File
@@ -16,6 +16,7 @@ class DnsServer extends Model
protected $fillable = [
'name',
'ip_address',
'domain',
'panel_port',
'password',
'username',
@@ -31,6 +32,11 @@ class DnsServer extends Model
return in_array($type, [ServerType::HOSTING->value, ServerType::BOTH->value], true);
}
public function publicHost(): string
{
return $this->domain ?: $this->ip_address;
}
protected function scopeIsActive($query)
{
return $query->where('status', 'activated');