% content_for :title, "Log #{@log.id}" %> <% content_for :breadcrumbs, govuk_breadcrumbs(breadcrumbs: { "Logs" => @log.lettings? ? lettings_logs_path : sales_logs_path, content_for(:title) => "", }) %>
<%= get_subsections_count(@log, :completed) %> of <%= get_subsections_count(@log, :all) %> sections completed.
<% next_incomplete_section = get_next_incomplete_section(@log) %>
<% if next_incomplete_section.present? %> Skip to next incomplete section: <%= next_incomplete_section.label %> <% end %>
<% elsif @log.status == "not_started" %>This log has not been started.
<% elsif @log.status == "completed" %><%= status_tag(@log.status) %>
You can <%= govuk_link_to "review and make changes to this log", "/lettings-logs/#{@log.id}/review" %> until 2nd June <%= @log.collection_start_year.present? ? @log.collection_start_year + 1 : "" %>.
<% end %> <%= render "tasklist" %>