mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-11 17:52:15 +01:00
Add getTrialUntil to BillingContract; Allow delete endpoints after blocking
This commit is contained in:
committed by
Constantin Graf
parent
83301d03ca
commit
01dd13b947
@@ -51,6 +51,7 @@ class HandleInertiaRequests extends Middleware
|
||||
'billing' => $billing !== null && $currentOrganization !== null ? [
|
||||
'has_subscription' => $billing->hasSubscription($currentOrganization),
|
||||
'has_trial' => $billing->hasTrial($currentOrganization),
|
||||
'trial_until' => $billing->getTrialUntil($currentOrganization)?->toIso8601ZuluString(),
|
||||
'is_blocked' => $billing->isBlocked($currentOrganization),
|
||||
] : null,
|
||||
'flash' => [
|
||||
|
||||
Reference in New Issue
Block a user