<!DOCTYPE html>
<html lang="de" dir="ltr" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=0.75, user-scalable=no">

    <title>Alle Buchungen</title>
    <script th:src="@{/js/filterTable.js}"></script>
    <link rel="stylesheet" th:href="@{/css/ecom.css}"/>
</head>

<body>
<nav th:replace="fragments/header :: header">Header</nav>
<div class="sidebar-layout content-width">
    <nav></nav>
    <div>
        <h1>Alle Buchungen</h1>

        <script th:src="@{/js/back.js}"></script>
        <div class="back" data-group="intern" data-name="Zurück zu allen Buchungen." data-insert="false"></div>
    </div>
</div>
<main class="sidebar-layout content-width">
    <nav th:replace="fragments/intern :: sidebar"></nav>
    <div class="content-width">
        <h2> Manuelle Buchung </h2>
        <p>
            Buchungen können manuell getätigt werden.
            <a class="button" th:href="@{/intern/accounting/addManual}"> Jetzt Buchen </a>
        </p>

        <p>
        <table id="main-table">
            <tr>
                <th colspan="8">
                    <input type="text" placeholder="Filtern" class="jsFilterTable full-width smaller"
                           data-target-id="main-table">
                </th>
            </tr>
            <tr>
                <th>Zeitpunkt</th>
                <th>Betrag</th>
                <th>Von</th>
                <th>Kontostand</th>
                <th>Nach</th>
                <th>Kontostand</th>
                <th>Grund</th>
                <th>Referenz</th>
            </tr>

            <tr>
                <td>10.09.2019 14:10</td>
                <td>119,00&nbsp;EUR</td>
                <td> -</td>
                <td> -</td>
                <td><a th:href="@{/intern/customers/5000}">Kunde 5080</a></td>
                <td>0&nbsp;EUR</td>
                <td>Kunden-Bezahlung</td>
                <td>Bezahlung mit Kreditkarte XXXXX480</td>
            </tr>

            <tr>
                <td>10.09.2019 13:45</td>
                <td>19,00&nbsp;EUR</td>
                <td><a th:href="@{/intern/accounting/main}">Hauptkonto</a></td>
                <td>331,00&nbsp;EUR</td>
                <td><a th:href="@{/intern/accounting/vat}">Mehrwertsteuer</a></td>
                <td>1510,95&nbsp;EUR</td>
                <td>Kunden-Bestellung</td>
                <td><a th:href="@{/intern/customerOrders/450}">2504</a></td>
            </tr>

            <tr>
                <td>10.09.2019 13:45</td>
                <td>100,00&nbsp;EUR</td>
                <td><a th:href="@{/intern/customers/5000}">Kunde 5080</a></td>
                <td>-100,00&nbsp;EUR</td>
                <td><a th:href="@{/intern/accounting/main}">Hauptkonto</a></td>
                <td>350,00&nbsp;EUR</td>
                <td>Kunden-Bestellung</td>
                <td><a th:href="@{/intern/customerOrders/450}">2504</a></td>
            </tr>

            <tr>
                <td>19.08.2019 12:31</td>
                <td>250,00&nbsp;EUR</td>
                <td> -</td>
                <td> -</td>
                <td><a th:href="@{/intern/accounting/main}">Hauptkonto</a></td>
                <td>250,00&nbsp;EUR</td>
                <td>Startkapital</td>
                <td> -</td>
            </tr>

        </table>
        <p>
    </div>
</main>
<footer th:replace="fragments/footer :: footer"></footer>
</body>

</html>
