/** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function show($id) { $torneo_club = TorneoClub::findOrFail($id); $this->webpage['whereAmI'] = $this->BreadcrumbRoot($torneo_club); $this->webpage['tab_title'] = $torneo_club->full_name; $estados_suspensiones = EstadoSuspension::get(); $categorias = Categoria::get(); $tipos_suspensiones = TipoSuspension::where("entidad", 4)->orWhere("entidad", null)->get(); $torneo_club->partidos = $torneo_club->partidos_clubes->pluck('partido'); $this->data = array_merge(['webpage' => $this->webpage, 'torneo_club' => $torneo_club, 'tipos_sanciones' => $tipos_suspensiones, 'estados_sanciones' => $estados_suspensiones, 'estados' => $estados_suspensiones, 'categorias' => $categorias], $this->data); return view('admin.seasons.torneos_clubes.show', $this->data); }