{% extends base_template %} {% load i18n %} {% block title %}{% trans "Loans" %}{% endblock %} {% block content %}

{% if is_manager %}{% trans "All loans" %}{% else %}{% trans "My loans" %}{% endif %}

{% trans "Everything you have borrowed, with due dates and return status." %}

{% if is_desk %} {% trans "Hand out" %}{% endif %} {% if is_manager %} {% trans "Export CSV" %}{% endif %}
{% if loans %}
{% if is_manager %}{% endif %} {% for loan in loans %} {% if is_manager %}{% endif %} {% endfor %}
{% trans "Loan" %}{% trans "Borrower" %}{% trans "Items" %} {% trans "Issued" %} {% trans "Due" %} {% trans "Status" %} {% trans "Actions" %}
{{ loan.reference }}{{ loan.borrower.get_full_name|default:loan.borrower.username }}{{ loan.item_count }} {{ loan.issued_at|date:"M j, Y" }} {{ loan.due_at|date:"M j, Y" }} {% if loan.is_overdue %}
{{ loan.days_overdue }} {% trans "days overdue" %}
{% endif %}
{% include "inventree_loan/_status_badge.html" with status=loan.status label=loan.get_status_display %} {% trans "View" %} {% if is_desk and loan.is_open %}{% trans "Return" %}{% endif %}
{% else %}
{% if status_filter %} {% trans "No loans match this filter" %} {% trans "Try a different status." %} {% else %} {% trans "No loans yet" %} {% trans "Loans will appear here once items are handed out." %} {% endif %} {% if is_desk %}{% trans "Hand out an item" %}{% endif %}
{% endif %}
{% endblock %}