{% extends "base.html" %} {% block content %}
{# Page Header #}

{{ _('Loan History') }}

{{ _('View all past and current tablet loans') }}

{{ _('Back to Dashboard') }}
{% if loans %} {# Desktop Table (hidden on mobile) #}
{% for loan in loans %} {% endfor %}
{{ _('Tablet') }} {{ _('Serial Number') }} {{ _('Borrower') }} {{ _('Loan Date') }} {{ _('Return Date') }} {{ _('Status') }}
{{ loan.brand }} {{ loan.model }}
{{ loan.serial_number }}
{{ loan.name }}
{{ loan.identification }}
{{ loan.loan_date[:10] if loan.loan_date else _('N/A') }}
{{ loan.loan_date[11:16] if loan.loan_date else '' }}
{% if loan.return_date %} {{ loan.return_date[:10] }}
{{ loan.return_date[11:16] }} {% else %} - {% endif %}
{{ loan.status }}
{# Mobile Cards (hidden on desktop) #} {% else %}

{{ _('No loan history available.') }}

{{ _('Create a Loan') }}
{% endif %}
{% endblock %}