{% extends "excel_base_template.html" %}

{% block title %}Excel Report{% endblock %}

{% block content %}
<h1>Excel Report</h1>
{% for sheet in sheets %}
<h2>{{ sheet.name }}</h2>
<table>
    <thead>
        <tr>
            {% for column in sheet.columns %}
            <th>{{ column }}</th>
            {% endfor %}
        </tr>
    </thead>
    <tbody>
        {% for row in sheet.data %}
        <tr>
            {% for cell in row %}
            <td>{{ cell }}</td>
            {% endfor %}
        </tr>
        {% endfor %}
    </tbody>
</table>
{% endfor %}
{% endblock %}
