/**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function show($player, $entry, $opponent_id)
 {
     $opponent = Player::find($opponent_id);
     $opplog = [];
     // OpponentLog::where('opponent_id' , '=', $opponent_id);
     //Match History
     $h2h = new Match();
     $head2head = $h2h->head2head($player->player_id, $opponent->player_id);
     //Evaluation
     $evaluation_id = 28;
     // get opponent evalution_id by table PlayerID -> entry_ID -> Opponent_id
     $categories = EvaluationCategory::all();
     $evaluation = PlayerEvaluation::find($evaluation_id);
     $scores = EvaluationScore::where('evaluation_id', '=', $evaluation_id);
     //Notes
     //
     //
     //
     return view('pages/players/journal/opponent/show', compact('player', 'entry', 'opponent', 'opplog', 'head2head', 'evaluation', 'categories', 'scores'));
 }
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int  $id
  * @return Response
  */
 public function edit($player, $entry, $target, $creator, $evaluation_id)
 {
     $evaluation = PlayerEvaluation::find($evaluation_id);
     $categories = EvaluationCategory::all();
     $scores = EvaluationScore::where('evaluation_id', '=', $evaluation_id);
     return view('pages/players/journal/evaluation/edit', compact('categories', 'player', 'entry', 'evaluation', 'scores'));
 }
 /**
  * [getComment description]
  * @param  [type] $catID    [description]
  * @param  [type] $subCatID [description]
  * @return [type]           [description]
  */
 public function getComment($catID, $subCatID)
 {
     $s = EvaluationScore::where('evaluation_id', '=', $this->evaluation_id)->where('category_id', '=', $catID)->where('subcategory_id', '=', $subCatID)->select('comment')->first();
     return $s->comment;
 }