{% extends 'base.html' %} {% block title %}Bulk Delete Clients - HAVEN GRAZURI ADVANCE{% endblock %} {% block content %}
⚠️

Bulk Client {{ action|title }} Confirmation

You are about to {{ action }} {{ total_clients }} client(s) and {{ total_dependencies }} related record(s).

📊 Operation Summary

{{ total_clients }}
Clients
{{ total_dependencies }}
Related Records
{% if action == 'blacklist' %}SOFT{% else %}HARD{% endif %}
Delete Type
{% if action == 'blacklist' %}NO{% else %}YES{% endif %}
Permanent

👥 Clients to be {{ action }}ed

{% for data in client_data %}
{{ data.client.get_full_name }}
{{ data.client.email }} • {{ data.client.phone_number }}
{{ data.dependencies.total }} records
{% if data.dependencies.loans %}{{ data.dependencies.loans }} loans{% endif %} {% if data.dependencies.applications %}{{ data.dependencies.applications }} apps{% endif %} {% if data.dependencies.documents %}{{ data.dependencies.documents }} docs{% endif %}
{% endfor %}
{% if action == 'delete' %}

⚠️ ⚠️ PERMANENT DELETION WARNING

  • This action will permanently delete all selected clients and their data
  • All related loans, applications, repayments, and documents will be removed
  • This operation cannot be undone
  • The operation may take several minutes to complete
  • Consider using "Blacklist" instead for data preservation
{% else %}

Blacklist Operation

  • Clients will be marked as blacklisted and deactivated
  • All client data will be preserved for audit purposes
  • Clients will not be able to access the system
  • This operation can be reversed if needed
{% endif %}
Cancel
{% csrf_token %} {% for client_id in client_ids %} {% endfor %}
{% endblock %}