{% extends 'base.html' %} {% block title %}Documents โ€” AgentForms{% endblock %} {% block head_extra %} {% endblock %} {% block content %}
{{ counts.get('total', 0) }} All Types
{% for dtype, dcnt in doc_type_counts %}
{{ dcnt }} {{ dtype | capitalize }}
{% endfor %}
{{ counts.get('total', 0) }} All
{{ counts.get('draft', 0) }} Draft
{{ counts.get('sent', 0) }} Sent
{{ counts.get('viewed', 0) }} Viewed
{{ counts.get('unpaid', 0) }} Unpaid
{{ counts.get('paid', 0) }} Paid
{{ counts.get('void', 0) }} Void
{% if documents %}
{% for doc in documents %} {% endfor %}
Document Type Site Status Due Date Created Actions
{% if doc.is_overdue %}{% endif %} {{ doc.data.get('document_number', doc.invoice_number or doc.document_id[:8]) }}
{{ doc.data.get('customer_name', 'No customer') }}
{{ doc.document_type or 'invoice' }} {% if doc.site_name %} {{ doc.site_name }} {% else %} Standalone {% endif %} {{ doc.status }} {% if doc.due_date %} {{ doc.due_date }} {% if doc.is_overdue %} OVERDUE {% endif %} {% else %} โ€” {% endif %} {{ doc.created_at[:10] if doc.created_at else 'โ€”' }}
โฌ‡ {% if doc.status == 'unpaid' %} Pay {% endif %} {% if doc.customer_email %} {% endif %}
{% else %}

No documents yet.

Create an invoice, quote, or proposal directly, or set up a template for recurring documents.

{% endif %}

Document Preview

โคข Full Screen โฌ‡ Download
{% endblock %} {% block scripts %} {% endblock %}