/**
  * Store a newly created contract.
  *
  * @param ContractRequest $request
  * @return Response
  */
 public function store(ContractRequest $request)
 {
     if ($contract = $this->contract->saveContract($request->all())) {
         return redirect()->route('contract.show', $contract->id)->withSuccess(trans('contract.save_success'));
     }
     return redirect()->route('contract.index')->withError(trans('contract.save_fail'));
 }