{% load static %}
<style>
  .hello-msg{
    font-size: 18px;
    color: #fff;
    margin-right: 20px;
  }
</style>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
  
  <a class="navbar-brand" href="{% url 'store' %}"><img style="height: 60px" src="{% static 'images/logo.png' %}" alt="Giri"></a>
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-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" style=" position: relative; 
    left: 20px">
    {% if request.user.is_staff %}

    <li class="nav-item active">
          <a class="nav-link" href="{% url 'store' %}">Store <span class="sr-only">(current)</span></a>
        </li>
        <li class="nav-item active">
            <a class="nav-link" href="{% url 'process_QR' %}">PendingToVending<span class="sr-only">(current)</span></a>
          </li>
      <li class="nav-item active">
          <a class="nav-link" href="{% url 'home' %}">Dashboard</a>
      </li>
      <li class="nav-item active">
       <a class="nav-link" href="{% url 'products' %}">Products</a>
      </li>

      {% else %}

      <li class="nav-item active">
            <a class="nav-link" href="{% url 'process_QR' %}">PendingToVending<span class="sr-only">(current)</span></a>
          </li>
       <li class="nav-item">
       <a class="nav-link" href="{% url 'accountSettings' %}">Products</a>
      </li>
      {% endif %}
    </ul>
  </div>
   <span class="hello-msg">Hello, {{request.user}}</span>
  <span ><a  class="btn btn-warning" href="{% url 'logout' %}">Logout</a></span>

</nav>