<%= t("bus_booking.bus_route") %> | <%= t("bus_booking.capacity") + "/" + t("bus_booking.reserved") %> | <%= t("bus_booking.actions") %> | <%= t("bus_booking.posted_by") %> | <% @buses.each do |bus| %>
---|---|---|---|
<%= bus.departure_time.strftime("%Y/%m/%d (%H:%M)") %> - <%= bus.bus_route %>
<%= bus.remark.html_safe %>
|
<%= bus.capacity %> / <%= bus.bookings.count %> | <% if current_user.is_admin? %> <%= t("bus_booking.details") %> <%= t(:edit) %> <%= t("bus_booking.duplicate") %> <%= t("bus_booking.delete_route") %> <% end %> <% if bus.can_reserve? %> <%= t("bus_booking.reserve") %> <% end %> | <%= bus.posted_by %> |