<%= if get_flash(@conn, :success) do %> <% end %>

Goals for <%= @site.domain %>

<%= if Enum.count(@goals) > 0 do %> <%= for goal <- @goals do %>
<%= goal_name(goal) %> <%= button("❌", to: "/#{@site.domain}/goals/#{goal.id}", method: :delete, class: "text-sm", data: [confirm: "Are you sure you want to remove goal #{goal_name(goal)}? This will just affect the UI, all of your analytics data will stay intact."]) %>
<% end %> <% else %>
No goals configured for this site yet
<% end %>
<%= link("+ Add goal", to: "/#{@site.domain}/goals/new", class: "button mt-4 w-full") %>