diff --git a/inventory/__pycache__/views.cpython-311.pyc b/inventory/__pycache__/views.cpython-311.pyc index 4fe1a2c4..04049c6f 100644 Binary files a/inventory/__pycache__/views.cpython-311.pyc and b/inventory/__pycache__/views.cpython-311.pyc differ diff --git a/inventory/views.py b/inventory/views.py index fdc42723..c29bb78a 100644 --- a/inventory/views.py +++ b/inventory/views.py @@ -362,12 +362,19 @@ class ManagerDashboard(LoginRequiredMixin, TemplateView): total_selling_price = stats["total_selling_price"] or 0 total_profit = total_selling_price - total_cost_price + new_leads = models.Lead.objects.filter(dealer=dealer, status=models.Status.NEW).count() + pending_leads = models.Lead.objects.filter(dealer=dealer, status=models.Status.PENDING).count() + canceled_leads = models.Lead.objects.filter(dealer=dealer, status=models.Status.CANCELED).count() + context["dealer"] = dealer context["total_cars"] = total_cars context["total_reservations"] = total_reservations context["total_cost_price"] = total_cost_price context["total_selling_price"] = total_selling_price context["total_profit"] = total_profit + context['new_leads'] = new_leads + context['pending_leads'] = pending_leads + context['canceled_leads'] = canceled_leads return context diff --git a/templates/dashboards/manager.html b/templates/dashboards/manager.html index 4d5135e5..f12ed117 100644 --- a/templates/dashboards/manager.html +++ b/templates/dashboards/manager.html @@ -101,8 +101,50 @@
-

Phoenix integrations

-

Phoenix improves efficiency instantly and effortlessly
by allowing easy & simple connection
to other popular programs

Connect Now +

{{ _("Leads") }}

+
+
+
+
+ + + + + +
+

{{ new_leads }}

+

{{ _("New")}}

+
+
+
+
+
+ + + + + +
+

{{ pending_leads }}

+

{{ _("Pending")}}

+
+
+
+
+
+ + + + + +
+

{{ canceled_leads }}

+

{{ _("Canceled")}}

+
+
+
+
+
diff --git a/templates/dealers/dealer_detail.html b/templates/dealers/dealer_detail.html index b9e99ffc..a95cc965 100644 --- a/templates/dealers/dealer_detail.html +++ b/templates/dealers/dealer_detail.html @@ -61,11 +61,7 @@
{% trans 'Subscription' %}
- {% if dealer.user.userplan.active %} - {% trans 'Active' %} - {% else %} - {% trans 'Expired' %} - {% endif %} +
@@ -120,7 +116,12 @@
-

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

{% trans 'most valuable'|upper %} +

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

+ {% if dealer.user.userplan.active %} + {% trans 'Active' %} + {% else %} + {% trans 'Expired' %} + {% endif %}

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

@@ -143,466 +144,10 @@
-
-
-
-
-
-

57 new orders

-

Awating processing

-
-
-
-
-
-
-

5 orders

-

On hold

-
-
-
-
-
-
-

15 products

-

Out of stock

-
-
-
-
-
+ -
-

Pricing

-
-
-
- -
-
-
-
-
- -
- -
-
-
- -
-
- - -
-
-
-
-

Startup

-
-

For individuals who are interested
in giving it a shot first.

-
-

Free

-
Forever
-
-
-
-
-
-
-
    -
  • Up to 4 Members
  • -
  • 3 Collaboration projects
  • -
-
-
-
-
-
-
-
-
-
-
- -
- -
-
-
- - -
-
- - -
-
-
-
-

Standard

-
-

For teams that need to create
project plans with confidence.

-
-

$14.99

-
Per month
-
-
-
-
-
-
-
    -
  • Up to 8 Members
  • -
  • Create & Share libraries
  • -
  • 10 Collaboration projects
  • -
-
-
-
-
-
-
-
-
-
-
- -
- -
-
-
- - -
-
- - -
-
-
-
-

Business Plus

recommended -
-

For teams that need to manage
work across initiatives.

-
-

$49.99

-
Per month
-
-
-
-
-
-
-
    -
  • Technical Supports
  • -
  • Up to 20 Members
  • -
  • Create & Share libraries
  • -
  • Unlimited Collaboration
  • -
-
-
-
-
-
-
-
-
-
-
- -
- -
-
-
- - -
-
- - -
-
-
-
-

Enterprise

-
-

For organizations that need
additional security and support.

-
-

$149.99

-
Per month
-
-
-
-
-
-
-
    -
  • 24/7 VIP Support
  • -
  • Automated analytics
  • -
  • Unlimited Members*
  • -
  • Create & Share libraries
  • -
  • Centralized billing
  • -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
- -
-
-
- - -
-
- - -
-
-
-
-

Startup

-
-

For individuals who are interested
in giving it a shot first.

-
-

Free

-
Forever
-
-
-
-
-
-
-
    -
  • Up to 4 Members
  • -
  • 3 Collaboration projects
  • -
-
-
-
-
-
-
-
-
-
-
- -
- -
-
-
- - -
-
- - -
-
-
-
-

Standard

-
-

For teams that need to create
project plans with confidence.

-
-

$179.88

-
Per year
-
-
-
-
-
-
-
    -
  • Up to 8 Members
  • -
  • Create & Share libraries
  • -
  • 10 Collaboration projects
  • -
-
-
-
-
-
-
-
-
-
-
- -
- -
-
-
- - -
-
- - -
-
-
-
-

Business Plus

recommended -
-

For teams that need to manage
work across initiatives.

-
-

$599.88

-
Per year
-
-
-
-
-
-
-
    -
  • Technical Supports
  • -
  • Up to 20 Members
  • -
  • Create & Share libraries
  • -
  • Unlimited Collaboration
  • -
-
-
-
-
-
-
-
-
-
-
- -
- -
-
-
- - -
-
- - -
-
-
-
-

Enterprise

-
-

For organizations that need
additional security and support.

-
-

$1,799.88

-
Per year
-
-
-
-
-
-
-
    -
  • 24/7 VIP Support
  • -
  • Automated analytics
  • -
  • Unlimited Members*
  • -
  • Create & Share libraries
  • -
  • Centralized billing
  • -
-
-
-
-
-
-
-
-
-
-
-
-
-
-

Business Starter, Business Standard, and Business Plus plans can be purchased for a maximum of 300 users. There is no
maximum user limit for Enterprise plans.

-

Phoenix customers may have access to additional features for a limited
promotional period.

-
- - -
-
-
-
-

Included in our all packages

-
-
-
-

Timeline

-
-
-
-
-

Advanced Search

-
-
-
-
-

Custom fields

New -
-
-
-
-

Task dependencies

-
-
-
-
-

20TB of additional space

-
-
-
-
-

Bandwidth of Upto 1 Gbps

-
-
-
-
-

Private teams & projects

-
-
-
-
-

Customer Support and Training

-
-
-
-
-
-
diff --git a/templates/header.html b/templates/header.html index 00fdb8a8..3c20c799 100644 --- a/templates/header.html +++ b/templates/header.html @@ -13,7 +13,7 @@ - store + {{ _("Dashboards") }}