- Reported
- {{ issue.reported_at.strftime('%Y-%m-%d %H:%M') }}
- Reported By
-
{% if issue.reporter %}
{{ issue.reporter.display_name }}
{% if issue.reporter.role == 'customer' %}
Customer
{% else %}
{{ issue.reporter.role|replace('_',' ')|title }}
{% endif %}
{% else %}
—
{% endif %}
- Contract
-
{% if issue.resolved_facility and issue.resolved_facility.project %}
{{ issue.resolved_facility.project.name }}
{% else %}—{% endif %}
- Facility
- {{ issue.resolved_facility.name if issue.resolved_facility else '—' }}
- Area
- {{ issue.area.name if issue.area else '—' }}
{% if issue.inspection %}
- Inspection
-
#{{ issue.inspection_id }}
{% endif %}
- Assigned To
- {{ issue.assigned_user.display_name if issue.assigned_user else '— Unassigned —' }}
{% set _ht = issue.handler_type or 'internal' %}
{% if _ht != 'internal' or issue.internal_handler_name or issue.internal_handler_contact %}
- Handled By
-
{% if _ht == 'facility' %}
Facility Staff
{% if issue.facility_handler_name %}
{{ issue.facility_handler_name }}
{% if issue.facility_handler_contact %}
{{ issue.facility_handler_contact }}
{% endif %}
{% endif %}
{% if issue.facility_handler_notes %}
{{ issue.facility_handler_notes }}
{% endif %}
{% elif _ht == 'vendor' %}
External Vendor
{% else %}
Janitorial Staff
{% if issue.internal_handler_name %}
{{ issue.internal_handler_name }}
{% endif %}
{% if issue.internal_handler_contact %}
{{ issue.internal_handler_contact }}
{% endif %}
{% endif %}
{% endif %}
{% if issue.vendor_name %}
- Contractor
-
{{ issue.vendor_name }}
{% if issue.vendor_contact %}
{{ issue.vendor_contact }}
{% endif %}
{% if issue.vendor_notes %}
{{ issue.vendor_notes }}
{% endif %}
{% endif %}
{% if issue.resolved_at %}
- Resolved
- {{ issue.resolved_at.strftime('%Y-%m-%d %H:%M') }}
{% endif %}
Description
{{ issue.description }}
{% if issue.photo_path or issue.mobile_photo_paths %}
Photo Evidence
{% if issue.photo_path %}
{% endif %}
{% for photo in (issue.mobile_photo_paths or []) %}
{% endfor %}
{% endif %}
{% if issue.result_notes or issue.result_photos %}
Resolution Details
{% if issue.result_notes %}
{{ issue.result_notes }}
{% endif %}
{% if issue.result_photos %}
{% for photo in issue.result_photos %}
{% endfor %}
{% endif %}
{% endif %}
{# ── Verification panel ── #}
{% if issue.verified_at %}
Verified by {{ issue.verifier.display_name if issue.verifier else 'unknown' }}
on {{ issue.verified_at.strftime('%Y-%m-%d %H:%M') }}.
{% if issue.verification_note %}
{{ issue.verification_note }}{% endif %}
{% elif issue.status == 'pending_verification' %}
Awaiting director verification.
{% if current_user.role in ['admin','director','auditor'] %}
{% endif %}
{% endif %}