public function destroy($id)
 {
     $fecha = Fecha::findOrFail($id);
     if ($fecha) {
         $fecha->delete();
         flash()->warning('Fecha borrada exitosamente');
         return redirect('fechas');
     }
     return redirect('fechas')->with('message', 'Fecha no encontrada');
 }
 public function create($fecha_id)
 {
     $fecha = Fecha::findOrFail($fecha_id)->with('fase.torneo.equiposParticipantes', 'fase.tipoFase')->where('fec_id', $fecha_id)->first();
     return view('partidos.create', compact('fecha'));
 }
 public function fechaPartidosRegistrados($id)
 {
     $fecha = Fecha::findOrFail($id);
     return $fecha->partidos->toJson();
 }