{% load i18n %} {% load custom_filters %} {% if request.is_dealer or request.is_manager or request.is_accountant %}

{% blocktrans with start_date=start_date|date:"F j, Y" end_date=end_date|date:"F j, Y" %} Sales KPIs ({{ start_date }} - {{ end_date }}) {% endblocktrans %}

{% trans "Total Cars Sold" %}

{{ total_cars_sold }}

{% trans "Total Revenue from Cars" %}

{{ total_revenue_from_cars|floatformat:'2g' }}

{% trans "Net Profit from Cars" %}

{{ net_profit_from_cars|floatformat:'2g' }}

{% trans "Total Discount on Cars" %}

{{ total_discount_on_cars|floatformat:2 }}

{% trans "Total Cost of Cars Sold" %}

{{ total_cost_of_cars_sold|floatformat:'2g' }}

{% trans "Total VAT from Cars" %}

{{ total_vat_collected_from_cars|floatformat:'2g' }}

{% trans "Sales of New Cars" %}

{% trans "New Cars Sold" %}

{{ total_new_cars_sold }}

{% trans "New Cars Revenue" %}

{{ total_revenue_from_new_cars|floatformat:'2g' }}

{% trans "New Cars Net Profit" %}

{{ net_profit_from_new_cars|floatformat:'2g' }}

{% trans "New Cars VAT" %}

{{ total_vat_collected_from_new_cars|floatformat:'2g' }}

{% trans "New Cars Cost" %}

{{ total_cost_of_new_cars_sold|floatformat:'2g' }}

{% trans "Sales of Used Cars" %}

{% trans "Used Cars Sold" %}

{{ total_used_cars_sold }}

{% trans "Used Cars Revenue" %}

{{ total_revenue_from_used_cars|floatformat:'2g' }}

{% trans "Used Cars Net Profit" %}

{{ net_profit_from_used_cars|floatformat:'2g' }}

{% trans "Used Cars VAT" %}

{{ total_vat_collected_from_used_cars|floatformat:'2g' }}

{% trans "Used Cars Cost" %}

{{ total_cost_of_used_cars_sold|floatformat:'2g' }}

{% endif %} {% if request.is_dealer or request.is_manager or request.is_inventory %}

{% trans "Inventory KPIs" %}

{% trans "Total Cars in Inventory" %}

{{ total_cars_in_inventory }}

{% trans "Total Inventory Value" %}

{{ total_inventory_value|floatformat:'2g' }}

{% trans "New Cars in Inventory" %}

{{ total_new_cars_in_inventory }}

{% trans "Used Cars in Inventory" %}

{{ total_used_cars_in_inventory }}

{% trans "New Cars Inventory Value" %}

{{ new_car_value|floatformat:'2g' }}

{% trans "Used Cars Inventory Value" %}

{{ used_car_value|floatformat:'2g' }}

{% endif %} {% if request.is_dealer or request.is_manager or request.is_accountant %}

{% blocktrans with start_date=start_date|date:"F j, Y" end_date=end_date|date:"F j, Y" %} Financial Health KPIs ({{ start_date }} - {{ end_date }}) {% endblocktrans %}

{% trans "Total Revenue from Services" %}

{{ total_revenue_from_services|floatformat:'2g' }}

{% trans "Total VAT from Services" %}

{{ total_vat_collected_from_services|floatformat:'2g' }}

{% trans "Total Revenue Generated" %}

{{ total_revenue_generated|floatformat:'2g' }}

{% trans "Total VAT Collected" %}

{{ total_vat_collected|floatformat:'2g' }}

{% trans "Total Expenses" %}

{{ total_expenses|floatformat:'2g' }}

{% trans "Gross Profit" %}

{% if gross_profit|is_negative %}

{{ gross_profit|floatformat:'2g' }}

{% else %}

{{ gross_profit|floatformat:'2g' }}

{% endif %}
{% endif %}