Loan history for: {{asset.title|trim }}

{% if asset.loans|length > 0 %} {% for loan in asset.loans %} {% endfor %}
Loaned toLoaned ByLoan DateReturned DateReturned By
{% if loan.customer is not null %}{{ loan.customer.firstname }} {{loan.customer.lastname }}{% endif %} {% if loan.loanUser is not null %}{{ loan.loanUser.customer.firstname }} {{loan.loanUser.customer.lastname }}{% endif %} {{ loan.loanDate|date('Y-m-d') }} {% if loan.returnedDate is not null %}{{ loan.returnedDate|date('Y-m-d') }}{% else %}ON LOAN{% endif %} {% if loan.returnUser is not null %}{{ loan.returnUser.customer.firstname }} {{loan.returnUser.customer.lastname }}{% endif %}
{% endif %}