<%= l(:label_customer, default: 'Customer') %>:
<%= link_to_if @appointment.customer, @appointment.customer&.name, @appointment.customer %>
<%= l(:label_vehicle, default: 'Vehicle') %>:
<%= link_to_if @appointment.vehicle, @appointment.vehicle&.name, @appointment.vehicle %>
<%= l(:label_primary_phone, default: 'Primary phone') %>:
<%= @appointment.customer&.primary_phone %>
<%= l(:label_estimate) %>:
<% if @appointment.estimate %>
<%= link_to @appointment.estimate, @appointment.estimate, target: "_blank" %>
<% end %>
<%= l(:field_status) %>:
<%= @appointment.status.to_s.humanize %>
<%= l(:label_time, default: 'Time') %>:
<%= @appointment.date ? @appointment.date.strftime('%I:%M %p') : '-' %>
<%= l(:field_user) %>:
<%= link_to_user(@appointment.user) %>
<%= l(:label_duration, default: 'Duration') %>:
<%= @appointment.duration %> <%= l(:label_days) %>
<%= l(:field_estimated_hours) %>:
<%= @appointment.estimated_hours %> <%= l(:label_hours) %>