{% extends "vendor/manage/base.html" %} {% load i18n %} {% block vendor_content %}

{% trans 'Admin: Profile Details' %}

{% trans 'Profile Detail' %}
{% trans 'Name' %}
{{ object.user.first_name }}
{% trans 'Last Name' %}
{{ object.user.last_name }}
{% trans 'E-Mail' %}
{{ object.user.email }}
{% trans 'Username' %}
{{ object.user.username }}
{% trans 'Saved Addresses' %} {% comment %} {% trans 'New' %} {% endcomment %}
{% for address in object.addresses.all %} {% endfor %}
{% trans '#' %} {% trans 'Address' %} {% trans 'Actions' %}
{{forloop.counter}} {{ address.get_address_display }} {% trans 'TBD' %} {% comment %} {% trans 'Update' %} {% trans 'Remove' %} {% endcomment %}
{% trans 'Active Products Owned' %}
{% for receipt in object.get_active_reciepts %} {% endfor %}
{% trans 'Product' %} {% trans 'Actions' %}
{{ receipt.products.first.name }}

{{receipt.start_date|date:"Y-m-d"}} to {{receipt.end_date|default_if_none:"inf"|date:"Y-m-d"}}

{% csrf_token %}
{% trans 'Inactive Products Owned' %}
{% for receipt in object.get_inactive_receipts %} {% endfor %}
{% trans 'Product' %} {% trans 'Actions' %}
{{ receipt.products.first.name }}

{{receipt.start_date|date:"Y-m-d"}} to {{receipt.end_date|date:"Y-m-d"}}

{% csrf_token %}
{% trans 'Assign Free Offers To Profile' %}
{% for offer in free_offers %} {% endfor %}
{% trans 'Offer' %}
{{ offer }}
{% csrf_token %}

{% trans 'Invoices' %}

{% for invoice in object.invoices.all %}
{% trans '#' %} {% trans 'Date Created' %} {% trans 'Status' %} {% trans 'Subtotal' %} {% trans 'Tax' %} {% trans 'Total' %} {% trans 'Currency' %}
{{invoice.pk }} {{invoice.created|date:'Y-m-d' }} {{invoice.get_status_display }} {{invoice.subtotal }} {{invoice.tax }} {{invoice.total }} {{invoice.currency }}
{% for payment in invoice.payments.all %} {% endfor %}
{% trans 'Payments' %} {% trans '#' %} {% trans 'Transaction' %} {% trans 'Amount' %} {% trans 'Payee' %} {% trans 'Account' %} {% trans 'Success' %}
{{payment.pk}} {{payment.transaction}} {{payment.amount}} {{payment.payee_full_name}} {{payment.result.account_number}} {{payment.success}}
{% for order_item in invoice.order_items.all %} {% for receipt in order_item.receipts.all %} {% comment %} {% endcomment %} {% endfor %} {% endfor %} {% endfor %}
{% trans 'Receipts' %} {% trans '#' %} {% trans 'Transaction' %} {% trans 'Name' %} {% trans 'Start Date' %} {% trans 'End Date' %} {% trans 'Status' %} {% trans 'Actions' %}
{{receipt.pk}} {{receipt.transaction}} {{order_item.name}} {{receipt.start_date|date:'Y-m-d'}} {{receipt.end_date|date:'Y-m-d'}} {{receipt.get_status_display}} {% trans 'TBD' %} {% trans 'Refund' %}
{% endblock %}