{% load static %}
<!-- Navbar -->
<nav class="main-header navbar navbar-expand navbar-white navbar-light">
  <!-- Left navbar links -->
  <ul class="navbar-nav">
    <li class="nav-item">
      <a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
    </li>
    <li class="nav-item d-none d-sm-inline-block">
      <a href="{% url 'admin_profile' %}" class="nav-link">Profile</a>
    </li>
    <li class="nav-item d-none d-sm-inline-block">
      <a href="{% url 'change_password' %}" class="nav-link">Setting</a>
    </li>
    <li class="nav-item d-none d-sm-inline-block">
      <a href="{% url 'logout' %}" class="nav-link">Logout</a>
    </li>
  </ul>

  <!-- Right navbar links -->
  <ul class="navbar-nav ml-auto">
    <!-- Navbar Search -->
   

    
    <!-- Notifications Dropdown Menu -->
    <li class="nav-item dropdown">
      <a class="nav-link" data-toggle="dropdown" href="#">
        <i class="far fa-bell"></i>
        <span class="badge badge-warning navbar-badge">{{enq_status}}</span>
      </a>
      <div class="dropdown-menu dropdown-menu-lg dropdown-menu-right">
        <span class="dropdown-item dropdown-header">{{enq_status}} Notifications</span>
        {% for i in enq_details %}
        <div class="dropdown-divider"></div>
        <a href="{% url 'view-enquiry' id=i.id %}" class="dropdown-item">
          <i class="fas fa-envelope mr-2"></i> {{i.enquirynumber}}
          <span class="float-right text-muted text-sm">{{i.enquiry_date}}</span>
        </a>{% endfor %}
      
      
        <div class="dropdown-divider"></div>
        <a href="{% url 'unanswered_enquiry' %}" class="dropdown-item dropdown-footer">See All Notifications</a>
      </div>
    </li>
    <li class="nav-item">
      <a class="nav-link" data-widget="fullscreen" href="#" role="button">
        <i class="fas fa-expand-arrows-alt"></i>
      </a>
    </li>
    
  </ul>
</nav>
  