andWhere(['status' => MobileDevice::STATUS_INACTIVE]) ->count() > 0; echo $this->render($this->viewFile,[ 'model' => $this->model, 'showLinkDevices' => $showLinkDevices ]); } }