<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="186"
     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/39/rounds/176">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/39/rounds/181">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/39/rounds/182">Round 3</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/39/rounds/183">Round 4</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/39/rounds/184">Round 5</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/39/rounds/185">Round 6</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/39/rounds/186">Round 7</a>
    </div>

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


    
<div id="match_628" 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="222"
                  data-action="click->matchup-swap#selectPlayer">
              Kyle (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="226"
                  data-action="click->matchup-swap#selectPlayer">
              Edher (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="233"
                  data-action="click->matchup-swap#selectPlayer">
              Will (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="221"
                  data-action="click->matchup-swap#selectPlayer">
              Martin (4.00)
            </span>
        </div>
      </div>
    </div>

    <!-- Winner Buttons -->
      <div class="flex gap-4 mt-6">
        <form class="button_to" method="post" action="/swiss/matches/628/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">
          Kyle + Edher Won
</button><input type="hidden" name="authenticity_token" value="XgFj0WpUSjDTraMMZO0ChwEOcN92IQnGMBYglH4mzOQ6lw3nNB-7NQKbx_V65ebAh17ZiWOB9E-tgEuiykqwBg" autocomplete="off" /></form>
        <form class="button_to" method="post" action="/swiss/matches/628/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">
          Will + Martin Won
</button><input type="hidden" name="authenticity_token" value="cOqpScoOUxYE01KQ3pX41AAXB4geLqQ1KEjKTcwL0E0UfMd_lEWiE9XlNmnAnRyThkeu3guOWby13qF7eGesrw" autocomplete="off" /></form>      </div>
  </div>
</div>

    
<div id="match_629" 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="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="220"
                  data-action="click->matchup-swap#selectPlayer">
              Zac (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="219"
                  data-action="click->matchup-swap#selectPlayer">
              Don (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="224"
                  data-action="click->matchup-swap#selectPlayer">
              Jared (3.75)
            </span>
        </div>
      </div>
    </div>

    <!-- Winner Buttons -->
      <div class="flex gap-4 mt-6">
        <form class="button_to" method="post" action="/swiss/matches/629/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">
          Cristian + Zac Won
</button><input type="hidden" name="authenticity_token" value="EtIkbjZM7K8OaWoBtwheB5vsMx6wDftA8Kk2zuZZMh4i5ZuzRYUHapXJGm5SySnZNKdNxtOcq4mxlSOirAIA1Q" autocomplete="off" /></form>
        <form class="button_to" method="post" action="/swiss/matches/629/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 + Jared Won
</button><input type="hidden" name="authenticity_token" value="XaMxLWgOEE63wP1u2d3XZT4HL1XqyZEKLwEBoEiYP5ZtlI7wG8f7iyxgjQE8HKC7kUxRjYlYwcNuPRTMAsMNXQ" autocomplete="off" /></form>      </div>
  </div>
</div>

    
<div id="match_630" 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 3</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="258"
                  data-action="click->matchup-swap#selectPlayer">
              Diego (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="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="234"
                  data-action="click->matchup-swap#selectPlayer">
              Brett Fiber (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="254"
                  data-action="click->matchup-swap#selectPlayer">
              Mike D (3.50)
            </span>
        </div>
      </div>
    </div>

    <!-- Winner Buttons -->
      <div class="flex gap-4 mt-6">
        <form class="button_to" method="post" action="/swiss/matches/630/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">
          Diego + Nic Won
</button><input type="hidden" name="authenticity_token" value="wcbfPn1aS-7Trx8YVVE8zp6uvKhkYDPnhWi3P7TiQq7V_QqJFCYnwEZrSQqSuBtBZmwc98jAg7hn3LaPsqBcug" autocomplete="off" /></form>
        <form class="button_to" method="post" action="/swiss/matches/630/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">
          Brett Fiber + Mike D Won
</button><input type="hidden" name="authenticity_token" value="KpkJLiViUhAAygIU9GDwaH3LtMT-LHfWUPkDreI7mk4-otyZTB4-PpUOVAYzidfnhQkUm1KMx4myTQId5HmEWg" autocomplete="off" /></form>      </div>
  </div>
</div>

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