authorizeAbility($request, 'reports.view'); $organization = $this->organization($request); $branchScope = app(OrganizationResolver::class)->branchScope($this->member($request)); return response()->json([ 'data' => $analytics->overview($this->ownerRef($request), $organization->id, $branchScope), 'trend' => $analytics->dailyTrend($this->ownerRef($request), $organization->id, 14, $branchScope), ]); } }