<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="120"
     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/1/sessions/29/rounds/118">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/1/sessions/29/rounds/119">Round 2</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/1/sessions/29/rounds/120">Round 3</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="168"
                data-action="click->matchup-swap#selectPlayer">
            Don
            <span class="text-gray-500">(4.25)</span>
          </span>
      </p>
    </div>

    
<div id="match_400" 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="169"
                  data-action="click->matchup-swap#selectPlayer">
              Martin (4.25)
            </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="172"
                  data-action="click->matchup-swap#selectPlayer">
              Zac (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="177"
                  data-action="click->matchup-swap#selectPlayer">
              Justin (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="171"
                  data-action="click->matchup-swap#selectPlayer">
              Bryan (3.75)
            </span>
        </div>
      </div>
    </div>

    <!-- Winner Buttons -->
      <div class="flex gap-4 mt-6">
        <form class="button_to" method="post" action="/swiss/matches/400/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">
          Martin + Zac Won
</button><input type="hidden" name="authenticity_token" value="fS1umwLTduwUHxuGgKJMunpaW2yGMKjx6HA6lLDlugaJhvFTj63aF83cvxZZD4lOs4Plm7IwD49XfqDjKZvMYQ" autocomplete="off" /></form>
        <form class="button_to" method="post" action="/swiss/matches/400/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">
          Justin + Bryan Won
</button><input type="hidden" name="authenticity_token" value="VPvl_D-dPejtrDOzIvSJSGWm1sdpQz8y8_eca_jXoFygUHo0suOREzRvlyP7WUy8rH9oMF1DmExM-QYcYanWOw" autocomplete="off" /></form>      </div>
  </div>
</div>

    
<div id="match_401" 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="189"
                  data-action="click->matchup-swap#selectPlayer">
              test (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="180"
                  data-action="click->matchup-swap#selectPlayer">
              Mike (3.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="170"
                  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="175"
                  data-action="click->matchup-swap#selectPlayer">
              Todd (3.50)
            </span>
        </div>
      </div>
    </div>

    <!-- Winner Buttons -->
      <div class="flex gap-4 mt-6">
        <form class="button_to" method="post" action="/swiss/matches/401/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">
          test + Mike Won
</button><input type="hidden" name="authenticity_token" value="jEWCHHT-D66ZhEUf-hqe9SdMqPrr-sjRUkwIKcOMMuep3-iDNDfAGquT3mh0gcD4GhNkWqqNmie4UIm9Whwu9w" autocomplete="off" /></form>
        <form class="button_to" method="post" action="/swiss/matches/401/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">
          Wes + Todd Won
</button><input type="hidden" name="authenticity_token" value="0MIEDKNDAXxlWgz76u6t6YkxhG3h2q-Vpr9jMbiZ6vH1WG6T44rOyFdNl4xkdfPktG5IzaCt_WNMo-KlIQn24Q" autocomplete="off" /></form>      </div>
  </div>
</div>

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