{% extends "main.html" %} {%load static%} {% block title %}My Projects{% endblock %} {% block content %}
{% if customer.status == 'Active' %}

{{customer.user.first_name}} {{customer.user.last_name}}

{{customer.customer_id}}

{% endif %} {% if customer.status == 'Suspended' %}

{{customer.user.first_name}} {{customer.user.last_name}}

{{customer.customer_id}}

{% endif %} {% if customer.status == 'Terminated' %}

{{customer.user.first_name}} {{customer.user.last_name}}

{{customer.customer_id}}

{% endif %}

First Name: {{customer.user.first_name}}

Last Name: {{customer.user.last_name}}

Email: {{customer.user.email}}

Mobile Number: {{customer.mobile_number}}

{% if customer.personal_website %}

Personal Website: {{customer.personal_website}}

{% endif %} {% if customer.status == 'Active' %}

Status: {{customer.status}}

{% endif %} {% if customer.status == 'Suspended' %}

Status: {{customer.status}}

{% endif %} {% if customer.status == 'Terminated' %}

Status: {{customer.status}}

{% endif %}

Reference: {{customer.reference}}

Businesses

{% for business in customer.business_set.all %} {% endfor %}
Name Business Type Financial Number Actions

{{ business.name }}

{{ business.business_type }}

{{ business.financial_number }}

Projects

{% if customer_active_subscriptions %}

Subscriptions

{% for subscription in customer_active_subscriptions %}
{% if subscription.item.item_type.name == 'OSIMENU' %} {% elif subscription.item.item_type.name == 'OSICARD' %} {% endif %}

Expires:{% if subscription.end_at %} {{subscription.end_at}} {% else %} No Expiry {% endif %}

{% endfor %}
{% endif %} {% if customer_payments %}

Payments

{% for payment in customer_payments %} {% endfor %}
Order Amount Date Due Date Paid Payment Method Comment Actions

{{payment.order.order_id}}

${{payment.amount}}

{{payment.date_due}}

{% if payment.date_paid %}

{{payment.date_paid}}

{% else %}

UNPAID

{% endif %}
{% for type in payment.type.all %}

{{type.name}}

{% endfor %}
{% endif %}