{% extends "base.html" %} {% block content %}
{# Available Tablets Section #}

Available Tablets {{ available_tablets|length }}

{% if available_tablets %}
{% for tablet in available_tablets %} {% endfor %}
Brand Model Serial Number Notes Actions
{{ tablet.brand }}
{{ tablet.model }} {{ tablet.serial_number }} {{ tablet.notes or '-' }} Loan
{% else %}

No available tablets

Add Tablet
{% endif %}
{# Active Loans Section #}

Active Loans {{ active_loans|length }}

{% if active_loans %}
{% for loan in active_loans %} {% endfor %}
Tablet Serial Number Borrower Loan Date Actions
{{ 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 '' }} Return
{% else %}

No active loans

{% endif %}
{% endblock %}