<% provide :page_title, "#{t('.title')}" %> <% provide :page_header do %>

<%= t('.title') %> <%= link_to "#{t('.return_to_btn')}", admin_analytics_collection_reports_path, class: "btn btn-primary float-right" %>


<% end %>

<%= @document %>

<%= link_to "#{t('.view_collection_btn')}", collection_path(@document.id), class: "btn btn-secondary float-right" %>

<%= t('.created_by') %> <%= @document.depositor %> on <%= @document.create_date %>

<%= t('.collection_type') %> <%= @document.collection_type_gid %>

<%= t('.last_updated') %> <%= @document.modified_date.strftime("%B %d, %Y") %>

<%= t('.visibility') %> <%= @document.read_groups.join(",") %>


<% if params[:start_date] %>
<% else %>
<% end %> <%= render "summary" %>
<%= render "monthly_summary" %>
<% if params[:start_date] %>
<% else %>
<% end %> <%= render "hyrax/admin/analytics/date_range_form", redirect_path: hyrax.admin_analytics_collection_report_path(@document) %> <%= render "custom_range" %>
<% if @files&.any? %> <%= render "collection_files" %> <% end %>