<table class="table table-hover text-center daily-school-statistic-list-table">
  <thead class="thead-light">
  <tr>
    <th width="20%">序号</th>
    <th width="40%">日期</th>
    <th width="40%"><%= sort_tag(@title, name: 'count', path: admins_multiple_school_reports_path) %></th>
  </tr>
  </thead>
  <tbody>
  <% if data.present? %>
    <% data.each_with_index do |d, index| %>
      <tr>
        <td><%= list_index_no(@params_page.to_i, index) %></td>
        <td><%= d['date'] %></td>
        <td><%= d['count'] %></td>
      </tr>
    <% end %>
  <% else %>
    <%= render 'admins/shared/no_data_for_table' %>
  <% end %>
  </tbody>
</table>

<%= data ? (render partial: 'admins/shared/paginate', locals: { objects: data }) : ''%>