<!DOCTYPE html>
{% load static %}
{% load tz %}

<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous">
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ENjdO4Dr2bkBIFxQpeoTz1HIcje39Wm4jDKdf19U8gI4ddQ3GYNS7NTKfAdVQSZe" crossorigin="anonymous"></script> 
    <!-- <link href= {% static 'bootstrap.min.css' %} rel="stylesheet" crossorigin="anonymous">
    <script src= {% static 'bootstrap.bundle.min.js' %} ></script> -->
    <script src="https://unpkg.com/htmx.org@1.9.6"></script>
    <style type="text/css">

  .hidden {
    display: none;
  }

  .table-scroll thead  {
    position: sticky;
    top: 0;
    z-index:1;
    background-color: #cae8ca;
    border: 2px solid #4CAF50;
  }

  .table-responsive {
    max-height: 400px;
    border: 2px solid #4CAF50;

    &::-webkit-scrollbar {
      width: 0.7rem;
      height: 0.7rem;
    };
    &::-webkit-scrollbar-track {
      background-color: lightgray;
    };
    &::-webkit-scrollbar-thumb {
      background-color: gray;
      border-radius: 2px;
    };
  }
  
  </style>
    <title>{% block title %}Inventory Project{% endblock %}</title>
    {% block head %}{% endblock %}
</head>
<body>
    <nav class="navbar navbar-expand-lg border-bottom  bg-body-tertiary" data-bs-theme='light' >
        <div class="container-fluid">
          <a class="navbar-brand" href="{% url 'Invoice:show_customer' %}">DBW</a>
          <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarScroll" aria-controls="navbarScroll" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
          </button>
          <div class="collapse navbar-collapse" id="navbarScroll">
            <ul class="navbar-nav me-auto my-2 my-lg-0 navbar-nav-scroll" style="--bs-scroll-height: 100px;">
              <li class="nav-item">
                <a class="nav-link active" aria-current="page" href="{% url 'Item:index' %}">Home</a>
              </li>
              <li class="nav-item">
                <a class="nav-link" href="{% url 'Item:index_pricelevel' %} ">PriceLevel</a>
              </li>
              <li class="nav-item dropdown">
                <a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
                  Link
                </a>
                <ul class="dropdown-menu">
                  <li><a class="dropdown-item" href="{% url 'Customer:index' %}">Customer List</a></li>
                  <li><a class="dropdown-item" href="{% url 'SalesOrder:index' %}">Sales Order List</a></li>
                  <li><a class="dropdown-item" href="{% url 'Invoice:index' %}">Invoice List</a></li>

                  <li><hr class="dropdown-divider"></li>
                  <li><a class="dropdown-item" href="{% url 'Invoice:prepare_data' %}">Prepare Data</a></li>
                </ul>
              </li>
              <li class="nav-item dropdown">
                <a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">
                  SO to Inv
                </a>
                <ul class="dropdown-menu">
                    <li><a class="dropdown-item" href="{% url 'Invoice:show_customer' %}">SO to Inv</a></li>
                  <li><a class="dropdown-item" href="{% url 'Invoice:prepare_data' %}">Prepare Data</a></li>
                </ul>
              </li>
              <!-- <li class="nav-item">
                <a class="nav-link disabled">Link</a>
              </li> -->
            </ul>
            <div>{% block search_nav %}<form class="d-flex" role="search">
                <input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
                <button class="btn btn-outline-success" type="submit">Search</button>
              </form>
        {% endblock search_nav %}
          </div>
          </div>
        </div>
      </nav>

      {% if messages %}
      {% for message in messages %}
      <div class="alert alert-{{ message.tags }} alert-dismissible fade show" role="alert">
        {{message | safe}}
        <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
      </div>
      {% endfor %}
      {% endif %}

      <div>
      {% block body %}{% endblock body %}
      </div>

  
  <!-- Modal -->
  <div id="modal" class="modal fade"  data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="staticBackdropLabel" aria-hidden="true">
    <div id="dialog" class="modal-dialog">
     
    </div>
  </div>
  

</body>
</html>