|
@@ -25,9 +25,13 @@ class UserResource extends JsonResource
|
|
|
'email_subject' => $this->email_subject,
|
|
|
'banner_location' => $this->banner_location,
|
|
|
'bandwidth' => $this->bandwidth,
|
|
|
+ 'username_count' => $this->username_count,
|
|
|
'default_recipient_id' => $this->default_recipient_id,
|
|
|
'default_alias_domain' => $this->default_alias_domain,
|
|
|
'default_alias_format' => $this->default_alias_format,
|
|
|
+ 'recipient_count' => $this->recipients()->count(),
|
|
|
+ 'active_domain_count' => $this->domains()->where('active', true)->count(),
|
|
|
+ 'active_shared_domain_alias_count' => $this->activeSharedDomainAliases()->count(),
|
|
|
'total_emails_forwarded' => (int) $totals->forwarded,
|
|
|
'total_emails_blocked' => (int) $totals->blocked,
|
|
|
'total_emails_replied' => (int) $totals->replied,
|