public function actionUpdate($id)
 {
     $model = $this->findModel($id);
     if (\Kanda::$post->post($model)) {
         $model->update_attributes($_POST);
         \Kanda::$app->session->setflash('update', 'Alterado com sucesso');
         return $this->redirect('update', ['id' => $id]);
     } else {
         return $this->render('form', ['model' => $model, 'servicos' => ServicoCrm::all(), 'status' => StatusCrm::all()]);
     }
 }
 public function actionIndex()
 {
     return $this->render('index', ['model' => new RelatorioCrm(), 'status' => StatusCrm::all(), 'servicos' => ServicoCrm::all()]);
 }