{% extends 'layouts/authenticated.html.twig' %} {% block page_title %}Détails du SMS{% endblock %} {% block content %}
{# Header Section #}
Retour

Détails du SMS

SMS ID: {{ smsLog.id }}

{# SMS Details #}

Informations d'envoi

Destinataire (téléphone)
{{ smsLog.recipient }}
{% if smsLog.user %}
Utilisateur associé
{{ smsLog.user.fullName }} ({{ smsLog.user.email }})
{% endif %}
Type de SMS
{% if smsLog.smsType == 'flash' %} Flash {% else %} Normal {% endif %}
Statut
{% if smsLog.statusId == 3 %} {{ smsLog.statusLabel }} {% elseif smsLog.statusId == 1 %} {{ smsLog.statusLabel }} {% elseif smsLog.statusId == 2 %} {{ smsLog.statusLabel }} {% elseif smsLog.statusId == 4 %} {{ smsLog.statusLabel }} {% elseif smsLog.statusId == 5 %} {{ smsLog.statusLabel }} {% else %} {{ smsLog.statusLabel }} {% endif %}
Date d'envoi
{{ smsLog.createdAt|date('d/m/Y à H:i:s') }}
{% if smsLog.updatedAt %}
Dernière mise à jour
{{ smsLog.updatedAt|date('d/m/Y à H:i:s') }}
{% endif %}
{# Configuration Used #}

Configuration utilisée

{% if smsLog.smsConfiguration %}
Nom de la configuration
{{ smsLog.smsConfiguration.name }}
Nom d'expéditeur
{{ smsLog.smsConfiguration.senderName }}
Endpoint API
{{ smsLog.smsConfiguration.apiEndpoint }}
{% else %}

Configuration non disponible

{% endif %}
{# Message Content #}

Contenu du message

{{ smsLog.message }}

{{ smsLog.message|length }} caractères
{% set smsCount = (smsLog.message|length / 160)|round(0, 'ceil') %} {{ smsCount }} SMS consommé(s)
{# Campaign Association #} {% if smsLog.campaign %}

Campagne associée

{{ smsLog.campaign.name }}

Créée le {{ smsLog.campaign.createdAt|date('d/m/Y à H:i') }} par {{ smsLog.campaign.createdBy.fullName }}

Voir la campagne
{% endif %} {# API Response (if available) #} {% if smsLog.apiResponse %}

Réponse complète de l'API

{{ smsLog.apiResponse|json_encode(constant('JSON_PRETTY_PRINT') b-or constant('JSON_UNESCAPED_UNICODE') b-or constant('JSON_UNESCAPED_SLASHES')) }}

Cette section contient la réponse complète de l'API SendText pour faciliter le debugging

{% endif %} {# Failure Reason (if failed) #} {% if smsLog.failureReason %}

Raison de l'échec

{{ smsLog.failureReason }}

{% endif %}
{% endblock %}