model && ( isset($this->model->ipaddress->host->module_datacenter_id) || isset($this->model->host->module_datacenter_id) ) ) { $hosts = $this->hostRepository->filter( [ 'module_datacenter_id' => $this->model->ipaddress->host->module_datacenter_id ?? $this->model->host->module_datacenter_id ], [], [], ['id', 'name'] ); } return view('components.module.host',compact('hosts')); } }