public function createDetalle($id, $grupo_id) { $materia = DB::select('select * from materias join grupo_materia on materias.id = grupo_materia.materia_id where grupo_id = ? and status = 1', [$grupo_id]); $maestro = Maestro::where('status', '=', 1)->get(); return View::make('registro-grupal-detalle.create', compact('materia', 'maestro', 'id')); }