return in_array($this->status, $status, true);
}
+ /**
+ * @return bool
+ * @todo Add indiv subscription plans
+ */
+ public function hasValidSubscription(): bool
+ {
+ return $this->orgIsSubscribed();
+ }
+
+ /**
+ * @return bool
+ * Checks if affiliated organization has valid subscription
+ */
+ public function orgIsSubscribed(): bool
+ {
+ return ($o = $this->organization) === null ?
+ false:
+ $o->isSubscribed();
+ }
/**
* @return bool
- * Checks if affiliated organization has valid subscription
*/
public function getOrgIsSubscribedAttribute(): bool
{
- return ($o = $this->organization) === null ?
- false:
- $o->isSubscribed();
+ return $this->orgIsSubscribed();
+ }
+
+ /**
+ * @return bool
+ * Checks if has any valid subscription
+ */
+ public function geHasValidSubscriptionAttribute(): bool
+ {
+ return $this->hasValidSubscription();
}