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


{% block content %}

<div class="row">
  <div class="col-lg-9">
    <div class="card">
      <div class="px-4 py-4">
        <div class="row">
          <div class="col-6 mb-3">
            <div class="text-start">
              <div>{{ object.reference.group|title }}</div>
              <div class="display-8 mb-3">{{ object.inner_id }}</div>
            </div>
          </div>
        </div>
        <div class="mb-4">
          <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 "Date" %}</div>
            <div class="flex-fill">: {{ object.created_at }}</div>
          </div>
          <div class="d-flex">
            <div class="flex-shrink-0 fw-bold w-150px">{% trans "Reference" %}</div>
            <div class="flex-fill">: {% if object.reference %}{{ object.reference.opts.verbose_name }}{% endif %} #{{ object.reference_id }}</div>
          </div>
          <div class="d-flex">
            <div class="flex-shrink-0 fw-bold w-150px">{% trans "Source" %}</div>
            <div class="flex-fill">: {{ object.reference.customer }}</div>
          </div>
          <div class="d-flex">
            <div class="flex-shrink-0 fw-bold w-150px">{% trans "Destination" %}</div>
            <div class="flex-fill">: {{ object.gateway }}</div>
          </div>
          <div class="d-flex">
            <div class="flex-shrink-0 fw-bold w-150px">{% trans "Memo" %}</div>
            <div class="flex-fill">: {% firstof object.note '-' %}</div>
          </div>
          <div class="d-flex mb-3">
            <div class="flex-shrink-0 fw-bold w-150px">{% trans "Amount" %}</div>
            <div class="flex-fill">: {{ object.amount|currency }} </div>
          </div>
          <div class="p-3 bg-light border ">
            <div>{{ object.amount|number_to_text|title }}</div>
          </div>
        </div>
        <div>
          <span class="small">{% trans "Created By" %}</span>
          <div class="fw-bold">{{ object.user.get_full_name }}</div>
          <div class="small">@{{ object.user }}</div>
        </div>
      </div>
    </div>
  </div>
  <div class="col-lg-3">
    {% include 'notices/object_action_logs.html' %}
  </div>
</div>

{% endblock %}
