<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="46"
     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-gray-100 text-gray-700 hover:bg-gray-200" 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-blue-600 text-white" 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="127"
                >
            Zac
            <span class="text-gray-500">(3.50)</span>
          </span>
          , 
          <span class=""
                data-player-id="129"
                >
            George
            <span class="text-gray-500">(3.50)</span>
          </span>
          , 
          <span class=""
                data-player-id="126"
                >
            Kyle
            <span class="text-gray-500">(3.50)</span>
          </span>
      </p>
    </div>

    
<div id="match_171" 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-gray-900">
        <div class="text-lg font-bold">
            
            <span class=""
                  data-player-id="124"
                  >
              Don (3.50)
            </span>
             + 
            <span class=""
                  data-player-id="130"
                  >
              Christian (3.50)
            </span>
        </div>
      </div>
      <div class="text-gray-400 text-sm my-2">vs</div>
      <div class="text-green-700">
        <div class="text-lg font-bold">
            
            <span class=""
                  data-player-id="125"
                  >
              Martin (3.50)
            </span>
             + 
            <span class=""
                  data-player-id="128"
                  >
              Brett (3.50)
            </span>
        </div>
      </div>
    </div>

    <!-- Winner Buttons -->
      <div class="text-center mt-4">
        <form class="button_to" method="post" action="/swiss/matches/171/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="nMbTdCWjnMk51GFGoc8sk-VHsKigWCWQiwke_UIOlUscE4mcCYldz3ce6tW9V1JDqksa-YJjdMXW70OAHtn6Eg" autocomplete="off" /></form>      </div>
  </div>
</div>

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