{% extends "base.html" %} {% block title %}Dashboard - {{ project_name }}{% endblock %} {% block content %}

My Dashboard

Welcome back, {{ user.email }}

Credits

Your current balance

{{ current_balance }} credits
{% if balance_breakdown %}

Balance Breakdown:

{{ balance_breakdown.subscription }}

Subscription

{{ balance_breakdown.pay_as_you_go }}

Pay-as-you-go

{% endif %} {% if recent_transactions %}

Recent Activity:

{% for transaction in recent_transactions %}
{{ transaction.description }}
{% if transaction.amount >= 0 %}+{% endif %}{{ transaction.amount }}
{% endfor %}
{% else %}

No credit transactions yet.

{% endif %}

Subscription

Monthly plan status

{% if subscription and subscription.is_active %} Active {% else %} No Subscription {% endif %}
{% if subscription and subscription.is_active %}
{% with stripe_product=subscription.get_stripe_product %} {% if stripe_product %}

Plan: {{ stripe_product.name }}

Monthly Credits: {{ stripe_product.credit_amount }} credits

Price: ${{ stripe_product.price }}/month

{% else %}

Plan: Active subscription

{% endif %} {% endwith %} {% if subscription.days_until_renewal is not None %} {% if subscription.days_until_renewal > 0 %}

Next Billing: {{ subscription.days_until_renewal }} days

{% elif subscription.days_until_renewal == 0 %}

Next Billing: Today

{% else %}

Status: Billing period expired

{% endif %} {% endif %} {% if subscription.cancel_at_period_end %}

Canceling: Ends {{ subscription.current_period_end|date:"M d" }}

{% endif %}
{% else %}

No active subscription. Subscribe to get monthly credits automatically.

  • Better value than pay-as-you-go
  • Automatic monthly credits
  • Cancel anytime
{% endif %}

Account

Manage your profile

  • Update profile information
  • Change password
  • Email preferences
{% if stripe_enabled %}

Services

Available features

  • AI-powered tools
  • Data processing
  • Premium features
Coming Soon

Billing

Payment history

  • View payment history
  • Download receipts
  • Track transactions
{% endif %}
{% endblock %}