/**
  * @return \Illuminate\Routing\Route|null|string
  */
 public function ingnoreId()
 {
     $id = $this->route('microcritical');
     $description = $this->input('description');
     return MicroCritical::where(compact('id', 'description'))->exists() ? $id : '';
 }
 /**
  * Remove the specified resource from storage (soft delete).
  *
  * @param  int  $id
  * @return Response
  */
 public function delete($id)
 {
     //Soft delete the microcritical
     $microcritical = MicroCritical::find($id);
     /*$testCategoryInUse = TestType::where('test_category_id', '=', $id)->first();
     		if (empty($testCategoryInUse)) {
     		    // The test category is not in use
     			$testcategory->delete();
     		} else {
     		    // The test category is in use
     		    $url = session('SOURCE_URL');
                 
                 return redirect()->to($url)
     		    	->with('message', trans('messages.failure-test-category-in-use'));
     		}*/
     // redirect
     $url = session('SOURCE_URL');
     return redirect()->to($url)->with('message', trans('messages.record-successfully-deleted'));
 }