Ejemplo n.º 1
0
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function show($id)
 {
     $socio = Socio::with('persona.telefonos')->with('persona.emails')->with('persona.webpages')->findOrFail($id);
     $persona = $socio->persona;
     $historial = Trayectoria::where("socio_id", $id)->get();
     $this->webpage['whereAmI'] .= $this->listOneBreadcrumb('detallar ' . $this->modelo, '', 1);
     $this->webpage['tab_title'] .= ' - ' . $persona->full_name;
     $this->showData($persona, $socio, 'socio');
     $this->data = array_merge($this->data, ['trayectoria' => $historial]);
     return view('admin.people.socios.show', $this->data);
 }