예제 #1
0
 public static function get($variable)
 {
     $config = Configuracion::where('variable', '=', $variable)->first();
     if (is_object($config)) {
         return $config->valor;
     }
     return false;
 }
예제 #2
0
 public function detalle($codcampeonato)
 {
     $equipos = Equipo::where('codCampeonato', '=', $codcampeonato)->get();
     $campeonato = Campeonato::where("codCampeonato", '=', $codcampeonato)->where('codCom_Org', '=', Session::get('user_idcom_orgdor'))->first();
     $Actividades = Actividad::where('codCampeonato', '=', $codcampeonato)->get();
     $configuracion = Configuracion::where('codCampeonato', '=', $codcampeonato)->get();
     $todoReunion = DB::table('treunion')->join('tfecha', 'treunion.idFecha', '=', 'tfecha.idFecha')->join('trueda', 'tfecha.codRueda', '=', 'trueda.codRueda')->join('tcampeonato', 'trueda.codCampeonato', '=', 'tcampeonato.codCampeonato')->select('treunion.codReunion', 'treunion.fecha')->where('tcampeonato.codCampeonato', '=', $codcampeonato)->get();
     return View::make('user_com_organizing.campeonato.detail')->with('campeonato', $campeonato)->with('Actividades', $Actividades)->with('equipos', $equipos)->with('configuracion', $configuracion)->with('todoReunion', $todoReunion);
 }