{% 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' %}: {{ dealer.user.last_login|date:"D M d, Y H:i" }}
{% trans 'Total users'|capfirst %}

{{ dealer.staff_count }}

{% trans 'Total cars'|capfirst %}

{{ cars_count }}

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

{% if dealer.user.userplan and not dealer.user.userplan.is_expired %} {{ _("Active") }} {% elif dealer.user.userplan and dealer.user.userplan.is_expired %} {{ _("Expired") }} {% else %} {{ _("No Active Plan") }} {% endif %}

{% if dealer.user.userplan and not dealer.user.userplan.is_expired %} {% trans 'Active until' %}: {{ dealer.user.userplan.expire }}   {% trans 'Days left' %}: {{ dealer.user.userplan.days_left }} {% else %} {% trans 'Please subscribe or renew your plan to continue using our services.' %} {% endif %}

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

    {% for line in dealer.user.userplan.plan.description|splitlines %}
  • {{ line }}
  • {% endfor %}
{% comment %}
{% if dealer.user.userplan.is_expired %} {{ _("Renew") }} {% endif %} {% if dealer.user.userplan.plan.name != "Enterprise" %} {{ _("Upgrade Plan") }} {% endif %} {% if not dealer.user.userplan %} {{ _("Subscribe Now") }} {% endif %}
{% endcomment %}
{% if not dealer.user.userplan %} {{ _("Subscribe Now") }} {% elif dealer.user.userplan.is_expired %} {{ _("Renew") }} {% elif dealer.user.userplan.plan.name != "Enterprise" %} {{ _("Upgrade Plan") }} {% endif %}
{{ _("Manage Users & Cars") }}
{{ _("Total users") }}
{{ _("Used") }}: {{ dealer.staff_count }}
{{ _("Total cars") }}
{{ _("Used") }}: {{ cars_count }}
{{ _("Contact support to increase your limits") }}
{% trans 'Contact Information' %}
{% trans 'Address' %}

{{ dealer.address }}

{% trans 'Email' %}

{{ dealer.user.email }}

{% trans 'Phone' %}

{{ dealer.phone_number }}

{{ _("VAT Information") }}
{% csrf_token %} {{ vatform|crispy }}
{{ _("Makes you are selling") }}
{% for make in car_makes %}
{% if make.logo %} {{ make.get_local_name }} {% endif %}

{{ make.get_local_name }}

{% empty %}

{{ _("No car makes selected.") }}

{% endfor %}
{{ _("Select Makes") }}
{% endblock %}