<!DOCTYPE html>
<html lang="de">

<head>
  <base href="./">
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="description" content="Global Cube">
  <meta name="author" content="Global Cube GmbH - Robert Burghard">
  <meta name="keyword" content="Bootstrap,Admin,Template,Open,Source,jQuery,CSS,HTML,RWD,Dashboard">
  <title>Global Cube</title>
  <script src="https://cdn.jsdelivr.net/npm/htmx.org@2.0.8/dist/htmx.min.js"></script>

  <link href="https://cdn.jsdelivr.net/npm/@coreui/coreui@5.6.1/dist/css/coreui.min.css" rel="stylesheet">
  <link href="https://cdn.jsdelivr.net/npm/@coreui/icons@3.0.1/css/all.min.css" rel="stylesheet">

  <script src="https://cdn.jsdelivr.net/npm/@coreui/coreui@5.6.1/dist/js/coreui.bundle.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/@coreui/icons@3.0.1/dist/cjs/index.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js"></script>

  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap" rel="stylesheet">

  <link href="/static/assets/css/main.css" rel="stylesheet">
  <link href="/static/assets/css/redesign.css" rel="stylesheet">

  <!-- Favicon icon -->
  <link rel="icon" href="/static/assets/images/favicon.ico" type="image/x-icon">
</head>

