<div class="tabs">
    <div class="tab">Diese Rechnung</div>
    <div class="tab">Alle offenen Belege</div>
    <div class="tab">Dieses Fahrzeug</div>
    <div class="tab active">Debitor Historie</div>
</div>

<table class="table table-striped table-bordered">
    <thead>
        <tr>
            <th>Fahrzeug</th>
            <th>Mahnung Nr.</th>
            <th>Mahndatum</th>
            <th>Mahnstufe</th>
            <th>Belegnr.</th>
            <th>Belegdatum</th>
            <th>Betrag</th>
            <th>Bezahlt</th>
        </tr>
    </thead>
    <tbody>
        {% for row in forderungen_mahnungen %}
        <tr>
            <td></td>
            <td>{{ row.Mahnung_Nr }}</td>
            <td>{{ row.Mahnung_Datum|date_format }}</td>
            <td>{{ row.Mahnstufe }}</td>
            <td>{{ row.Beleg_Nr }}</td>
            <td>{{ row.Beleg_Datum|date_format }}</td>
            <td class="text-end">{{ row.Betrag|number_format }}</td>
            <td>J</td>
        </tr>
        {% endfor %}
    </tbody>
</table>