<%= render 'notifications_mailer/shared/hello', recipient: @recipient %>

<p><%= t('.body.plan_subscribed_html', PLAN: @attached_object.plan.human_readable_name) %></p>

<% if @attached_object.plan.is_rolling && @recipient.trainings.count.zero? %>
  <% duration = I18n.t("duration.#{@attached_object.plan.interval}", count: @attached_object.plan.interval_count) %>
  <p><%= t('.body.rolling_subscription_stops_on', DURATION: duration, DATE: I18n.l(@attached_object.expired_at.to_date)) %><br/></p>
<% else %>
  <p><%= t('.body.subscription_stops_on', DATE: I18n.l(@attached_object.expired_at.to_date)) %><br/></p>
<% end %>
