{% load static content_widgets %}
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{% block title %}Home{% endblock %} - {% site_name %}</title>
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
    <link href="https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.10.0/css/all.css" integrity="sha384-AYmEC3Yw5cVb3ZcuHtOA93w35dYTsvhLPVnYs9eStHfGJvOvKxVfELGroGkvsg+p" crossorigin="anonymous" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.3/css/bootstrap.min.css" integrity="sha512-GQGU0fMMi238uA+a/bdWJfpUGKUkBdgfFdgBm72SUQ6BeyWjoY/ton0tEjH+OSH9iP4Dfh+7HM0I9f5eR0L/4w==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="{% static 'frontadmin/css/frontadmin.min.css' %}">
    <link rel="stylesheet" href="{% static 'frontadmin/css/forms.css' %}">
    <link rel="stylesheet" href="{% static 'frontadmin/css/custom.css' %}">
  </head>
  <body class="hold-transition sidebar-mini">
    <div class="wrapper">
      <nav class="main-header navbar navbar-expand navbar-white navbar-light">
        {% block frontadmin_topmenu %}{% endblock %}
        {% warnings_recent_content %}
      </nav>
      <aside class="main-sidebar sidebar-dark-primary elevation-4">
        {% logo %}
        <div class="sidebar">
          <nav class="mt-2">
            {% block sidebar %}{% endblock %}
          </nav>
        </div>
      </aside>
      <div class="content-wrapper">
        <div class="content-header">
          <div class="container-fluid">
            <div class="row mb-2">
              <div class="col-sm-6">
                <h1 class="m-0">{% block content_title %}{% endblock %}</h1>
              </div>
              <div class="col-sm-6">
                {% block content_breadcrumb %}{% endblock %}
              </div>
            </div>
          </div>
        </div>
        <div class="content">
          <div class="container-fluid">
            {% if messages %}
            {% for message in messages %}
            <div class="alert alert-{% if message.tags == 'success' %}success{% elif message.tags == 'error' %}danger{% elif message.tags == 'info' %}info{% elif message.tags == 'warning' %}warning{% endif %} alert-dismissible">
              <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
              <h5><i class="icon fas {% if message.tags == 'success' %}fa-check{% elif message.tags == 'error' %}fa-ban{% elif message.tags == 'info' %}fa-info{% elif message.tags == 'warning' %}fa-exclamation-triangle{% endif %}"></i> {{message.tags|capfirst}}!</h5> 
              {{ message }}
            </div>
            {% endfor %}
            {% endif %}
            {% block content %}{% endblock %}
          </div>
        </div>
      </div>
      {% block content_help %}{% endblock %}
      <footer class="main-footer">
        <strong>Copyright &copy; 2021-2022 <a href="https://nbsols.com">NB Solutions</a>.</strong> All rights reserved.
      </footer>
    </div>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js" integrity="sha512-894YE6QWD5I59HgZOGReFYm4dnWc1Qt5NtvYSaNcOP+u1T9qYdvdihz0PPSiiqn/+/3e7Jo4EaG7TubfWGUrMQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.3/js/bootstrap.bundle.min.js" integrity="sha512-pax4MlgXjHEPfCwcJLQhigY7+N8rt6bVvWLFyUMuxShv170X53TRzGPmPkZmGBhk+jikR8WBM4yl7A9WMHHqvg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="{% static 'frontadmin/js/frontadmin.min.js' %}"></script>
    <script src="{% static 'frontadmin/js/custom.js' %}"></script>
  </body>
</html>