{% extends 'base.html.twig' %} {% block title %}Dashboard - CxP GT{% endblock %} {% block page_title %}Dashboard{% endblock %} {% block body %} {# Welcome Section #}

¡Bienvenido de nuevo, {{ app.user ? app.user.nombre : 'Usuario' }}! 👋

Aquí está un resumen de tu sistema de Cuentas por Pagar

{# Stats Cards - Modern & Compact - Clickeable #}
{# Card 1 - Documentos Pendientes #}
+12%

Documentos Pendientes

{{ metrics.pending_documents }}

{# Card 2 - Vence Esta Semana #}
6%

Vence Esta Semana

Q {{ metrics.due_this_week }}

{# Card 3 - Proveedores Activos #}
72%

Proveedores Activos

{{ metrics.active_providers }}

{# Card 4 - Total por Pagar #}
150%

Total por Pagar

Q {{ metrics.total_payable }}

{# Main Content Grid #}
{# Chart - 2/3 width #}

Proyección de Vencimientos

Últimos 7 días

{# Activity Sidebar - 1/3 width #}

Actividad Reciente

Últimas actualizaciones

{% for activity in activities %}
{% if activity.icon == 'document' %} {% elseif activity.icon == 'payment' %} {% else %} {% endif %}

{{ activity.title }}

{{ activity.subtitle }}

{{ activity.time }}

{% else %}
No hay actividad reciente.
{% endfor %}
{# Recent Documents Table #}

Documentos Recientes

Últimos documentos del sistema

Ver todos
{% for doc in recentDocuments %} {% else %} {% endfor %}
Serie Proveedor Tipo Fecha Total Saldo Estado Acciones
{{ doc.serie }} {{ doc.proveedor }} {{ doc.tipo }} {{ doc.fecha }} {{ doc.total }} {{ doc.saldo }} {% if doc.estado == 'Pagado' %} {{ doc.estado }} {% elseif doc.estado == 'Parcial' %} {{ doc.estado }} {% elseif doc.estado == 'Registrado' %} {{ doc.estado }} {% else %} {{ doc.estado }} {% endif %} Ver
No hay documentos recientes.
{# Chart Script #} {% endblock %}