<% if (course_type == 'live') { %>
<%
var seatsRemaining = parseInt(capacity) - parseInt(students_enrolled);
%>
<% if (course_pk == 1016 && seatsRemaining > 0) { %>
<% } else if (seatsRemaining > 0) { %>
<%= seatsRemaining %> Seats Remaining
<% } else { %>
Sold Out
<% } %>
<% } %>