+ {% if recent_inspections %}
+
+
+
+
+ | Date |
+ Facility |
+ Area |
+ {% if current_user.role != 'inspector' %}Inspector | {% endif %}
+ Score |
+ Status |
+
+
+
+ {% for insp in recent_inspections %}
+
+ | {{ insp.inspection_date.strftime('%Y-%m-%d %H:%M') }} |
+ {{ insp.facility.name }} |
+ {{ insp.area.name if insp.area else '—' }} |
+ {% if current_user.role != 'inspector' %}{{ insp.inspector.display_name }} | {% endif %}
+
+ {% if insp.overall_score %}
+
+ {{ insp.overall_score }}%
+
+ {% else %}
+ —
+ {% endif %}
+ |
+
+
+ {{ 'Submitted' if insp.status == 'completed' else insp.status|title }}
+
+ |
+
+ {% endfor %}
+
+
+
+ {% else %}
+
+ No recent inspections.
+
+ {% endif %}
+