/**
  * @param $id
  * @return string
  * @throws NotFoundHttpException
  */
 public function actionStatuses($id)
 {
     $company = Company::findOne(['id' => $id]);
     if (!$company) {
         throw new NotFoundHttpException('Invalid company id');
     }
     if (Yii::$app->request->isAjax) {
         return $this->renderPartial('statuses', ['statusesProvider' => new ActiveDataProvider(['query' => Status::find()->where(['company_id' => $id]), 'sort' => false])]);
     }
 }