{% extends "base_layout.html" %} {% block title %}EPOLaw - Legal Analysis{% endblock %} {% block content %}
Dashboard {% if case %} Back to Case {% endif %}
{% if case %}
Case Context: {{ case.case_name }} ({{ case.case_number }}) {% if case.client_name %}
Client: {{ case.client_name }} {% endif %} {% if document %}
Document: {{ document.original_filename }} {% endif %}
{% endif %} {% if user_plan == 'free' %}
Monthly Usage: {% set used = 5 - analyses_remaining %} {{ used }}/5 analyses used {% if analyses_remaining > 0 %} ({{ analyses_remaining }} remaining) {% else %} Limit reached {% endif %}
{% if analyses_remaining == 0 %}
Upgrade to Pro
{% endif %}
{% elif user_plan == 'pro' %}
Monthly Usage: {% set used = 75 - analyses_remaining %} {{ used }}/75 analyses used {% if analyses_remaining > 0 %} ({{ analyses_remaining }} remaining) {% else %} Limit reached {% endif %}
{% if analyses_remaining == 0 %}
Upgrade to Enterprise
{% endif %}
{% endif %}

Legal Document & Image Analysis

{% if document %}

Analyze existing case document with legal perspective

✓ Document ready for analysis {% else %}

Upload documents or images for comprehensive legal analysis

Supports PDF, Word docs, images, and text files with OCR processing {% endif %}
{% if case %} {% endif %} {% if document %} {% endif %}
Select Document
{% if document %}
{% set file_ext = document.original_filename.split('.')[-1].lower() if '.' in document.original_filename else 'file' %} {% if file_ext == 'pdf' %} {% elif file_ext in ['doc', 'docx'] %} {% elif file_ext == 'txt' %} {% elif file_ext in ['jpg', 'jpeg', 'png', 'tiff', 'tif', 'bmp'] %} {% else %} {% endif %}
📄 Document Ready for Analysis

{{ document.original_filename }}

{% if document.document_type %} {{ document.document_type.replace('_', ' ').title() }} {% endif %} Select your analysis perspective below and click "Analyze"
{% else %}
Drag & Drop Your Document

or click to browse

✓ Upload Tips:
PDFs work best for text extraction
Images will be processed with OCR
All files are encrypted and secure
Selected file:
Supported formats: PDF, TXT, JPG, PNG, TIFF, BMP • Max size: 50MB {% endif %}
Practice Area
Selecting a specific practice area provides specialized analysis
Specific analysis types based on practice area
Analysis Perspective

Choose the legal perspective for analysis

Example: "Focus on contract liability," "Analyze evidence chain of custody," or "Review for constitutional violations"
{% endblock %}