/** * Show the form for editing the specified resource. * * @param int $id * @return Response */ public function editarpartido($id) { $partido = Partido::where('codpartido', '=', $id)->get(); return View::make('partido.editar')->with('partidos', $partido); }
<th>hora</th> <th class="text-center">{{$fecha->diaFecha}}</th> <th>Accion</th> </tr> </thead> <tbody> @foreach($fixture as $val) <tr> <td>{{$val->nroPartido}}</td> <td>{{$val->hora}}</td> <td class="text-center">{{Equipo::find($val->codEquipo1)->nombre.' <----> '.Equipo::find($val->codEquipo2)->nombre}}</td> <td> <!--- encontrar cod de partido --> <?php $programacion = Programacion::where('idFecha', '=', $fecha->idFecha)->where('nroPartido', '=', $val->nroPartido)->first(); $partido = Partido::where('codProgramacion', '=', $programacion->codProgramacion)->first(); $fixture = Fixture::where('codRueda', '=', $torneo->codRueda)->where('nroFecha', '=', $fecha->nroFecha)->where('nroPartido', '=', $val->nroPartido)->first(); ?> <br> <a class="label label-primary" href="{{$partido->codPartido}}/partido.html" > <span class="glyphicon glyphicon-list"></span> Partido </a><br> </td> </tr> @endforeach </tbody> </table> </div> <div class="panel-footer"> @if($equipoquedescansa !='')