<% content_for :title do %> Mailroom <% end %>

📮 The Mailroom

Track your physical mail and rewards

<% if @has_mailing_address %>

Address Verified

Your mailing address is set up and ready to receive mail!

<%= link_to my_mailing_address_path, class: "text-cyan hover:text-blue underline font-semibold" do %> View my mailing address <% end %>
<% else %>
Emergency Light

No Address Added!

You need to add your mailing address to receive physical mail and rewards.

<%= link_to "Add my address", edit_my_mailing_address_path, class: "bg-primary hover:bg-red text-white px-6 py-3 rounded-lg font-semibold transition-colors inline-block" %>
<% end %>

📦 My Mail

<% if @physical_mails.any? %>
<% @physical_mails.each do |mail| %> <% theseus_link = mail.link_to_theseus %>
<% if theseus_link %> <% end %>

<%= mail.humanized_mission_type %> <% if theseus_link %> ↗ <% end %>

<%= mail.status.titleize %>
📅 Created: <%= mail.created_at.strftime("%B %d, %Y") %>
<% if theseus_link %> <% end %>
<% end %>
<% else %>
📪

No mail yet

Keep coding to earn rewards and get mail!

<% end %>