{% extends 'admin/base.html.twig' %} {% block title %}Mon compte{% endblock %} {% block body %}

Mon compte

Gérez vos informations personnelles et votre abonnement

{% if success %} {% endif %} {% if stripeError %} {% endif %}
{{ user.email|slice(0, 2)|upper }}

{{ user.firstname | capitalize }} {{ user.lastname | upper }}

{{ user.email }}

{% if site and site.product %}
{{ site.product.name }}
{% endif %}
Informations
{% if site %}
{{ site.name }}
{% endif %} {% if user %}
{{ user.email }}
{% endif %} {% if site %}
{% if site.domainActif and site.domain %} {{ site.domain }} {% else %} {{ site.internalName }} {% endif %}
{% endif %}
{% if invoiceUpcoming is not null and customer is not null %}
Mon abonnement
Prochain prélèvement : {{ invoiceUpcoming.next_payment_attempt|date("d/m/Y") }}
Offre : {{ site.product ? site.product.name : 'N/A' }} ({{ invoiceUpcoming.period_start|date("d/m/Y") }} - {{ invoiceUpcoming.period_end|date("d/m/Y") }}) - Montant : {{ (invoiceUpcoming.amount_due / 100) | number_format(2,',',' ') }} € TTC
Moyens de paiement
{% if cards is not null and cards|length > 0 %} {% for card in cards %} {% endfor %} {% else %} {% endif %}
Type Statut Titulaire Carte Expiration Actions
{% if card.brand == 'Visa' %} VISA {% elseif card.brand == 'MasterCard' %} {% else %} {{ card.brand }} {% endif %} {% if customer.default_source is not null and customer.default_source.id == card.id %} Par défaut {% endif %} {{ card.name }} **** {{ card.last4 }} {{ card.exp_month }}/{{ card.exp_year }}
{% if customer.default_source is null or customer.default_source.id != card.id %} {% endif %}
Aucune carte enregistrée
{% endif %}
Informations de facturation
{{ form_start(form, {'attr': {'id': 'billing-form'}}) }}
{{ form_widget(form.societyName, {'attr':{'class':'form-control'}}) }}
{{ form_widget(form.address1, {'attr':{'class':'form-control'}}) }}
{{ form_widget(form.address2, {'attr':{'class':'form-control'}}) }}
{{ form_widget(form.postalCode, {'attr':{'class':'form-control'}}) }}
{{ form_widget(form.city, {'attr':{'class':'form-control'}}) }}
{{ form_end(form) }}
{% endblock %}