{% extends "base.html" %} {% block title %}py-phone-caller {{ _('Managed SMS') }}{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{% if search_query %} {% endif %}
{% if paginated_data %} {% for key in paginated_data %}{% set row = table_data[key] %} {% endfor %} {% else %} {% endif %}
{{ _('Element') }} {% if sort_by == 'element' %} {% endif %} {{ _('Id') }} {{ _('Recipient Phone') }} {% if sort_by == 'phone' %} {% endif %} {{ _('Message') }} {{ _('Carrier') }} {% if sort_by == 'carrier' %} {% endif %} {{ _('Status') }} {% if sort_by == 'status' %} {% endif %} {{ _('Created At') }} {% if sort_by == 'created_at' %} {% endif %} {{ _('Error / Notes') }} {{ _('Actions') }}
{{ key + 1 }} {{ row.id|string|truncate(12, True, '...') }} {{ row.phone }} {{ row.message }} {{ row.carrier or 'default' }} {% if row.status == 'sent' %} {{ _('Sent') }} {% elif row.status == 'queued' or row.status == 'processing' %} {{ row.status|capitalize }} {% elif row.status == 'failed' %} {{ _('Failed') }} {% elif row.status == 'duplicate_ignored' %} {{ _('Duplicate Ignored') }} {% else %} {{ row.status or 'Unknown' }} {% endif %} {% if row.created_at %} {{ row.created_at.strftime('%Y-%m-%d %H:%M:%S') }} {% else %} {{ _('No Data') }} {% endif %} {% if row.error %} {{ row.error }} {% else %} - {% endif %}
{{ _('No SMS records found') }}

{% if search_query %}{{ _('Try clearing your search query') }}{% else %}{{ _('Sent SMS records will appear here') }}{% endif %}

{% if total_pages > 1 %} {% endif %}
{% endblock %} {% block extra_js %} {% endblock %}