<body class="container py-3" hx-boost="true">
  <!--<nav class="navbar navbar-expand-lg bg-primary">
    <div class="container-fluid">
        <a class="navbar-brand" href="#">Navbar</a>
        <button class="navbar-toggler" type="button" data-coreui-toggle="collapse" data-coreui-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarNav">
        <ul class="navbar-nav">
            <li class="nav-item">
            <a class="nav-link active" aria-current="page" href="#">Home</a>
            </li>
            <li class="nav-item">
            <a class="nav-link" href="#">Features</a>
            </li>
            <li class="nav-item">
            <a class="nav-link" href="#">Pricing</a>
            </li>
            <li class="nav-item">
            <a class="nav-link disabled" aria-disabled="true">Disabled</a>
            </li>
        </ul>
        </div>
    </div>
    </nav>-->
  <div class="wrapper d-flex flex-column min-vh-100">
    <header class="header header-sticky p-0 mb-4">
      <div class="container-fluid border-bottom px-4">
        <button class="header-toggler" type="button"
          onclick="coreui.Sidebar.getInstance(document.querySelector('#sidebar')).toggle()"
          style="margin-inline-start: -14px;">
          <i class="icon icon-lg cil-menu"></i>
        </button>
        <ul class="header-nav d-none d-lg-flex">
          <li class="nav-item"><a class="nav-link" href="/app/forderungen/liste">Liste</a></li>
          <li class="nav-item"><a class="nav-link" href="/app/forderungen/dashboard">Dashboard</a></li>
        </ul>
        <ul class="header-nav ms-auto">
          <li class="nav-item"><a class="nav-link" href="/select">
              <i class="icon icon-lg cil-home"></i></a></li>
          <li class="nav-item"><a class="nav-link" href="/config">
              <i class="icon icon-lg cil-cog"></i></a></li>
          <li class="nav-item"><a class="nav-link" href="/logout">
              <i class="icon icon-lg cil-user"></i></a></li>
        </ul>
        <!--
        <ul class="header-nav">
          <li class="nav-item py-1">
            <div class="vr h-100 mx-2 text-body text-opacity-75"></div>
          </li>

          <li class="nav-item dropdown">
            <button class="btn btn-link nav-link py-2 px-2 d-flex align-items-center" type="button"
              aria-expanded="false" data-coreui-toggle="dropdown">
              <i class="icon icon-lg theme-icon-active cil-contrast"></i>
            </button>
            <ul class="dropdown-menu dropdown-menu-end" style="--cui-dropdown-min-width: 8rem;">
              <li>
                <button class="dropdown-item d-flex align-items-center" type="button" data-coreui-theme-value="light">
                  <i class="icon icon-lg me-3 cil-sun"></i> Light
                </button>
              </li>
              <li>
                <button class="dropdown-item d-flex align-items-center" type="button" data-coreui-theme-value="dark">
                  <i class="icon icon-lg me-3 cil-moon"></i> Dark
                </button>
              </li>
              <li>
                <button class="dropdown-item d-flex align-items-center active" type="button"
                  data-coreui-theme-value="auto">
                  <i class="icon icon-lg me-3 cil-contrast"></i> Auto
                </button>
              </li>
            </ul>
          </li>
          <li class="nav-item py-1">
            <div class="vr h-100 mx-2 text-body text-opacity-75"></div>
          </li>
          <li class="nav-item dropdown"><a class="nav-link py-0 pe-0" data-coreui-toggle="dropdown" href="#"
              role="button" aria-haspopup="true" aria-expanded="false">
              <div class="avatar avatar-md"><img class="avatar-img" src="/static/assets/img/avatars/winter.jpg"
                  alt="winter@global-cube.de">
              </div>
            </a>
            <div class="dropdown-menu dropdown-menu-end pt-0">
              <div class="dropdown-header bg-body-tertiary text-body-secondary fw-semibold rounded-top mb-2">Account
              </div><a class="dropdown-item" href="#">
                <i class="icon me-2 cil-bell"></i> Updates<span class="badge badge-sm bg-info ms-2">42</span></a><a
                class="dropdown-item" href="#">
                <i class="icon me-2 cil-envelope-open"></i> Messages<span
                  class="badge badge-sm bg-success ms-2">42</span></a><a class="dropdown-item" href="#">
                <i class="icon me-2 cil-task"></i> Tasks<span class="badge badge-sm bg-danger ms-2">42</span></a><a
                class="dropdown-item" href="#">
                <i class="icon me-2 cil-comment-square"></i> Comments<span
                  class="badge badge-sm bg-warning ms-2">42</span></a>
              <div class="dropdown-header bg-body-tertiary text-body-secondary fw-semibold my-2">
                <div class="fw-semibold">Settings</div>
              </div><a class="dropdown-item" href="#">
                <i class="icon me-2 cil-user"></i> Profile</a><a class="dropdown-item" href="#">
                <i class="icon me-2 cil-settings"></i> Settings</a><a class="dropdown-item" href="#">
                <i class="icon me-2 cil-credit-card"></i> Payments<span
                  class="badge badge-sm bg-secondary ms-2">42</span></a><a class="dropdown-item" href="#">
                <i class="icon me-2 cil-file"></i> Projects<span class="badge badge-sm bg-primary ms-2">42</span></a>
              <div class="dropdown-divider"></div><a class="dropdown-item" href="#">
                <i class="icon me-2 cil-lock-locked"></i> Lock Account</a><a class="dropdown-item" href="#">
                <i class="icon me-2 cil-account-logout"></i> Logout</a>
            </div>
          </li>
        </ul>
        -->
      </div>
    </header>
    <main role="main" class="gc-page">
      <div class="container-fluid px-6">
        <img src="/static/assets/images/Reisacher.png">
        <!--<strong>Forderungsmanagement</strong>-->
      </div>

      {% block content %}{% endblock %}
    </main>
  </div>

  {% if summary %}
  <footer class="footer footer-sticky">
    <div class="container-fluid">
      <div class="row mb-3">
        <div class="col-sm-3">
          Datensätze: {{ summary.Anzahl }}
        </div>
        <div class="col-sm-6">
          Filter:
          {% for f in filter_config %}

          {% if f.filter_type != 'hidden' and f.current_value != f.default_value %}
          {{ f.text }} = '{{ f.current_value }}' |
          {% endif %}

          {% endfor %}
        </div>
        <div class="col-sm-3 text-end">
          Gesamt: <strong>{{ summary.Beleg_offen|number_format }}</strong>
        </div>
      </div>
    </div>
  </footer>
  {% endif %}

</body>

</html>