Exemplo n.º 1
0
 public function detail($codcampeonato, $idtorneo, $idfecha)
 {
     $torneo = Torneo::where('codRueda', '=', $idtorneo)->first();
     $fecha = Fechas::where('idFecha', '=', $idfecha)->first();
     $fixture = Fixture::where('nroFecha', '=', $fecha->nroFecha)->where('codRueda', '=', $idtorneo)->get();
     $fixturedeequipoqueescansa = Fixtureaux::where('nroFecha', '=', $fecha->nroFecha)->where('codRueda', '=', $idtorneo)->first();
     $equipoquedescansa = '';
     // $todoConclusion = Cambio::all();
     if ($fixturedeequipoqueescansa != '') {
         if ($fixturedeequipoqueescansa->codEquipo1 == '') {
             $equipoquedescansa = Equipo::where('codEquipo', '=', $fixturedeequipoqueescansa->codEquipo2)->first();
         } else {
             $equipoquedescansa = Equipo::where('codEquipo', '=', $fixturedeequipoqueescansa->codEquipo1)->first();
         }
     }
     return View::make('user_com_organizing.fecha.detail', compact('fecha'))->with('fixture', $fixture)->with('torneo', $torneo)->with('equipoquedescansa', $equipoquedescansa)->with('codcampeonato', $codcampeonato);
 }
Exemplo n.º 2
0
                            </div>
                            <div class="row">
                            <div class="form-group">
                                <p>{{Form::submit('agregar', array('class' => 'btn btn-primary'))}}</p>
                            </div>
                            </div>
							{{ Form::close() }}
							</div>

					</div>
				</div>
			</div>
        </div>
    @endif
    <?php 
$fechaexiste = Fechas::where('nroFecha', '=', $nrofecha)->where('codRueda', '=', $torneo->codRueda)->first();
?>

    @if(  $fechaexiste = Fechas::where('nroFecha', '=',$nrofecha )->where('codRueda','=',$torneo->codRueda)->first())
        <?php 
$fixturefecha = Fixture::where('nroFecha', '=', $nrofecha)->where('codRueda', '=', $torneo->codRueda)->get();
?>
        <div class="row row-no-gutter col-no-gutter-container" id="fecha">
            <div class="col-md-12 col-no-gutter ">
                <div class="panel panel-default">
                    <div class="panel-heading">PROGRAMAR PARTIDOS DE LA FECHA {{$nrofecha}}
                    </div>
                    <!-- BEGIN PARA MANEJO DE ERRORES -->
                    @include('alerts.allerrors')
                    @include('alerts.errors')
                    <!-- END PARA MANEJO DE ERRORES -->
Exemplo n.º 3
0
 public function detail($codcampeonato, $idtorneo)
 {
     //$tabla = DB::select('call TABLAPOSICIONES');
     $fixture = Fixture::where('codRueda', '=', $idtorneo)->get();
     $fechas = Fechas::where('codRueda', '=', $idtorneo)->get();
     //$equipos = Equipoxtorneo::where('codRueda', '=', $idtorneo)->get();
     $fechasdeltorneo = Fechas::where('codRueda', '=', $idtorneo)->get();
     $campeonato = Campeonato::where('codCampeonato', '=', $codcampeonato)->first();
     $torneo = Torneo::where('codRueda', '=', $idtorneo)->first();
     $nroequipos = $this->nroequipos($codcampeonato);
     return View::make('user_com_organizing.torneo.detail', compact('fechasdeltorneo'))->with('codcampeonato', $codcampeonato)->with('torneo', $torneo)->with('nroequipos', $nroequipos);
 }