<turbo-stream action="replace" target="matches-container"><template>
<div id="matches-container" class="space-y-4"
     data-controller="matchup-swap"
     data-matchup-swap-swap-url-value="/swiss/matches/swap_players"
     data-matchup-swap-round-id-value="52"
     data-matchup-swap-enabled-value="true"
     data-action="click->matchup-swap#deselect">
    <div class="flex flex-wrap gap-2 pb-2 border-b border-gray-200">
        <a data-turbo-stream="true" class="px-3 py-1.5 text-sm font-medium rounded-lg transition-colors bg-gray-100 text-gray-700 hover:bg-gray-200" href="/swiss/sessions/12/rounds/49">Round 1</a>
        <a data-turbo-stream="true" class="px-3 py-1.5 text-sm font-medium rounded-lg transition-colors bg-gray-100 text-gray-700 hover:bg-gray-200" href="/swiss/sessions/12/rounds/50">Round 2</a>
        <a data-turbo-stream="true" class="px-3 py-1.5 text-sm font-medium rounded-lg transition-colors bg-gray-100 text-gray-700 hover:bg-gray-200" href="/swiss/sessions/12/rounds/51">Round 3</a>
        <a data-turbo-stream="true" class="px-3 py-1.5 text-sm font-medium rounded-lg transition-colors bg-blue-600 text-white" href="/swiss/sessions/12/rounds/52">Round 4</a>
    </div>

    <p class="text-sm text-gray-500 text-center">Tap two players' names to swap them</p>


    
<div id="match_186" class="match-card bg-white rounded-xl shadow-md overflow-hidden border-2 border-gray-200">
    <div class="px-4 py-2 bg-gray-100 border-b border-gray-200 flex justify-between items-center">
      <span class="text-sm font-medium text-gray-600">Court 1</span>
    </div>

  <div class="p-4">
    <!-- Teams Display -->
    <div class="text-center mb-4">
      <div class="text-gray-900">
        <div class="text-lg font-bold">
            
            <span class="cursor-pointer inline-block px-1 py-0.5 transition-all underline decoration-dotted decoration-gray-400 underline-offset-2"
                  data-player-id="137"
                  data-action="click->matchup-swap#selectPlayer">
              Wes (3.50)
            </span>
             + 
            <span class="cursor-pointer inline-block px-1 py-0.5 transition-all underline decoration-dotted decoration-gray-400 underline-offset-2"
                  data-player-id="134"
                  data-action="click->matchup-swap#selectPlayer">
              Kyle (3.50)
            </span>
        </div>
      </div>
      <div class="text-gray-400 text-sm my-2">vs</div>
      <div class="text-gray-900">
        <div class="text-lg font-bold">
            
            <span class="cursor-pointer inline-block px-1 py-0.5 transition-all underline decoration-dotted decoration-gray-400 underline-offset-2"
                  data-player-id="133"
                  data-action="click->matchup-swap#selectPlayer">
              frank (3.50)
            </span>
             + 
            <span class="cursor-pointer inline-block px-1 py-0.5 transition-all underline decoration-dotted decoration-gray-400 underline-offset-2"
                  data-player-id="131"
                  data-action="click->matchup-swap#selectPlayer">
              Alice (3.50)
            </span>
        </div>
      </div>
    </div>

    <!-- Winner Buttons -->
      <div class="flex gap-4 mt-6">
        <form class="button_to" method="post" action="/swiss/matches/186/record_winner?team=team1"><button class="winner-button flex-1 py-5 px-4 bg-blue-600 hover:bg-blue-700 active:scale-95 text-white font-bold rounded-xl transition-all text-lg shadow-md" type="submit">
          Wes + Kyle Won
