diff --git a/aiScanner/templates/aiScanner/scanner.html b/aiScanner/templates/aiScanner/scanner.html index 7a98eb6d6..0fcecfd09 100644 --- a/aiScanner/templates/aiScanner/scanner.html +++ b/aiScanner/templates/aiScanner/scanner.html @@ -5,346 +5,731 @@ AI Security Scanner - CyberPanel {% endblock %} +{% block header_scripts %} + +{% endblock %} + {% block content %} -
{{ error }}
+Configure your payment method to start scanning WordPress sites for malware and security vulnerabilities. Your card will be charged $10 initially to fund your scanning account.
+ + {% if pricing_data.success and pricing_data.plan %} +Great news! Your CyberPanel VPS hosting includes {{ vps_info.free_scans_available|default:0 }} free AI security scans this month ({{ vps_info.scans_used_this_month|default:0 }}/{{ vps_info.free_scans_per_month|default:0 }} used).
+ {% if not is_payment_configured %} +You can still add a payment method below for additional scans beyond your free allowance.
+ {% endif %} +You've used all {{ vps_info.free_scans_per_month|default:0 }} free AI security scans for this month. Setup payment to continue scanning.
+Free Scans Available
+ {% if is_payment_configured %} + Plus ${{ current_balance|floatformat:4 }} credit + {% endif %} + {% else %} +Available Credit
+ {% endif %} + {% if is_payment_configured %} + + {% endif %} +Recent Scans
+ Last 30 Days +Issues Found
+ Total Issues ++ + Payment setup is optional for VPS users. You have {{ vps_info.free_scans_available|default:0 }} free scans available. +
+ {% else %} ++ + Your account uses automatic billing. Add multiple payment methods for backup security. +
+ {% endif %} +Payment methods will be managed through the platform.
+ {% else %} +No payment methods configured yet.
+ {% endif %} +| Date | +Domain | +Type | +Status | +Progress | +Files | +Issues | +Cost | +Actions | +
|---|---|---|---|---|---|---|---|---|
| {{ scan.started_at|date:"M d, Y H:i" }} | +{{ scan.domain }} | ++ {{ scan.get_scan_type_display }} + | ++ {% if scan.status == 'completed' %} + Completed + {% elif scan.status == 'running' %} + Running + {% elif scan.status == 'failed' %} + Failed + {% elif scan.status == 'pending' %} + Pending + {% endif %} + | +
+ {% if scan.status == 'running' or scan.status == 'pending' %}
+
+
+
+ {% else %}
+ 100%
+ {% endif %}
+ |
+ {{ scan.files_scanned|default:"-" }} | ++ {% if scan.issues_found > 0 %} + {{ scan.issues_found }} + {% else %} + {{ scan.issues_found }} + {% endif %} + | ++ {% if scan.cost_usd %} + ${{ scan.cost_usd|floatformat:4 }} + {% else %} + - + {% endif %} + | ++ + | +