{% extends "base.html" %} {% block title %}Zoho CRM{% endblock %} {% block content %} {# ── Configuration Status ── #}
{% if configured %}
Connected Zoho CRM API credentials are configured.
{% else %}
Not Configured Set ZOHO_CLIENT_ID, ZOHO_CLIENT_SECRET, and ZOHO_REFRESH_TOKEN environment variables to enable sync.
{% endif %}
{# ── KPI Cards ── #}
{{ stats.total_icp }}
Total ICP Contacts
{{ stats.synced }}
Synced to Zoho
{{ stats.unsynced }}
Pending Sync
{{ stats.errors_24h }}
Errors (24h)
{# ── Actions ── #} {% if configured %}

Actions

Push all unsynced ICP contacts to Zoho CRM. This creates new Contacts and Accounts, or updates existing ones.

Syncing...
{% endif %} {# ── Recent Sync Log ── #}

Recent Sync Log

{% if recent_log %}
{% include "partials/zoho_log_table.html" %}
Time Contact Action Zoho ID Details
{% else %}

No sync activity yet.

{% endif %}
{% if stats.last_sync %}

Last sync: {{ stats.last_sync.strftime('%Y-%m-%d %H:%M') if stats.last_sync else 'Never' }}

{% endif %} {% endblock %}