{% load i18n static %} {% if user.is_authenticated %} {% comment %} {{request.dealer|default:"Apps"}} {% endcomment %} {% if perms.inventory.can_view_inventory %} {% trans "Inventory"|capfirst %} {% trans "Inventory"|capfirst %} {% if perms.inventory.add_car %} {% trans "add car"|capfirst %} {% endif %} {% if perms.inventory.view_car %} {% trans 'Cars'|capfirst %} {% trans 'Stock'|capfirst %} {% endif %} {% comment %} {% if perms.inventory.add_car %} {% trans "Bulk Upload"|capfirst %} {% endif %} {% endcomment %} {% if perms.django_ledger.view_purchaseordermodel %} {% trans "purchase Orders"|capfirst %} {% trans "Inventory List"|capfirst %} {% endif %} {% endif %} {% if perms.inventory.can_view_crm %} {% trans 'crm'|upper %} {% trans 'crm'|upper %} {% if perms.inventory.view_lead %} {% trans 'leads'|capfirst %} {% trans 'leads Tracking'|capfirst %} {% endif %} {% if perms.inventory.view_opportunity %} {% trans 'Opportunity'|capfirst %} {% endif %} {% if perms.inventory.view_customer %} {% trans 'customers'|capfirst %} {% endif %} {% if perms.inventory.view_organization %} {% trans "Organizations"|capfirst %} {% endif %} {% comment %} {% trans "Representatives"|capfirst %} {% trans "Opportunities"|capfirst %} {% endcomment %} {% endif %} {% if perms.django_ledger.can_view_sales %} {% trans 'sales'|capfirst %} {% trans 'sales'|capfirst %} {% if perms.django_ledger.add_estimatemodel %} {% trans "create quotation"|capfirst %} {% endif %} {% if perms.django_ledger.view_estimatemodel %} {% trans "quotations"|capfirst %} {% endif %} {% if perms.inventory.view_saleorder %} {% trans "Sale Orders"|capfirst %} {% endif %} {% if perms.django_ledger.view_invoicemodel %} {% trans "invoices"|capfirst %} {% endif %} {% endif %} {% if perms.django_ledger.can_view_financials %} {% trans 'Financials' %} {% trans 'Financials' %} {% if perms.django_ledger.view_accountmodel %} {% trans 'Chart of Accounts'|capfirst %} {% endif %} {% if perms.django_ledger.view_bankaccountmodel %} {% trans 'Bank Accounts'|capfirst %} {% endif %} {% if perms.django_ledger.view_journalentrymodel %} {% trans "Ledgers"|capfirst %} {% endif %} {% if perms.inventory.view_additionalservices %} {% trans "Services"|capfirst %} {% endif %} {% if perms.django_ledger.view_itemmodel %} {% trans "Expenses"|capfirst %} {% endif %} {% if perms.django_ledger.view_vendormodel %} {% trans 'vendors'|capfirst %} {% endif %} {% if perms.django_ledger.view_billmodel %} {% trans 'bills'|capfirst %} {% endif %} {% if perms.inventory.view_journalentrymodel %} {% trans "payments"|capfirst %} {% endif %} {% endif %} {% if perms.django_ledger.can_view_reports %} {% trans 'Reports' %} {% trans 'Financials' %} {% if perms.django_ledger.view_accountmodel %} {% trans 'Cash Flow'|capfirst %} {% trans 'Income Statement'|capfirst %} {% trans 'Balance Sheet'|capfirst %} {% trans 'Car purchase Report'|capfirst %} {% trans 'Car Sale Report'|capfirst %} {% endif %} {% endif %} {# --- Support & Contact Section (New) --- #} {% comment %} {% trans 'Haikal Support'|capfirst %} {% trans 'Haikal Contact'|capfirst %} {% trans 'Haikal Bot'|capfirst %} {% endcomment %} {% endif %} {% trans 'Haikal' %} {% if request.user.is_authenticated %} {% with name_to_display=request.user.staff.first_name|default:request.dealer.name %} {% trans 'Hello, ' %}{{ name_to_display }} {% endwith %} {% endif %} English عربي {% if user.is_authenticated %} {% include "notifications.html" %} {% endif %} {% if user.is_authenticated and request.is_dealer or request.is_staff %} {% if request.is_dealer and user.dealer.logo %} {% elif request.is_staff and request.staff.logo %} {% else %} {% endif %} {% if user.dealer.logo %} {% elif request.is_staff and request.staff.logo %} {% else %} {% endif %} {% if request.is_dealer %} {{ user.dealer.get_local_name }} {% else %} {{ user.staff.get_local_name }} {% endif %} {% if request.is_dealer %} {% translate 'profile'|capfirst %} {% else %} {% translate 'profile'|capfirst %} {% endif %} {% if request.is_dealer %} {{ _("Staff & Groups") }} {% comment %} {{ _("Activities") }} {% endcomment %} {% endif %} {% if request.is_dealer %} {{ _("Settings") }} {% endif %} {% if request.is_dealer %} {{ _("Admin Managemnet") }} {% endif %} {% if request.is_dealer%} {{ _("Help Center") }} {% endif %} {% if request.is_staff %} {{ _("My Calendar") }} {% endif %}
{{request.dealer|default:"Apps"}}