<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="255"
     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/events/5/sessions/51/rounds/252">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/events/5/sessions/51/rounds/253">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/events/5/sessions/51/rounds/254">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/events/5/sessions/51/rounds/255">Round 4</a>
    </div>

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

    <div class="bg-gray-200 rounded-xl p-4 text-center">
      <p class="text-gray-600 font-medium">
        Sitting out:
          
          <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="309"
                data-action="click->matchup-swap#selectPlayer">
            Krista
            <span class="text-gray-500">(3.50)</span>
          </span>
      </p>
    </div>

    
<div id="match_874" 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="226"
                  data-action="click->matchup-swap#selectPlayer">
              Edher (4.00)
            </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="312"
                  data-action="click->matchup-swap#selectPlayer">
              Justin (4.00)
            </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="221"
                  data-action="click->matchup-swap#selectPlayer">
              Martin (4.00)
            </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="223"
                  data-action="click->matchup-swap#selectPlayer">
              John (3.50)
            </span>
        </div>
      </div>
    </div>

    <!-- Winner Buttons -->
      <div class="flex gap-4 mt-6">
        <form class="button_to" method="post" action="/swiss/matches/874/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">
          Edher + Justin Won
</button><input type="hidden" name="authenticity_token" value="dGgarRo2vPPNrwN_L41twReBXv357hcANB1qnN7BqCspuJc-4RLOrzQVL56qTe92FlN7e9bTkS_ddy8d_oEjfQ" autocomplete="off" /></form>
        <form class="button_to" method="post" action="/swiss/matches/874/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">
          Martin + John Won
</button><input type="hidden" name="authenticity_token" value="yw4NilTTOjF5CwMTlBv3YwK-_f3d1Qq4AgZFnWwN6uuW3oAZr_dIbYCxL_IR23XUA2zYe_LojJfrbAAcTE1hvQ" autocomplete="off" /></form>      </div>
  </div>
</div>

    
<div id="match_875" 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="224"
                  data-action="click->matchup-swap#selectPlayer">
              Jared (3.75)
            </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="230"
                  data-action="click->matchup-swap#selectPlayer">
              Nic (2.75)
            </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="227"
                  data-action="click->matchup-swap#selectPlayer">
              Cristian (3.75)
            </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="313"
                  data-action="click->matchup-swap#selectPlayer">
              Diegi (3.25)
            </span>
        </div>
      </div>
    </div>

    <!-- Winner Buttons -->
      <div class="flex gap-4 mt-6">
        <form class="button_to" method="post" action="/swiss/matches/875/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">
          Jared + Nic Won
</button><input type="hidden" name="authenticity_token" value="BC0Qm6_wsv_qTiSLNCugTJBilgpFmfapWSzEaXnbQKc-Iv2SC0fLhS50vLPaqI_-yRLn0vAmHJVIPb_N488BXg" autocomplete="off" /></form>
        <form class="button_to" method="post" action="/swiss/matches/875/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">
          Cristian + Diegi Won
</button><input type="hidden" name="authenticity_token" value="-_YgxeSuVA50Fgi-QkP4m78YOjucKJmkaKfOc3mD-B3B-c3MQBktdLAskIaswNcp5mhL4ymXc5h5trXX45e55A" autocomplete="off" /></form>      </div>
  </div>
</div>

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