<%= l(:label_no_past_appointments) %>
<% else %>| <%= l(:label_date) %> | <% unless @customer %><%= l(:label_customer) %> | <% end %><%= l(:label_vehicle) %> | <%= l(:label_appointment) %> | <%= l(:label_technician) %> | <%= l(:label_duration) %> | <%= l(:label_status) %> |
|---|---|---|---|---|---|---|
| <%= format_date(appointment.date) %> | <% unless @customer %><%= link_to appointment.customer, history_customer_appointments_path(customer_id: appointment.customer_id) if appointment.customer %> | <% end %><%= link_to appointment.vehicle if appointment.vehicle %> | <%= link_to appointment.subject, customer_appointment_path(appointment) %> | <%= link_to_user(appointment.user) if appointment.user %> | <%= appointment.duration %> <%= l(:label_days) %> | <%= appointment_status_badge(appointment) %> |