/**
  * View report by id
  *
  * @return Response
  */
 public function view($id)
 {
     $data = array();
     // get config
     $config = Configuration::getById($id);
     $data['config'] = $config;
     // get config sheets
     $configSheets = ConfigurationSheet::getByConfigId($id);
     foreach ($configSheets as $currentConfigsheet) {
         $currentConfigsheet->decoded_config_string = json_decode($currentConfigsheet->configuration_string);
     }
     $data['configSheets'] = $configSheets;
     return view($this->viewPath . 'update', $data);
 }