user(); $svc = app(SubscriptionService::class); $stores = app(CurrentWooStore::class); $view->with('isPro', $account ? $svc->isPro($account) : false); $view->with('hasPaidPlan', $account ? $svc->hasPaidPlan($account) : false); $view->with('isEnterprise', $account ? $svc->isEnterprise($account) : false); $view->with('wooActiveStores', $account ? $stores->activeStores($account) : collect()); $view->with('currentWooStore', $account ? $stores->resolve($account) : null); }); } }