<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="44"
     data-matchup-swap-enabled-value="false"
     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-blue-600 text-white" href="/swiss/sessions/11/rounds/44">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/11/rounds/45">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/11/rounds/46">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/sessions/11/rounds/47">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/sessions/11/rounds/48">Round 5</a>
    </div>


    <div class="bg-gray-200 rounded-xl p-4 text-center">
      <p class="text-gray-600 font-medium">
        Sitting out:
          
          <span class=""
                data-player-id="128"
                >
            Brett
            <span class="text-gray-500">(3.50)</span>
          </span>
          , 
          <span class=""
                data-player-id="125"
                >
            Martin
            <span class="text-gray-500">(3.50)</span>
          </span>
          , 
          <span class=""
                data-player-id="130"
                >
            Christian
            <span class="text-gray-500">(3.50)</span>
          </span>
      </p>
    </div>

    
<div id="match_163" class="match-card bg-white rounded-xl shadow-md overflow-hidden border-2 border-green-500 bg-green-50">
    <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>
        <span class="text-xs font-bold text-green-600 uppercase">Done</span>
    </div>

  <div class="p-4">
    <!-- Teams Display -->
    <div class="text-center mb-4">
      <div class="text-green-700">
        <div class="text-lg font-bold">
            
            <span class=""
                  data-player-id="124"
                  >
              Don (3.50)
            </span>
             + 
            <span class=""
                  data-player-id="129"
                  >
              George (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=""
                  data-player-id="126"
                  >
              Kyle (3.50)
            </span>
             + 
            <span class=""
                  data-player-id="127"
                  >
              Zac (3.50)
            </span>
        </div>
      </div>
    </div>

    <!-- Winner Buttons -->
      <div class="text-center mt-4">
        <form class="button_to" method="post" action="/swiss/matches/163/undo_winner"><button class="inline-flex items-center gap-2 py-3 px-6 bg-gray-100 hover:bg-gray-200 active:scale-95 text-gray-700 font-medium rounded-lg transition-all min-h-[44px]" type="submit">
          <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
            <path fill-rule="evenodd" d="M7.707 3.293a1 1 0 010 1.414L5.414 7H11a7 7 0 017 7v2a1 1 0 11-2 0v-2a5 5 0 00-5-5H5.414l2.293 2.293a1 1 0 11-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z" clip-rule="evenodd" />
          </svg>
          Undo Result
</button><input type="hidden" name="authenticity_token" value="vWZ4Iyyn5AJ91N22s6tMKyfQRQoemIXiDF1P9iiUBxSHCgu3zc6zc9K_IXv2Xa3LnTZfgSb1XusGx-A0BLlq1w" autocomplete="off" /></form>      </div>
  </div>
</div>

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