<% 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 %>

<% editable_collection_resource_years.each do |year| %>

Lettings <%= text_year_range_format(year) %>

<%= render partial: "collection_resource_summary_list", locals: { mandatory_resources: @mandatory_lettings_collection_resources_per_year[year], additional_resources: @additional_lettings_collection_resources_per_year[year] } %>

Sales <%= text_year_range_format(year) %>

<%= render partial: "collection_resource_summary_list", locals: { mandatory_resources: @mandatory_sales_collection_resources_per_year[year], additional_resources: @additional_sales_collection_resources_per_year[year] } %> <% end %>