<% @tables.each do |table| %> <% if table.status == 'occupied' %>
<%= table.name %>
<% else %>
<%= table.name %>
<% end %> <% end %>
<% @rooms.each do |room| %> <% if room.status == 'occupied' %>
<%= room.name %>
<% else %>
<%= room.name %>
<% end %> <% end %>