{% extends 'stela_control/index.html' %} {% load i18n %} {% load static %} {% load humanize %} {% load crispy_forms_tags %} {% block side_title %} {% if call == "subs" %}

STELA {% trans "CONTROL DYNAMIC" %} | {% trans "Subscribers" %}

{% else %}

STELA {% trans "CONTROL DYNAMIC" %} | {% trans "Users Control" %}

{% endif %} {% endblock %} {% block title %} {% if userdata.is_superuser is True %}

{% trans "Superuser" %} # {{userdata.id}} {{userdata.username}}

{% else %}

{% trans "User" %} # {{userdata.id}} {{userdata.username}}

{% endif %} {% endblock %} {% block section_content %} {% if call == "subs" %}
{% trans "Last Login" %}: {{userdata.last_login|naturaltime}}

{% trans "Subscription Date" %}

{{userdata.created}}
    {% if userdata.is_basic %}
  • {% trans "Current Plan" %}: Stela Basic
  • {% elif userdata.is_business %}
  • {% trans "Current Plan" %}: Stela Business
  • {% endif %} {% if userdata.is_suspended %}
  • {% trans "Status" %}: {% trans "Suspended" %}
  • {% else %}
  • {% trans "Status" %}: {% trans "Active" %}
  • {% endif %} {% if last_pay %}
  • {% trans "Last Payment" %}: {{last_pay.created}}
  • {% else %}
  • {% trans "Last Payment" %}: {% trans "No recorded payments" %}
  • {% endif %} {% if total.purchase > 0 %}

    {% trans "Total Purchase" %}: ${{total.purchase}}

    {% else %}

    {% trans "Total Purchase" %}: {% trans "No Purchase Yet" %}

    {% endif %}

{% trans "Address" %}

{{userdata.address}}

{% trans "City" %}

{{userdata.city_profile}}

{% trans "Country" %}

{{userdata.country_profile}}

  • {% trans "Full Name" %}: {{userdata.full_name}}
  • {% trans "Phone" %}: {{userdata.phone_number}}
  • {% trans "Email" %}: {{userdata.email}}
{% csrf_token %} {{form|crispy}}
{% if orders %}

{% trans "All User Projects" %}

    {% for order in orders %} {% for item in order.stela.all %}
  • {{item.selection.domain}} ({% trans "Order ID" %}: {{order.transaction_id}})
    {% if order.status == "Completed" %} {% else %} {% endif %}
  • {% endfor %} {% endfor %}
{% else %}
{% csrf_token %}

{% trans "Suscription Cloud Billing" %}

{{form2.media}} {{form2|crispy}}

{% trans "Recipt Charges" %}

{{ formset.management_form }} {% for form in formset %}
{{form}}
{% endfor %}
{{formset.empty_form}}

{% trans "Recipt Discounts" %}

{{ formset2.management_form }} {% for form in formset2 %}
{{form}}
{% endfor %}
{{formset2.empty_form}}
{% endif %}
{% else %}
{% trans "Last Login" %}: {{userdata.last_login|naturaltime}}

{% trans "Balance" %}

    {% if cloud.purchase > 0 %}
  • {% trans "Cloud" %}: ${{cloud.purchase}}
  • {% else %}
  • {% trans "Cloud" %}: {% trans "No Purchase Yet" %}
  • {% endif %} {% if stela.purchase > 0 %}
  • Stela: ${{stela.purchase}}
  • {% else %}
  • Stela: {% trans "No Purchase Yet" %}
  • {% endif %} {% if store.purchase > 0 %}
  • Store: ${{store.purchase}}
  • {% else %}
  • Store: {% trans "No Purchase Yet" %}
  • {% endif %} {% if total.purchase > 0 %}

    {% trans "Total Purchase" %}: ${{total.purchase}}

    {% else %}

    {% trans "Total Purchase" %}: {% trans "No Purchase Yet" %}

    {% endif %}

{% trans "Address" %}

{{userdata.address}}

{% trans "City" %}

{{userdata.city_profile}}

{% trans "Country" %}

{{userdata.country_profile}}

  • {% trans "Full Name" %}: {{userdata.full_name}}
  • {% trans "Phone" %}: {{userdata.phone_number}}
  • {% trans "Email" %}: {{userdata.email}}
{% csrf_token %} {{form|crispy}}
{% if orders %}

{% trans "All User Projects" %}

    {% for order in orders %} {% for item in order.stela.all %}
  • {{item.selection.domain}} ({% trans "Order ID" %}: {{order.transaction_id}})
    {% if order.status == "Completed" %} {% else %} {% endif %}
  • {% endfor %} {% endfor %}
{% else %}
{% csrf_token %}

{% trans "Suscription Cloud Billing" %}

{{form2.media}} {{form2|crispy}}

{% trans "Recipt Charges" %}

{{ formset.management_form }} {% for form in formset %}
{{form}}
{% endfor %}
{{formset.empty_form}}

{% trans "Recipt Discounts" %}

{{ formset2.management_form }} {% for form in formset2 %}
{{form}}
{% endfor %}
{{formset2.empty_form}}
{% endif %}
{% endif %} {% endblock %} {% block scripts %} {% endblock %}