Drop files here to upload
{% for doc_type, doc_name in document_types %}
{% with docs=documents|get_item:doc_type %}
{% if docs %}
{% if doc_type == 'loan_agreement' %}
{% elif doc_type == 'id_document' %}
๐ชช
{% elif doc_type == 'selfie' %}
๐ค
{% elif doc_type == 'utility_bill' %}
๐งพ
{% elif doc_type == 'bank_statement' %}
{% elif doc_type == 'business_license' %}
{% elif doc_type == 'tax_return' %}
๐
{% elif doc_type == 'payslip' %}
๐ต
{% elif doc_type == 'contract' %}
{% elif doc_type == 'logbook' %}
{% elif doc_type == 'title_deed' %}
๐
{% elif doc_type == 'signature' %}
{% else %}
๐
{% endif %}
{{ doc_name }} Documents
({{ docs|length }})
{% for doc in docs %}
{% if doc.source == 'kyc' %}
{% if doc.file.url|lower|slice:"-4:" in '.pdf,.doc,.docx' %}
{% else %}

{% endif %}
{% else %}
{% if doc.file.url|lower|slice:"-4:" in '.pdf,.doc,.docx' %}
{% else %}

{% endif %}
{% endif %}
{{ doc.name }}
{{ doc.created_at|date:"M d, Y" }}
{% if doc.source == 'kyc' %}
{{ doc.client_name }}
{% endif %}
{% if doc.source == 'kyc' %}
KYC Document
{% endif %}
{% for tag in doc.tags.all %}
{{ tag.name }}
{% endfor %}
โฌ๏ธ
{% if doc.source != 'kyc' %}
{% if user.is_staff %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% endwith %}
{% endfor %}