user()) : auth()->user(); $svc = app(SubscriptionService::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::composer(['partials.topbar', 'partials.topbar-qr'], function ($view) { $view->with(MobileTopbar::resolve()); }); } }