<%= render 'notifications_mailer/shared/hello', recipient: @recipient %> <% if @attached_object.class.name == AccountingPeriod.name %>

<%= t('.body.warning_last_closed_period_over_1_year', LAST_END: @attached_object.end_at) %>

<% else %>

<%= t('.body.warning_no_closed_periods', FIRST_DATE: @attached_object.created_at.to_date) %>

<% end %>