Fix PayPal billing flow and mobile admin UX
This commit is contained in:
@@ -80,7 +80,7 @@ class TenantPackage extends Model
|
||||
public function getRemainingEventsAttribute(): ?int
|
||||
{
|
||||
if (! $this->package->isReseller()) {
|
||||
return 0;
|
||||
return max(0, 1 - (int) $this->used_events);
|
||||
}
|
||||
|
||||
$max = $this->package->max_events_per_year;
|
||||
|
||||
Reference in New Issue
Block a user