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

<%= content_for(:title) %>

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

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

<% next_incomplete_section = get_next_incomplete_section(@case_log) %>

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

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

This log has not been started.

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