예제 #1
0
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function show($id)
 {
     $entity = \App\Document::find($id);
     $wi = new \WorkflowInstance('material-request', $entity->id, $entity->state, $entity);
     $states_to_transition = [];
     $states_to_transition = $wi->getTransitionStates(\Auth::user()->email);
     return view('review.show')->withEntity($entity)->withTransitionStates($states_to_transition);
 }