<h2>The appointment was changed by an agent</h2>

<%= p do %>
  Reference number:
  <br>
  <strong class="emphasize">
    <%= @appointment.reference %>
  </strong>
<% end %>

<%= p do %>
  The following details were changed:
<% end %>

<ul>
  <% @appointment.audits.last.audited_changes.keys.map(&:humanize).each do |key| %>
    <li><%= key %></li>
  <% end %>
</ul>

<%= h2 do %>
  The appointment was changed by an agent
<% end %>

<%= p do %>
  Reference number:
  <br>
  <strong class="emphasize">
    <%= @appointment.reference %>
  </strong>
<% end %>

<%= p do %>
  The following details were changed:
<% end %>

<%= ul do %>
  <% @appointment.audits.last.audited_changes.keys.map(&:humanize).each do |key| %>
    <li><%= key %></li>
  <% end %>
<% end %>

Update booking manager appointment change email
Update booking manager appointment change email
