Expires in: <%= @event.expires_at ? time_ago_in_words(@event.expires_at) : 'never' %>

Payload:

<%= Utils.pretty_jsonify @event.payload || {} %>

<% if @event.lat && @event.lng %> <% content_for :head do -%> <%= javascript_include_tag "https://maps.googleapis.com/maps/api/js?key=#{@event.agent.options[:api_key]}" %> <%= javascript_include_tag "map_marker" %> <% end -%>

Lat: <%= @event.lat %>
Lng: <%= @event.lng %>

<% end %>
<%= link_to icon_tag('glyphicon-chevron-left') + ' Back'.html_safe, filtered_agent_return_link || events_path, class: "btn btn-default" %>