{% from "components/table.html" import list_table, field, right_aligned_field_heading, row_heading %}

<div class="ajax-block-container">
  {% if current_service.scheduled_job_stats.count %}
    <h2 class="font-body-lg margin-y-0">
      In the next few days
    </h2>
    <a class="usa-link banner-dashboard margin-bottom-2 display-block" href="{{ url_for('.uploads', service_id=current_service.id) }}">
      <span class="banner-dashboard-count">
        {{ current_service.scheduled_job_stats.count }}
      </span>
      <span class="banner-dashboard-count-label">
        {% if current_service.scheduled_job_stats.count == 1 %}
          file waiting to send
        {% else %}
          files waiting to send
        {% endif %}
      </span>
      <span class="banner-dashboard-meta">
        - sending starts
        {{ current_service.scheduled_job_stats.soonest_scheduled_for|format_datetime_relative }}
      </span>
    </a>
  {% endif %}
</div>
