% title = "Collection resources" %>
<% content_for :title, title %>
<% content_for :before_content do %>
<%= govuk_back_link(href: :back) %>
<% end %>
<% if display_next_year_banner? %>
<%= govuk_notification_banner(title_text: "Important") do %>
The <%= text_year_range_format(next_collection_start_year) %> collection resources are not yet available to users.
<%= next_year_banner_text(@mandatory_lettings_collection_resources_per_year, @mandatory_sales_collection_resources_per_year) %>
<% end %>
<% end %>
<%= title %>
<% @mandatory_lettings_collection_resources_per_year.each do |year, mandatory_resources| %>
Lettings <%= text_year_range_format(year) %>
<%= render partial: "collection_resource_summary_list", locals: { mandatory_resources:, additional_resources: @additional_lettings_collection_resources_per_year[year] } %>
<% end %>
<% @mandatory_sales_collection_resources_per_year.each do |year, mandatory_resources| %>
Sales <%= text_year_range_format(year) %>
<%= render partial: "collection_resource_summary_list", locals: { mandatory_resources:, additional_resources: @additional_sales_collection_resources_per_year[year] } %>
<% end %>