%= tag.div class: ['appointment-block', 'tooltip', appointment.status.to_s.parameterize] do %>
<%# Row 1: Avatar | Title %>
<%# Row 2: Time | Hours %>
<%= appointment.date.strftime('%I:%M %p') %>
<%= number_with_precision(appointment.estimated_hours.to_f, precision: 1) %>h
<%# Row 3: Details %>
<% if appointment.customer %>
<%= appointment.customer.name %>
<% if appointment.vehicle %>
<%= appointment.vehicle.name %>
<% end %>
<% end %>