{{ __('License Statistics') }}

{{ stats.total }} {{ __('Total Licenses') }}
{{ stats.by_status.active }} {{ __('Active') }}
{{ stats.by_status.inactive }} {{ __('Inactive') }}
{{ stats.by_status.expired }} {{ __('Expired') }}
{{ stats.by_status.revoked }} {{ __('Revoked') }}
{% if stats.expiring_soon > 0 %}

{{ __('Attention:') }} {{ stats.expiring_soon }} {{ stats.expiring_soon == 1 ? __('license is') : __('licenses are') }} {{ __('expiring within the next 30 days.') }} {{ __('View Licenses') }}

{% endif %}

{{ __('License Types') }}

{{ __('Lifetime Licenses') }} {{ stats.lifetime }}
{{ __('Time-limited Licenses') }} {{ stats.expiring }}
{{ __('Expiring Soon (30 days)') }} {{ stats.expiring_soon }}

{{ __('Top Products by Licenses') }}

{% if stats.by_product is empty %}

{{ __('No license data available yet.') }}

{% else %} {% for product in stats.by_product %} {% endfor %}
{{ __('Product') }} {{ __('Licenses') }}
{{ esc_html(product.product_name) }} {{ product.count }}
{% endif %}

{{ __('Top Domains') }}

{% if stats.top_domains is empty %}

{{ __('No license data available yet.') }}

{% else %} {% for domain in stats.top_domains %} {% endfor %}
{{ __('Domain') }} {{ __('Licenses') }}
{{ esc_html(domain.domain) }} {{ domain.count }}
{% endif %}

{{ __('Licenses Created (Last 12 Months)') }}

{% if stats.monthly is empty %}

{{ __('No license data available yet.') }}

{% else %}
{% set max_value = 1 %} {% for count in stats.monthly %} {% if count > max_value %} {% set max_value = count %} {% endif %} {% endfor %} {% for month, count in stats.monthly %}
{{ count }}
{{ month|date('M Y') }}
{% endfor %}
{% endif %}

{{ __('Quick Actions') }}

{{ __('REST API Endpoints') }}

{{ __('The following REST API endpoints are available for retrieving license statistics:') }}

{{ __('Endpoint') }} {{ __('Description') }}
GET {{ rest_url }}stats {{ __('Get license statistics with time-series data') }}
GET {{ rest_url }}products {{ __('Get license counts by product') }}