<% content_for :title, "Log #{@lettings_log.id}" %> <% content_for :breadcrumbs, govuk_breadcrumbs(breadcrumbs: { "Logs" => "/logs", content_for(:title) => "", }) %>

<%= content_for(:title) %>

<% if @lettings_log.status == "in_progress" %>

<%= get_subsections_count(@lettings_log, :completed) %> of <%= get_subsections_count(@lettings_log, :all) %> sections completed.

<% next_incomplete_section = get_next_incomplete_section(@lettings_log) %>

<% if next_incomplete_section.present? %> Skip to next incomplete section: <%= next_incomplete_section.label %> <% end %>

<% elsif @lettings_log.status == "not_started" %>

This log has not been started.

<% elsif @lettings_log.status == "completed" %>

<%= status_tag(@lettings_log.status) %>

You can <%= govuk_link_to "review and make changes to this log", "/logs/#{@lettings_log.id}/review" %> until 2nd June <%= @lettings_log.collection_start_year.present? ? @lettings_log.collection_start_year + 1 : "" %>.

<% end %> <%= render "tasklist" %>