{% extends 'base.html.twig' %} {% block title %}Choisissez votre offre — Bubul{% endblock %} {% block show_sidebar %}false{% endblock %} {% block meta_robots %}noindex, nofollow{% endblock %} {% block body %} {%- set isActiveStripe = subscription and subscription.isActive() and subscription.stripeSubscriptionId %} {%- set isCanceledButActive = subscription and subscription.status == 'canceled' and subscription.plan and not subscription.plan.isFree() and (not subscription.accessUntil or subscription.accessUntil > date()) %} {%- set isPastDue = subscription and subscription.status == 'past_due' %} {%- set canChangePlan = (isActiveStripe or isCanceledButActive) and not subscription.isInAnnualCommitment() %}
{# Orbes décoratifs #}
{# Logo — absolu en haut #}
{% include '_atoms/logo/logo-with-text.html.twig' with { showBadge: false, size: 'lg' } only %}
{# Contenu principal #}
{# Heading #}

Choisissez votre offre

2 mois offerts avec l'engagement annuel.

{# Section plans #}
{% if isActiveStripe and subscription.isInAnnualCommitment() %}
{% include '_atoms/icon/icon.html.twig' with { name: 'lock', size: 'sm', color: 'default' } only %}

Modification impossible — engagement annuel jusqu'au {{ subscription.commitmentEnd ? subscription.commitmentEnd|date('d/m/Y') : '—' }}.

{% if subscription.isNearCommitmentEnd() %} {% include '_atoms/button/button.html.twig' with { label: 'Annuler le renouvellement', variant: 'ghost', size: 'sm', attr: { type: 'button', onclick: "openModal('modal-cancel')" } } only %} {% endif %}
{% endif %}
{% for plan in plans %} {% if not plan.isFree() and not plan.isCustomPrice() %} {% set isCurrentMonthly = (isActiveStripe or isCanceledButActive) and subscription.plan and subscription.plan.id == plan.id and subscription.billingCycle == 'monthly' %} {% set isCurrentAnnual = (isActiveStripe or isCanceledButActive) and subscription.plan and subscription.plan.id == plan.id and subscription.billingCycle == 'annual' %} {% set isCurrentPlan = isCurrentMonthly or isCurrentAnnual %}

{{ plan.name }}

{% if isCurrentPlan %} Actuel {% elseif plan.isRecommended() %} Populaire {% endif %}
{% if plan.tagline %}

{{ plan.tagline }}

{% endif %}

{{ plan.priceMonthly|number_format(0) }}€/mois

  • {{ plan.monthlyTokens|number_format(0, ',', ' ') }} tokens / mois
  • {% if plan.slug in ['pro', 'expert', 'enterprise'] %}
  • Scormia — modules SCORM
  • {% endif %} {% if plan.tokenStorageMonths > 0 %}
  • Cumulables {{ plan.tokenStorageMonths }} mois
  • {% endif %} {% if plan.hasPrioritySupport %}
  • Support prioritaire
  • {% endif %} {% if plan.hasDedicatedTraining %}
  • Formation & onboarding
  • {% endif %} {% if plan.hasSamAccess %}
  • SAM Analytics
  • {% endif %}
{# Bouton mensuel #}
{% if isCurrentMonthly %} {% elseif canChangePlan %}
{% else %}
{% endif %}
{# Bouton annuel #}
{% endif %} {% endfor %}
{# Action contextuelle sous la grille #}
{% if context == 'onboarding' %}
{% include '_atoms/button/button.html.twig' with { label: 'Continuer avec le plan gratuit', variant: 'ghost', size: 'md', type: 'submit' } only %}
{% else %} ← Mon abonnement {% endif %}
{% endblock %}