</button><input type="hidden" name="authenticity_token" value="KWfBe8qO3KZbYCJQpfsrVP6GcRbDYLKkEMEOXZJ0fUu2g2aSeicsUGM5rMiBcDXC6DydCEUqz5gRMmZlPkCWHA" autocomplete="off" /></form>
        <form class="button_to" method="post" action="/swiss/matches/186/record_winner?team=team2"><button class="winner-button flex-1 py-5 px-4 bg-blue-600 hover:bg-blue-700 active:scale-95 text-white font-bold rounded-xl transition-all text-lg shadow-md" type="submit">
          frank + Alice Won
</button><input type="hidden" name="authenticity_token" value="W0J-ZjxBNnDXV_UdueSc6vNL6hC4kt-WkOI6olQlhqTEptmPjOjGhu8Oe4Wdb4J85fEGDj7YoqqREVKa-BFt8w" autocomplete="off" /></form>      </div>
  </div>
</div>

    
<div id="match_187" class="match-card bg-white rounded-xl shadow-md overflow-hidden border-2 border-gray-200">
    <div class="px-4 py-2 bg-gray-100 border-b border-gray-200 flex justify-between items-center">
      <span class="text-sm font-medium text-gray-600">Court 2</span>
    </div>

  <div class="p-4">
    <!-- Teams Display -->
    <div class="text-center mb-4">
      <div class="text-gray-900">
        <div class="text-lg font-bold">
            
            <span class="cursor-pointer inline-block px-1 py-0.5 transition-all underline decoration-dotted decoration-gray-400 underline-offset-2"
                  data-player-id="138"
                  data-action="click->matchup-swap#selectPlayer">
              dummy (3.50)
            </span>
             + 
            <span class="cursor-pointer inline-block px-1 py-0.5 transition-all underline decoration-dotted decoration-gray-400 underline-offset-2"
                  data-player-id="136"
                  data-action="click->matchup-swap#selectPlayer">
              Martin (3.50)
            </span>
        </div>
      </div>
      <div class="text-gray-400 text-sm my-2">vs</div>
      <div class="text-gray-900">
        <div class="text-lg font-bold">
            
            <span class="cursor-pointer inline-block px-1 py-0.5 transition-all underline decoration-dotted decoration-gray-400 underline-offset-2"
                  data-player-id="135"
                  data-action="click->matchup-swap#selectPlayer">
              Don (3.50)
            </span>
             + 
            <span class="cursor-pointer inline-block px-1 py-0.5 transition-all underline decoration-dotted decoration-gray-400 underline-offset-2"
                  data-player-id="132"
                  data-action="click->matchup-swap#selectPlayer">
              Bob (3.50)
            </span>
        </div>
      </div>
    </div>

    <!-- Winner Buttons -->
      <div class="flex gap-4 mt-6">
        <form class="button_to" method="post" action="/swiss/matches/187/record_winner?team=team1"><button class="winner-button flex-1 py-5 px-4 bg-blue-600 hover:bg-blue-700 active:scale-95 text-white font-bold rounded-xl transition-all text-lg shadow-md" type="submit">
          dummy + Martin Won
</button><input type="hidden" name="authenticity_token" value="wIGnlCr9a8qWYoC2emgbe2RMMLFzA39z1ATgBwlhkummiMwFO7AdrSMDC2qWJac3GZyeb-eEmKNbQ5_x32EMjw" autocomplete="off" /></form>
        <form class="button_to" method="post" action="/swiss/matches/187/record_winner?team=team2"><button class="winner-button flex-1 py-5 px-4 bg-blue-600 hover:bg-blue-700 active:scale-95 text-white font-bold rounded-xl transition-all text-lg shadow-md" type="submit">
          Don + Bob Won
</button><input type="hidden" name="authenticity_token" value="3ow4R_NfBAjsGK_g2pIx2usqeENwKiMJrmQyPOEinau4hVPW4hJyb1l5JDw2342WlvrWneStxNkhI03KNyIDzQ" autocomplete="off" /></form>      </div>
  </div>
</div>

</div>
</template></turbo-stream>