Esempio 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);
 }
Esempio n. 2
0
                            <table data-toggle="table" data-url="tables/data1.json">
                                <thead>
                                <tr>
                                    <th>primer equipo </th>
                                    <th>segundo equipo</th>
                                    <th>fecha</th>
                                    <th>hora </th>

                                </tr>
                                </thead>
                                <?php 
    $fixturefecha = Fixture::where('nroFecha', '=', $fecha)->where('codRueda', '=', $torneo->codRueda)->get();
    ?>
                                <?php 
    $fixture2 = Fixtureaux::where('nroFecha', '=', $fecha)->where('codRueda', '=', $torneo->codRueda)->get();
    ?>
                                <tbody>
                                <?php 
    $descansa = "";
    ?>
                                @foreach($fixture2 as $value)
                                    <?php 
    if ($value->codEquipo1 == "") {
        ?>
                                    <?php 
        $descansa = $value->codEquipo2;
        ?>
                                    <?php 
    }
    ?>