The code to replace isn’t actually in a span
:
<div class="col-span-1 text-xl">
<% if concert.sold_out? %>
Sold out
<% else %>
<%= pluralize(concert.unsold_ticket_count, "Tickets") %>
Remaining
<% end %>