<% @tables.each do |table| %>
- <% if table.status == 'occupied' %>
-
-
- <%= table.name %>
+ <% if table.status == 'occupied' %>
<% if table.get_booking.nil? %>
-
billed
- <% else %>
-
new
+ <% if table.get_checkout_booking.nil? %>
+
+ <% else %>
+
+ <% end %>
+
+ <%= table.name %>
+
+
billed
+
+
+
+ <% else %>
+ <% if table.get_checkout_booking.nil? %>
+
+ <% else %>
+
+ <% end %>
+
+ <%= table.name %>
+
+ new
+
+
<% end %>
-
-
- <% else %>
-
-
- <%= table.name %>
-
-
- <% end %>
+ <% else %>
+
+
+ <%= table.name %>
+ new
+
+
+ <% end %>
<% end %>