<%= t(:label_details) %>:

<%= t(:field_customer) %> <%= vehicle.customer ? link_to(vehicle.customer.name, customer_path(vehicle.customer)) : t(:no_customer) %>
<%= t(:field_vehicle) %> <%= vehicle.to_s %>
<%= t(:field_vin) %>
<%= @vin[0] if @vin %><%= @vin[1] if @vin %>
<%= t(:label_trim) %> <%= vehicle.doors %> <%= t(:label_door) if vehicle.doors? %> <%= vehicle.trim %>

<%= t(:field_notes) %>:

<%= t(:field_notes) %>:
<% if vehicle.notes.present? %>
<%= textilizable(vehicle, :notes) %>
<% end %>
<% mileage = vehicle.last_service_mileage %> <% if mileage %>

<%= t(:label_last_service) %> <%= vehicle.last_service_date %> at <%= mileage %> <%= t(:label_miles) %>

<% end %>
<%= button_to t(:label_edit), edit_vehicle_path(vehicle), method: :get %> <%= button_to t(:label_delete), vehicle, method: :delete, data: { confirm: t(:warn_ru_sure) } %>