<div class="ajax-block">
  {% if current_service.inbound_sms_summary != None %}
    <a id="total-received" class="usa-link banner-dashboard" class="banner-dashboard" href="{{ url_for('.inbox', service_id=current_service.id) }}">
      <span class="banner-dashboard-count">
        {{ current_service.inbound_sms_summary.count|format_thousands }}
      </span>
      <span class="banner-dashboard-count-label">
        {{ current_service.inbound_sms_summary.count|message_count_label('sms', suffix='received') }}
      </span>
      {% if current_service.inbound_sms_summary.most_recent %}
        <span class="banner-dashboard-meta">
          latest message {{ current_service.inbound_sms_summary.most_recent | format_delta }}
        </span>
      {% endif %}
    </a>
  {% endif %}
</div>
