@Master['master.html']
@Model['OrderLogsViewModel']
@Section['Content']
<form class="mt-3" method="post">
    <div class="row mt-2">
        <div class="control-group mb-3">
            <div class="controls">
                <button type="submit" class="btn btn-primary"><img src="/static/iconic/svg/reload.svg" style="width:16px;height:16px;fill:white;stroke:white" alt="reload">&nbsp;Aktualisieren</button>
            </div>
        </div>
    </div>
    <div class="row mt-2">
        <h3>
            Statistiken
            <small class="text-muted">Versendete E-Mails in den letzten 6 Monaten</small>
        </h3>
    </div>

    <div class="list-group">
        <table>
            <thead>
                <tr>
                    <td>Jahr</td>
                    <td>Monat</td>
                    <td>Versendete Test-E-Mails</td>
                    <td>Versendete Mails</td>
                </tr>
            </thead>
            <tbody>
                @Each.MonthlyStats
                <tr>
                    <td>@Current.Year</td>
                    <td>@Current.Month</td>
                    <td>@Current.SentTestMails</td>
                    <td>@Current.SentMails</td>
                </tr>
                @EndEach
            </tbody>
        </table>
    </div>
</form>
@EndSection
