<%- include('../partials/header', { title: 'Audit Report', scripts: ['https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.7.0/chart.min.js', '/js/report.js'] }) %>

Environmental Management Plan Audit Report

Establishment: <%= report.establishment_name %>
Location: <%= report.establishment_location %>
Audit Date: <%= new Date(report.audit_date).toLocaleDateString() %>
Auditor: <%= report.auditor_name %>
Download PDF

Executive Summary

<%= report.compliance_score %>%
Overall Compliance

<%= report.summary %>

Detailed Findings

<% report.aspects.forEach(aspect => { %>

<%= aspect.aspect_type.replace(/_/g, ' ').replace(/\b\w/g, l => l.toUpperCase()) %> <%= aspect.is_compliant ? 'Compliant' : 'Non-Compliant' %>

<% if (aspect.notes) { %>

Findings:

<%= aspect.notes %>

<% } %> <% if (aspect.biodiversity_details) { %>

Biodiversity Details:

Invasive Plants Status: <%= aspect.biodiversity_details.invasive_plants_status.toUpperCase() %>

<% if (aspect.biodiversity_details.details) { %>

<%= aspect.biodiversity_details.details %>

<% } %>
<% } %>

Recommendations:

<% if (aspect.recommendations) { %>

<%= aspect.recommendations %>

<% } else { %>

No specific recommendations for this aspect

<% } %>
<% }); %>

Supporting Evidence

<% if (report.evidence.length > 0) { %>
<% report.evidence.forEach(ev => { %>
<% if (ev.file_type === 'image') { %> <%= ev.file_name %> <% } else { %>
<%= ev.file_name %>
<% } %>
<% }); %>
<% } else { %>

No evidence submitted with this report

<% } %>

Conclusion & Next Steps

<% if (report.recommendations) { %> <%= report.recommendations %> <% } else { %>

No specific recommendations provided.

<% } %>
Auditor Signature
Approver Signature
<%- include('../partials/footer') %>