<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>Belegart</th>
            <th>Belegnr.</th>
            <th>Belegdatum</th>
            <th>Beschreibung</th>
            <th>Benutzer</th>
            <th>Betrag</th>
            <th>Bezahlt</th>
        </tr>
    </thead>
    <tbody>
        {% for row in forderungen_buchungen %}
        <tr class="beleg-{{ row.Beleg_Art }}">
            <td>{{ row.Fahrzeug_Nr }}</td>
            <td>{{ row.Beleg_Art }}</td>
            <td>{{ row.Beleg_Nr }}</td>
            <td>{{ row.Beleg_Datum|date_format }}</td>
            <td>{{ row.Beleg_Beschreibung }}</td>
            <td>{{ row.Benutzer }}</td>
            <td class="text-end">{{ row.Betrag|number_format }}</td>
            <td>{{ row.Bezahlt }}</td>
        </tr>
        {% endfor %}
    </tbody>
</table>