<!doctype html>
{% comment %} {% with patentid=1  %} {% endcomment %}

<html lang="en">
  <head>
    <title>{{title}}</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- Bootstrap core CSS -->
    <link type="text/css" rel="stylesheet" href="https://cdn1.ap-south-1.linodeobjects.com/resource/adminlte3/plugins/bootstrap5/css/bootstrap.min.css">
    <link type="text/css" rel="stylesheet" href="https://cdn1.ap-south-1.linodeobjects.com/resource/adminlte3/plugins/fontawesome-free/css/all.min.css">
    <script src="https://cdn1.ap-south-1.linodeobjects.com/resource/adminlte3/plugins/jquery/jquery.min.js"  type="text/javascript" ></script>
    <script src="https://cdn1.ap-south-1.linodeobjects.com/resource/adminlte3/plugins/bootstrap5/js/bootstrap.bundle.min.js"  type="text/javascript" ></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" integrity="sha512-z3gLpd7yknf1YoNbCzqRKc4qyor8gaKU1qmn+CShxbuBusANI9QpRohGBreCFkKxLhei6S9CQXFEbbKuqLg0DA==" crossorigin="anonymous" referrerpolicy="no-referrer" />
  
    
  </head>
  <style>
    .dropdown-menu li {
      position: relative;
      }
      .dropdown-menu .dropdown-submenu {
      display: none;
      position: absolute;
      left: 100%;
      top: -7px;
      }
      .dropdown-menu .dropdown-submenu-left {
      right: 100%;
      left: auto;
      }

     
      .image{
        color:blue;
      }


  </style>
  <body>

 
    <div class="bd-example-snippet bd-code-snippet "><div class="bd-example m-0 border-0 ">
      <nav class="">
        <div class="nav nav-tabs mb-3  " id="nav-tab" role="tablist">
          {% if 'manage' in request.path or 'siteadmin' in request.path or  'report' in request.path %}          
              <button class="nav-link" id="nav-home-tab" data-bs-toggle="tab" data-bs-target="#nav-home" type="button" role="tab" aria-controls="nav-home" aria-selected="true"><i class="fa-solid fa-house"></i></button>
          {%else %}          <button class="nav-link active" id="nav-home-tab" data-bs-toggle="tab" data-bs-target="#nav-home" type="button" role="tab" aria-controls="nav-home" aria-selected="true"><i class="fa-solid fa-house"></i></button>
          {%endif %}  {% if 'report' in request.path %} 
          <button class="nav-link active" id="nav-report-tab" data-bs-toggle="tab" data-bs-target="#nav-report" type="button" role="tab" aria-controls="nav-report" aria-selected="false"><i class="fa-solid fa-file"></i> Reports</button>
          {%else %}<button class="nav-link" id="nav-report-tab" data-bs-toggle="tab" data-bs-target="#nav-report" type="button" role="tab" aria-controls="nav-report" aria-selected="false"><i class="fa-solid fa-file"></i> Reports</button>
          {%endif %}  {% if 'siteadmin' in request.path %} 
          <button class="nav-link active" id="nav-admin-tab" data-bs-toggle="tab" data-bs-target="#nav-admin" type="button" role="tab" aria-controls="nav-admin" aria-selected="false"><i class="fa-solid fa-user-lock"></i></button>
          {%else %}<button class="nav-link " id="nav-admin-tab" data-bs-toggle="tab" data-bs-target="#nav-admin" type="button" role="tab" aria-controls="nav-admin" aria-selected="false"><i class="fa-solid fa-user-lock"></i> Admin</button>
          {%endif %}  {% if 'manage' in request.path %} 
          <button class="nav-link active" id="nav-manage-tab" data-bs-toggle="tab" data-bs-target="#nav-manage" type="button" role="tab" aria-controls="nav-manage" aria-selected="false"><i class="fa-solid fa-street-view"></i> Manage</button>
           {%else %}<button class="nav-link" id="nav-manage-tab" data-bs-toggle="tab" data-bs-target="#nav-manage" type="button" role="tab" aria-controls="nav-manage" aria-selected="false"><i class="fa-solid fa-street-view"></i> Manage</button>

           {%endif %}  

           <button class="nav-link " id="nav-siteadmin-tab" data-bs-toggle="tab" data-bs-target="#nav-siteadmin" type="button" role="tab" aria-controls="nav-siteadmin" aria-selected="false"><i class="fa-solid fa-user-lock"></i> Site Admin</button>
        </div>
      </nav>
        </div>
      
      <div class="tab-content" id="nav-tabContent">
        {% if 'manage' in request.path or 'siteadmin' in request.path or  'report' in request.path %}  <div class="tab-pane fade" id="nav-home" role="tabpanel" aria-labelledby="nav-home-tab">
        {%else %} <div class="tab-pane fade show active" id="nav-home" role="tabpanel" aria-labelledby="nav-home-tab">
        {%endif %} 

        <ul>
           <a class="dropdown-item"  href="#"><i class="fa-solid fa-house"></i> Home</a> 
           <a class="dropdown-item"  href="{% url 'base:employee_details' %}"><i class="fa-solid fa-circle-info"></i> My details</a>  
           <a class="dropdown-item"  href="{% url 'logout'   %}"> <i class="fa fa-sign-out"></i> Logout</a>  
          </ul>        
            <hr>
            <ul>
             <a class="dropdown-item"  href="{% url 'base:patient_form' 0  %}"><i class="fa-solid fa-plus"></i> Add Patient</a>  
             {% comment %} <a class="dropdown-item"  href="{% url 'base:patient_details' patentid  %}"><i class="fa-solid fa-user"></i> View Patient details</a>                {% endcomment %}
             <a class="dropdown-item"  href="{% url 'base:patient' 'tbl'  %}"><i class="fa-solid fa-table-list"></i> View all patients </a>  
            
           </ul>
           <hr>

        </div>
        {% if 'report' in request.path %} <div class="tab-pane fade show active" id="nav-report" role="tabpanel" aria-labelledby="nav-report-tab">
        {%else %}<div class="tab-pane fade" id="nav-report" role="tabpanel" aria-labelledby="nav-report-tab">
        {%endif %} 
        
          <ul><a class="dropdown-item"  href="#"><i class="fa-solid fa-file-arrow-down"></i> IMH</a>
          <a class="dropdown-item"  href="#"><i class="fa-solid fa-file-arrow-down"></i> Center wise</a> 
           </ul>  
           <hr>
           
        </div>
        {% if 'manage' in request.path  %}  <div class="tab-pane fade show active" id="nav-manage" role="tabpanel" aria-labelledby="nav-manage-tab">
        {%else %} <div class="tab-pane fade" id="nav-manage" role="tabpanel" aria-labelledby="nav-manage-tab">
        {%endif %} 
       

          <ul>
            <a class=" dropdown-item "  href="{% url 'manage:task_form' 0 %}"><i class="fa-solid fa-clipboard-check"></i> Add Task </a>
            <a class=" dropdown-item "  href="{% url 'manage:task' 'tbl' %}"><i class="fa-solid fa-table-list"></i> View Task </a>   

            <a class=" dropdown-item "  href="{% url 'manage:notification_form' 0 %}"><i class="fa-regular fa-bell"></i> Add Notification </a>
            <a class=" dropdown-item "  href="{% url 'manage:notification' 'tbl' %}"><i class="fa-solid fa-table-list"></i> View Notification </a>            

            <a class="dropdown-item"  href="{% url 'manage:medicine_unit_form'  0 %}"><i class="fa-solid fa-syringe"></i> Add Medicine Unit</a> 
            <a class="dropdown-item"  href="{% url 'manage:medicine_unit'  'tbl' %}"><i class="fa-solid fa-table-list"></i> View Medicine Unit</a> 

            <a class="dropdown-item"  href="{% url 'manage:inhouse_form'  0 %}"><i class="fa-solid fa-house-medical"></i> Add Medicine Inhouse</a> 
            <a class="dropdown-item"  href="{% url 'manage:inhouse'  'tbl' %}"><i class="fa-solid fa-table-list"></i> View Medicine Inhouse</a> 

            <a class="dropdown-item"  href="{% url 'manage:inventory_entry_form'  0 %}"><i class="fa-solid fa-warehouse"></i> Add Inventory Entry</a> 
            <a class="dropdown-item"  href="{% url 'manage:inventory_entry'  'tbl' %}"><i class="fa-solid fa-table-list"></i> View Inventory Entry</a> 

            

        
          </ul>

          <hr>

        </div>
        {% if 'siteadmin' in request.path  %} <div class="tab-pane fade show active" id="nav-admin" role="tabpanel" aria-labelledby="nav-admin-tab">
        {%else %}<div class="tab-pane fade" id="nav-admin" role="tabpanel" aria-labelledby="nav-admin-tab">
        {%endif %} 
        
          <ul>
            <a class="dropdown-item"  href="{% url 'siteadmin:disease_form' 0  %}"><i class="fa-solid fa-virus"></i> Add Disease</a>  
            <a class="dropdown-item"  href="{% url 'siteadmin:disease' 'tbl'  %}"><i class="fa-solid fa-table-list"></i> View  Disease</a> 
            <a class="dropdown-item"  href="{% url 'siteadmin:employee_form' 0 %}"><i class="fa-solid fa-user-plus"></i> Add Employee</a>  
            <a class="dropdown-item"  href="{% url 'siteadmin:employee' 'tbl' %}"><i class="fa-solid fa-table-list"></i> View Employee </a>

           

          </ul>
          <hr>
          
        </div>

        {% if 'siteadmin' in request.path  %}<div class="tab-pane fade show active" id="nav-siteadmin" role="tabpanel" aria-labelledby="nav-siteadmin-tab">
        {%else %}<div class="tab-pane fade " id="nav-siteadmin" role="tabpanel" aria-labelledby="nav-siteadmin-tab">
        {%endif %} 

        <ul>

          <a class=" dropdown-item "  href="{% url 'siteadmin:instruction_form' 0  %}"><i class="fa-solid fa-book-bookmark"></i> Add Help </a>
          <a class=" dropdown-item "  href="{% url 'siteadmin:instruction' 'tbl' %}"><i class="fa-solid fa-table-list"></i> View Help </a>


          <a class=" dropdown-item "  href="{% url 'siteadmin:static_page_form' 0 %}"><i class="fa-solid fa-paperclip"></i> Add Static Page </a>
          <a class=" dropdown-item "  href="{% url 'siteadmin:static_page' 'tbl' %}"><i class="fa-solid fa-table-list"></i> View Static Page </a>

          <a class=" dropdown-item "  href="{% url 'siteadmin:zone_form' 0 %}"><i class="fa-solid fa-tree-city"></i> Add Zone </a>
          <a class=" dropdown-item "  href="{% url 'siteadmin:zone' 'tbl' %}"><i class="fa-solid fa-table-list"></i>  View Zone </a> 

          <a class=" dropdown-item "  href="{% url 'siteadmin:gender_form' 0 %}"><i class="fa-solid fa-genderless"></i> Add Gender </a>
				<a class=" dropdown-item "  href="{% url 'siteadmin:gender' 'tbl' %}"><i class="fa-solid fa-table-list"></i>  View Gender </a> 

        </ul>
        <hr>




      </div>
      </div></div>


    
  
{% comment %} {% endwith %} {% endcomment %}






      
</body>

</html>
