{% extends 'admin/inspect.html' %}
{% load i18n admin_urls simpelcore_tags %}


{% block content %}
<div class="row">
  <div class="col-lg-9">
    <section>
      <div class="card mb-5 shadow-sm">
        <div class="card-body p-5">
          <div class="row">
            <div class="col-6 mb-3">
              <div class="text-start">
                <div>{{ object.group|title }}</div>
                <div class="display-8 mb-3">{{ object.inner_id }}</div>
              </div>
            </div>
            <div class="col-6">
              <div class="text-end">Progress: {{ object.progress|point }}</div>
            </div>
          </div>
          <div class="row mb-3">
            <div  class="col-lg-12 mb-3">
              <div class="mb-3">
                <div class="d-flex">
                  <div class="flex-shrink-0 fw-bold w-150px">{% trans "Status" %}</div>
                  <div class="flex-fill">: {{ object.get_status_display }}</div>
                </div>
                <div class="d-flex">
                  <div class="flex-shrink-0 fw-bold w-150px">{% trans "Created at" %}</div>
                  <div class="flex-fill">: {{ object.created_at|date:"d M Y" }}</div>
                </div>
              </div>
              {% include 'admin/simpel_partners/partner_info_block.html' with partner=object.customer %}
            </div>
          </div>
          {% if object.note %}
          <div class="col-12 py-3 mb-3">
            <div class="px-4 border-start border-3">
              <div>{% trans "Note" %}</div>
              <div class="small">{{ object.note }}</div>
            </div>
          </div>
          {% endif %}
        </div>
      </div>
    </section>
    <section>
      <div class="item-section">
        {% for item in object.items.all %}
          {% include 'admin/simpel_projects/task_item.html' with object=item %}
        {% endfor %}
      </div>
    </section>
  </div>
  <div class="col-lg-3">
    {% include 'notices/object_action_logs.html' %}
  </div>
</div>
{% endblock %}
