/**
  * deletes data block from transaction
  * @param $id
  * @param $transactionId
  * @param $jsonPath
  */
 public function deleteBlock($id, $transactionId, $jsonPath)
 {
     $result = $this->transactionManager->deleteBlock($transactionId, $jsonPath);
     if ($result) {
         $this->activityManager->resetActivityWorkflow($id);
         $response = ['type' => 'success', 'code' => ['transaction_block_removed', ['element' => 'activity']]];
     } else {
         $response = ['type' => 'danger', 'code' => ['transaction_block_not_removed', ['element' => 'activity']]];
     }
     return redirect()->back()->withResponse($response);
 }