% object.trainer_observations.to_s.split("|").each_with_index do |note, idx| %>
<% date_note = note.split("~") %>
<%= object.trainer.short_name %>
<%= I18n.localize(date_note[1].nil? ? object.init : date_note[0].to_date, format: '%d %b %Y').titleize %>
<%= image_tag "https://ntsclinic.com#{object.trainer.avatar.thumb.url}", width: 60, class: "direct-chat-img" %>
<% if idx == 0 %>
<%= note.html_safe %>
<% else %>
<%= date_note[1].html_safe %>
<% end %>
<% end %>