{% extends 'base.html' %} {% load i18n static custom_filters crispy_forms_filters %} {% block title %} {% trans 'Profile' %} {% endblock %} {% block content %}

{% trans 'Profile' %}

{{ dealer.get_local_name }}

{% trans 'Joined' %} {{ dealer.joined_at|timesince }} {% trans 'ago' %}

{% trans 'last login'|capfirst %}

{{ dealer.user.last_login|date:"D M d, Y H:i" }}

{% trans 'Total users'|capfirst %}

{{ dealer.staff_count }} / {{ allowed_users }}

{% trans 'Total cars'|capfirst %}

{{ cars_count }} / {{ allowed_cars }}

{% trans 'Default Address' %}

{% trans 'Address' %}

{{ dealer.address }}

{% trans 'Email' %}
{{ dealer.user.email }}
{% trans 'Phone' %}
{{ dealer.phone_number }}

{{ dealer.user.userplan.plan|capfirst }}

{% if dealer.user.userplan %} {% if not dealer.user.userplan.is_expired %} {% trans 'Active' %} {% else %} {% trans 'Expired' %} {{ _("Renew") }} {% endif %} {% if dealer.user.userplan.plan.name != "Enterprise" %} {{ _("Upgrade") }} {% endif %} {% else %} You have no active plan. {{ _("Subscribe") }} {% endif %}

{% trans 'Active until' %}: {{ dealer.user.userplan.expire }}   {% trans 'Days left' %}: {{ dealer.user.userplan.days_left }}

{{ dealer.user.userplan.plan.planpricing_set.first.price }}

{{ _("Per month") }}
{% for line in dealer.user.userplan.plan.description|splitlines %}
{{ line }}
{% endfor %}

{{ _("Makes you are selling") }}

{% for make in car_makes %}
{% if make.logo %} {{ make.get_local_name }} {% endif %}

{{ make.get_local_name }}

{% endfor %}

{{ _("VAT") }}

{% csrf_token %} {{ vatform|crispy }}
{% endblock %}