{% extends 'base.html' %} {% load static %} {% block title %}Available Services{% endblock %} {% block content %}

Available Services

Current Balance

{{ current_balance }} credits

Subscription Credits

{% with balance_details=credit_account.get_balance_details %} {{ balance_details.subscription.amount }} credits {% endwith %}

Used first (priority consumption)

Pay-as-You-Go Credits

{% with balance_details=credit_account.get_balance_details %} {{ balance_details.pay_as_you_go.amount }} credits {% endwith %}

Used after subscription credits

{% if services %}
{% for service in services %}

{{ service.name }}

{{ service.credit_cost }} credits

{{ service.description }}

{% if service.user_usage_count > 0 %}

Used {{ service.user_usage_count }} time{{ service.user_usage_count|pluralize }}

{% endif %} {% with balance_details=credit_account.get_balance_details %} {% if service.credit_cost <= balance_details.total %}

Credit consumption: {% if service.credit_cost <= balance_details.subscription.amount %} Will use {{ service.credit_cost }} subscription credits {% elif balance_details.subscription.amount > 0 %} Will use {{ balance_details.subscription.amount }} subscription + remaining pay-as-you-go credits {% else %} Will use {{ service.credit_cost }} pay-as-you-go credits {% endif %}

{% endif %} {% endwith %}
{% if current_balance >= service.credit_cost %} Use Service {% else %} {% endif %}
{% endfor %}
{% else %}

No services available!

There are currently no services available for use. Please check back later or contact support.

{% endif %}

How Credit Priority Works

  • Priority System: Subscription credits are always consumed first
  • Fallback: Pay-as-you-go credits are used when subscription credits are insufficient
  • Expiration: Subscription credits expire monthly, pay-as-you-go credits never expire
  • Smart Usage: The system automatically chooses the best credit type for each service
{% if current_balance == 0 %}

No credits available!

You need credits to use services. Visit the Credits Dashboard to learn how to get credits.

{% endif %}

Tip: Services will show you exactly which credit types will be consumed before you use them!

{% endblock %}