getPermittingOwnerIds(auth()->user()); $owners = \App\Owner::query()->select(['id', 'name', 'code'])->whereIn('id', $ownerIds)->get(); return view('kpi.dayDetailCustomer.index', compact('owners')); } public function workCoefficientDayStatIndex() { $userWorkgroups = \App\UserWorkgroup::query()->select(["id", "name"])->get(); return view('kpi.workCoefficientDayStat.index', compact('userWorkgroups')); } }