/**
  * Get Contracts having MTurk Tasks
  *
  * @return collection
  */
 public function getMTurkContracts()
 {
     return $this->contract->with('tasks')->where('mturk_status', '!=', '')->get();
 }
 /**
  * contract with pages and annotations
  *
  * @param $contractId
  * @return Contract
  */
 public function getContractPagesWithAnnotations($contractId)
 {
     return $this->contract->with('pages.annotations')->findOrFail($contractId);
 }