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

{% trans "Loan desk" %}

{% trans "Dashboard" %}

{% if is_manager %} {% trans "Approve requests, hand out items and keep returns moving." %} {% else %} {% trans "Request items, track your due dates and see your loan history." %} {% endif %}

{% if can_request %} {% trans "New request" %} {% endif %} {% if is_desk %} {% trans "Hand out" %} {% trans "Return" %} {% endif %}
{% trans "Pending requests" %} {{ stats.pending }} {% trans "Waiting for a decision" %} {% trans "Active loans" %} {{ stats.active }} {% trans "Items currently out" %} {% trans "Overdue" %} {{ stats.overdue }} {% trans "Past the due date" %} {% trans "Due soon" %} {{ stats.due_soon }} {% trans "Within" %} {{ due_soon_days }} {% trans "days" %}
{% if is_desk %}

{% trans "Scan something" %}

{% trans "Scan a stock item barcode to hand it out, or scan a loan QR to return it." %}

{% trans "USB scanners work automatically. Camera scanning is available on supported browsers." %}

{% endif %}
{% if is_manager %}

{% trans "Pending approvals" %}

{% trans "Oldest requests first." %}

{% trans "View all" %}
{% if pending_requests %}
{% for req in pending_requests %} {% endfor %}
{% trans "Request" %}{% trans "Requester" %}{% trans "Items" %}{% trans "Status" %}
{{ req.reference }}
{{ req.created|date:"M j, Y" }}
{{ req.requester.get_full_name|default:req.requester.username }} {{ req.item_count }} {% include "inventree_loan/_status_badge.html" with status=req.status label=req.get_status_display %}
{% trans "Open approval queue" %} {% else %}
{% trans "No pending requests" %} {% trans "New requests will appear here." %}
{% endif %}
{% else %}

{% trans "My recent requests" %}

{% trans "Track approvals and pickups." %}

{% trans "View all" %}
{% if my_requests %}
{% for req in my_requests %} {% endfor %}
{% trans "Request" %}{% trans "Items" %}{% trans "Return by" %}{% trans "Status" %}
{{ req.reference }} {{ req.item_count }} {{ req.return_by|date:"M j, Y"|default:"—" }} {% include "inventree_loan/_status_badge.html" with status=req.status label=req.get_status_display %}
{% else %}
{% trans "No requests yet" %} {% trans "Start by requesting an item you need." %} {% if can_request %}{% trans "New request" %}{% endif %}
{% endif %}
{% endif %}

{% trans "Due and overdue" %}

{% trans "Keep an eye on upcoming returns." %}

{% trans "View loans" %}
{% if due_loans %}
    {% for loan in due_loans %}
  • {{ loan.reference }}
    {{ loan.borrower.get_full_name|default:loan.borrower.username }} · {{ loan.item_count }} {% trans "item(s)" %}
    {% include "inventree_loan/_status_badge.html" with status=loan.status label=loan.get_status_display %} {{ loan.due_at|date:"M j" }}
  • {% endfor %}
{% else %}
{% trans "Nothing due right now" %} {% trans "You are all caught up." %}
{% endif %}

{% trans "Recent activity" %}

{% trans "The latest loan events." %}

{% if is_manager %}{% trans "Open history" %}{% endif %}
{% if recent_events %} {% else %}
{% trans "No activity yet" %}
{% endif %}
{% endblock %}