{% extends 'index.html' %}
{% load static i18n %}
{% load i18n %}
{% load widget_tweaks %}
{% load mathfilters %}
{% load basefilters %}

{% block content %}


<main :class="sidebarOpen ? 'oh-main__sidebar-visible' : ''">
  <section class="oh-wrapper oh-main__topbar" x-data="{searchShow: false}">
    <div class="oh-main__titlebar oh-main__titlebar--left">
      <h1 class="oh-main__titlebar-title fw-bold">{% trans "Objectives" %} </h1>
      <a class="oh-main__titlebar-search-toggle" role="button" aria-label="Toggle Search"
        @click="searchShow = !searchShow">
        <ion-icon name="search-outline" class="oh-main__titlebar-serach-icon"></ion-icon>
      </a>
    </div>
    <div class="oh-main__titlebar oh-main__titlebar--right">
      <div class="oh-main__titlebar-button-container">
        <!-- checking  user permission for objective creation -->
        {% if perms.pms.add_employeeobjective or request.user|filtersubordinates %}
        <div class="oh-btn-group ml-2">
          <div>
            <a href="{%url 'objective-creation' %}" class="oh-btn  oh-btn--secondary oh-btn--shadow" style="text-decoration: none;">
              <ion-icon name="add-outline"></ion-icon>
              {% trans "Create" %}
            </a>
          </div>
        </div>
        {% endif %}
      </div>
    </div>
  </section>
</main>

<div
class="oh-wrapper-main"
>
  <main :class="sidebarOpen ? 'oh-main__sidebar-visible' : ''">

    <div class="oh-wrapper">
      <div class="oh-404">
          <img style="    width: 190px;height: 190px;" src="{% static 'images/ui/goal.png' %}" class="oh-404__image mb-4" alt="Page not found. 404."/>
          <h5 class="oh-404__subtitle">{% trans "No Objectives are available." %}</h5>
      </div>
    </div>
  </main>
</div>
</div>


{% endblock content %}
